Normalizer2.GetInstance(Stream, String, Normalizer2+Mode) 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.
[Android.Runtime.Register("getInstance", "(Ljava/io/InputStream;Ljava/lang/String;Landroid/icu/text/Normalizer2$Mode;)Landroid/icu/text/Normalizer2;", "", ApiSince=24)]
public static Android.Icu.Text.Normalizer2? GetInstance(System.IO.Stream? data, string? name, Android.Icu.Text.Normalizer2.Mode? mode);
[<Android.Runtime.Register("getInstance", "(Ljava/io/InputStream;Ljava/lang/String;Landroid/icu/text/Normalizer2$Mode;)Landroid/icu/text/Normalizer2;", "", ApiSince=24)>]
static member GetInstance : System.IO.Stream * string * Android.Icu.Text.Normalizer2.Mode -> Android.Icu.Text.Normalizer2
Parameters
- data
- Stream
the binary, big-endian normalization (.nrm file) data, or null for ICU data
- name
- String
"nfc" or "nfkc" or "nfkc_cf" or "nfkc_scf" or name of custom data file
- mode
- Normalizer2.Mode
normalization mode (compose or decompose etc.)
Returns
the requested Normalizer2, if successful
- Attributes
Remarks
This method was deprecated in API level 31. Don't use because the binary data format is not stable across API levels.
Returns a Normalizer2 instance which uses the specified data file (an ICU data file if data=null, or else custom binary data) and which composes or decomposes text according to the specified mode. Returns an unmodifiable singleton instance. Use data=null for data files that are part of ICU's own data. Use name="nfc" and COMPOSE/DECOMPOSE for Unicode standard NFC/NFD. Use name="nfkc" and COMPOSE/DECOMPOSE for Unicode standard NFKC/NFKD. Use name="nfkc_cf" and COMPOSE for Unicode standard NFKC_CF=NFKC_Casefold. If data!=null, then the binary data is read once and cached using the provided name as the key. If you know or expect the data to be cached already, you can use data!=null for non-ICU data as well. Any IOException is wrapped into a ICUUncheckedIOException.
Android reference for android.icu.text.Normalizer2.getInstance.
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.