Language

Rfc822Tokenizer.Tokenize Method

Definition

Overloads

Name Description
Tokenize(ICharSequence)

Splits an address list into tokens and returns them as an array.

Tokenize(String)

Splits an address list into tokens and returns them as an array.

Tokenize(ICharSequence, ICollection<Rfc822Token>)

Splits an address list into tokens.

Tokenize(String, ICollection<Rfc822Token>)

Splits an address list into tokens.

Tokenize(ICharSequence)

Splits an address list into tokens and returns them as an array.

[Android.Runtime.Register("tokenize", "(Ljava/lang/CharSequence;)[Landroid/text/util/Rfc822Token;", "")]
public static Android.Text.Util.Rfc822Token[]? Tokenize(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("tokenize", "(Ljava/lang/CharSequence;)[Landroid/text/util/Rfc822Token;", "")>]
static member Tokenize : Java.Lang.ICharSequence -> Android.Text.Util.Rfc822Token[]

Parameters

text
ICharSequence

The non-null address-list text to split into tokens.

Returns

The parsed tokens in input order, or an empty array if no name or address is found.

Attributes

Remarks

Commas and semicolons separate tokens outside quoted names, comments, and angle-bracketed addresses. The parser tolerates broken syntax and does not decode MIME encoded words; any necessary character-set conversion must occur first.

Java documentation for android.text.util.Rfc822Tokenizer.tokenize(java.lang.CharSequence).

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

Tokenize(String)

Splits an address list into tokens and returns them as an array.

public static Android.Text.Util.Rfc822Token[]? Tokenize(string? text);
static member Tokenize : string -> Android.Text.Util.Rfc822Token[]

Parameters

text
String

The non-null address-list string to split into tokens.

Returns

The parsed tokens in input order, or an empty array if no name or address is found.

Remarks

Commas and semicolons separate tokens outside quoted names, comments, and angle-bracketed addresses. The parser tolerates broken syntax and does not decode MIME encoded words. This .NET overload converts the string to a Java character sequence and calls Tokenize(ICharSequence).

Java documentation for android.text.util.Rfc822Tokenizer.tokenize(java.lang.CharSequence).

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

Tokenize(ICharSequence, ICollection<Rfc822Token>)

Splits an address list into tokens.

[Android.Runtime.Register("tokenize", "(Ljava/lang/CharSequence;Ljava/util/Collection;)V", "")]
public static void Tokenize(Java.Lang.ICharSequence? text, System.Collections.Generic.ICollection<Android.Text.Util.Rfc822Token>? out);
[<Android.Runtime.Register("tokenize", "(Ljava/lang/CharSequence;Ljava/util/Collection;)V", "")>]
static member Tokenize : Java.Lang.ICharSequence * System.Collections.Generic.ICollection<Android.Text.Util.Rfc822Token> -> unit

Parameters

text
ICharSequence

The non-null address-list text to split into tokens.

out
ICollection<Rfc822Token>

The non-null collection passed to Android. A writable Android.Runtime.JavaCollection<Rfc822Token> wrapper receives appended tokens in input order without removing existing entries. An ordinary managed collection is copied to a temporary Java collection and does not receive the appended tokens.

Attributes

Remarks

Commas and semicolons separate tokens outside quoted names, comments, and angle-bracketed addresses. No token is added for a part that has neither a name nor an address. The parser tolerates broken syntax and does not decode MIME encoded words.

For managed results, use Tokenize(ICharSequence), which returns an array. This collection overload does not copy changes back to an ordinary managed collection, such as List<Rfc822Token>. It passes an existing Android.Runtime.JavaCollection<Rfc822Token> wrapper through to its underlying Java collection.

Java documentation for android.text.util.Rfc822Tokenizer.tokenize(java.lang.CharSequence, java.util.Collection<android.text.util.Rfc822Token>).

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

Tokenize(String, ICollection<Rfc822Token>)

Splits an address list into tokens.

public static void Tokenize(string? text, System.Collections.Generic.ICollection<Android.Text.Util.Rfc822Token>? out);
static member Tokenize : string * System.Collections.Generic.ICollection<Android.Text.Util.Rfc822Token> -> unit

Parameters

text
String

The non-null address-list string to split into tokens.

out
ICollection<Rfc822Token>

The non-null collection passed to Android. A writable Android.Runtime.JavaCollection<Rfc822Token> wrapper receives appended tokens in input order without removing existing entries. An ordinary managed collection is copied to a temporary Java collection and does not receive the appended tokens.

Remarks

Commas and semicolons separate tokens outside quoted names, comments, and angle-bracketed addresses. No token is added for a part that has neither a name nor an address. The parser tolerates broken syntax and does not decode MIME encoded words. This .NET overload converts the string to a Java character sequence and forwards to the character-sequence overload.

For managed results, use Tokenize(String), which returns an array. This collection overload does not copy changes back to an ordinary managed collection, such as List<Rfc822Token>. It passes an existing Android.Runtime.JavaCollection<Rfc822Token> wrapper through to its underlying Java collection.

Java documentation for android.text.util.Rfc822Tokenizer.tokenize(java.lang.CharSequence, java.util.Collection<android.text.util.Rfc822Token>).

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