Rfc822Tokenizer.FindTokenEnd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FindTokenEnd(ICharSequence, Int32) |
Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text. |
| FindTokenEnd(String, Int32) |
Finds the end of a token in an address-list string. |
FindTokenEnd(ICharSequence, Int32)
Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.
[Android.Runtime.Register("findTokenEnd", "(Ljava/lang/CharSequence;I)I", "GetFindTokenEnd_Ljava_lang_CharSequence_IHandler")]
public virtual int FindTokenEnd(Java.Lang.ICharSequence? text, int cursor);
[<Android.Runtime.Register("findTokenEnd", "(Ljava/lang/CharSequence;I)I", "GetFindTokenEnd_Ljava_lang_CharSequence_IHandler")>]
abstract member FindTokenEnd : Java.Lang.ICharSequence * int -> int
override this.FindTokenEnd : Java.Lang.ICharSequence * int -> int
Parameters
- text
- ICharSequence
The non-null address-list text to search.
- cursor
- Int32
The zero-based UTF-16 offset at which to start searching, from zero through the length of text.
Returns
The index of the first comma or semicolon found by a forward scan from cursor, skipping quoted names, comments, and angle-bracketed addresses whose opening delimiter is encountered during that scan, or the text length if no separator is found.
Implements
- Attributes
Remarks
The end index is exclusive. The scan does not recover quoting or nesting state from text before the cursor. To find a token boundary, start at the beginning of the token, for example at the offset returned by FindTokenStart(ICharSequence, Int32). Within constructs opened during the scan, it skips escaped characters in quoted names and comments, including nested comments. It does not validate the address syntax.
Returns the end of the token (minus trailing punctuation) that begins at offset cursor within text.
Java documentation for android.text.util.Rfc822Tokenizer.findTokenEnd(java.lang.CharSequence, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
FindTokenEnd(String, Int32)
Finds the end of a token in an address-list string.
public int FindTokenEnd(string? text, int cursor);
member this.FindTokenEnd : string * int -> int
Parameters
- text
- String
The non-null address-list text to search.
- cursor
- Int32
The zero-based UTF-16 offset at which to start searching, from zero through the length of text.
Returns
The index of the first comma or semicolon found by a forward scan from cursor, skipping quoted names, comments, and angle-bracketed addresses whose opening delimiter is encountered during that scan, or the string length if no separator is found.
Remarks
The end index is exclusive. The scan does not recover quoting or nesting state from text before the cursor. To find a token boundary, start at the beginning of the token, for example at the offset returned by FindTokenStart(String, Int32). Within constructs opened during the scan, it skips escaped characters in quoted names and comments, including nested comments. It does not validate the address syntax. This .NET string overload calls FindTokenEnd(ICharSequence, Int32) after converting the string to a Java character sequence.
Java documentation for android.text.util.Rfc822Tokenizer.findTokenEnd(java.lang.CharSequence, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.