Language

Rfc822Tokenizer.FindTokenStart Method

Definition

Overloads

Name Description
FindTokenStart(ICharSequence, Int32)

Returns the start of the token that ends at offset cursor within text.

FindTokenStart(String, Int32)

Finds the start of a token before the cursor in an address-list string.

FindTokenStart(ICharSequence, Int32)

Returns the start of the token that ends at offset cursor within text.

[Android.Runtime.Register("findTokenStart", "(Ljava/lang/CharSequence;I)I", "GetFindTokenStart_Ljava_lang_CharSequence_IHandler")]
public virtual int FindTokenStart(Java.Lang.ICharSequence? text, int cursor);
[<Android.Runtime.Register("findTokenStart", "(Ljava/lang/CharSequence;I)I", "GetFindTokenStart_Ljava_lang_CharSequence_IHandler")>]
abstract member FindTokenStart : Java.Lang.ICharSequence * int -> int
override this.FindTokenStart : Java.Lang.ICharSequence * int -> int

Parameters

text
ICharSequence

The non-null address-list text to search.

cursor
Int32

The zero-based UTF-16 cursor offset, from zero through the length of text.

Returns

The start index of the last token that begins before cursor, or zero if no later token start is found.

Implements

Attributes

Remarks

The search proceeds from the start of the text, using token ends to skip commas or semicolons and following spaces. A new start is selected only when it is strictly before the cursor. Quoted names, comments, and angle-bracketed addresses are skipped when finding separators.

Returns the start of the token that ends at offset cursor within text.

Java documentation for android.text.util.Rfc822Tokenizer.findTokenStart(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

FindTokenStart(String, Int32)

Finds the start of a token before the cursor in an address-list string.

public int FindTokenStart(string? text, int cursor);
member this.FindTokenStart : string * int -> int

Parameters

text
String

The non-null address-list text to search.

cursor
Int32

The zero-based UTF-16 cursor offset, from zero through the length of text.

Returns

The start index of the last token that begins before cursor, or zero if no later token start is found.

Remarks

The search skips commas or semicolons and following spaces. A new start is selected only when it is strictly before the cursor. This .NET string overload calls FindTokenStart(ICharSequence, Int32) after converting the string to a Java character sequence.

Java documentation for android.text.util.Rfc822Tokenizer.findTokenStart(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