MessageFormat.ParseToMap 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
ParseToMap(String) |
<strong>[icu]</strong> Parses text from the beginning of the given string to produce a map from argument to values. |
ParseToMap(String, ParsePosition) |
<strong>[icu]</strong> Parses the string, returning the results in a Map. |
ParseToMap(String)
<strong>[icu]</strong> Parses text from the beginning of the given string to produce a map from argument to values.
[Android.Runtime.Register("parseToMap", "(Ljava/lang/String;)Ljava/util/Map;", "GetParseToMap_Ljava_lang_String_Handler", ApiSince=24)]
public virtual System.Collections.Generic.IDictionary<string,Java.Lang.Object>? ParseToMap (string? source);
[<Android.Runtime.Register("parseToMap", "(Ljava/lang/String;)Ljava/util/Map;", "GetParseToMap_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member ParseToMap : string -> System.Collections.Generic.IDictionary<string, Java.Lang.Object>
override this.ParseToMap : string -> System.Collections.Generic.IDictionary<string, Java.Lang.Object>
Parameters
- source
- String
A String
whose beginning should be parsed.
Returns
A Map
parsed from the string.
- Attributes
Remarks
<strong>[icu]</strong> Parses text from the beginning of the given string to produce a map from argument to values. The method may not use the entire text of the given string.
See the #parse(String, ParsePosition)
method for more information on message parsing.
Java documentation for android.icu.text.MessageFormat.parseToMap(java.lang.String)
.
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
ParseToMap(String, ParsePosition)
<strong>[icu]</strong> Parses the string, returning the results in a Map.
[Android.Runtime.Register("parseToMap", "(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Map;", "GetParseToMap_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)]
public virtual System.Collections.Generic.IDictionary<string,Java.Lang.Object>? ParseToMap (string? source, Java.Text.ParsePosition? pos);
[<Android.Runtime.Register("parseToMap", "(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Map;", "GetParseToMap_Ljava_lang_String_Ljava_text_ParsePosition_Handler", ApiSince=24)>]
abstract member ParseToMap : string * Java.Text.ParsePosition -> System.Collections.Generic.IDictionary<string, Java.Lang.Object>
override this.ParseToMap : string * Java.Text.ParsePosition -> System.Collections.Generic.IDictionary<string, Java.Lang.Object>
Parameters
- source
- String
the text to parse
- pos
- ParsePosition
the position at which to start parsing. on return, contains the result of the parse.
Returns
a Map containing key/value pairs for each parsed argument.
- Attributes
Remarks
<strong>[icu]</strong> Parses the string, returning the results in a Map. This is similar to the version that returns an array of Object. This supports both named and numbered arguments-- if numbered, the keys in the map are the corresponding ASCII-decimal-digit strings (e.g. "0", "1", "2"...).
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.