Rfc822Tokenizer.Tokenize 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 |
|---|---|
| Tokenize(ICharSequence) |
This method will try to take a string like "Foo Bar (something) <foo\ |
| Tokenize(String) |
This method will try to take a string like "Foo Bar (something) <foo\ |
| Tokenize(ICharSequence, ICollection<Rfc822Token>) |
This constructor will try to take a string like "Foo Bar (something) <foo\ |
| Tokenize(String, ICollection<Rfc822Token>) |
This constructor will try to take a string like "Foo Bar (something) <foo\ |
Tokenize(ICharSequence)
This method will try to take a string like "Foo Bar (something) <foo\
[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.
This method will try to take a string like "Foo Bar (something) <foo\
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)
This method will try to take a string like "Foo Bar (something) <foo\
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).
This method will try to take a string like "Foo Bar (something) <foo\
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>)
This constructor will try to take a string like "Foo Bar (something) <foo\
[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. See the pinned collection binding generator and Java collection conversion helper.
This constructor will try to take a string like "Foo Bar (something) <foo\
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>)
This constructor will try to take a string like "Foo Bar (something) <foo\
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. See the pinned collection binding generator and Java collection conversion helper.
This constructor will try to take a string like "Foo Bar (something) <foo\
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.