Freigeben über


UCharacter.FoldCase Method

Definition

Overloads

FoldCase(String, Boolean)

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.

FoldCase(String, FoldCaseOptions)

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.

FoldCase(Int32, FoldCaseOptions)

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.

FoldCase(Int32, Boolean)

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.

FoldCase(String, Boolean)

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.

[Android.Runtime.Register("foldCase", "(Ljava/lang/String;Z)Ljava/lang/String;", "", ApiSince=24)]
public static string? FoldCase (string? str, bool defaultmapping);
[<Android.Runtime.Register("foldCase", "(Ljava/lang/String;Z)Ljava/lang/String;", "", ApiSince=24)>]
static member FoldCase : string * bool -> string

Parameters

str
String

the String to be converted

defaultmapping
Boolean

Indicates whether the default mappings defined in CaseFolding.txt are to be used, otherwise the mappings for dotted I and dotless i marked with 'T' in CaseFolding.txt are included.

Returns

the case folding equivalent of the character, if any; otherwise the character itself.

Attributes

Remarks

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.txt and CaseFolding.txt; if any character has no case folding equivalent, the character itself is returned. "Full", multiple-code point case folding mappings are returned here. For "simple" single-code point mappings use the API foldCase(int ch, boolean defaultmapping).

Java documentation for android.icu.lang.UCharacter.foldCase(java.lang.String, boolean).

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

FoldCase(String, FoldCaseOptions)

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.

[Android.Runtime.Register("foldCase", "(Ljava/lang/String;I)Ljava/lang/String;", "", ApiSince=24)]
public static string? FoldCase (string? str, Android.Icu.Lang.FoldCaseOptions options);
[<Android.Runtime.Register("foldCase", "(Ljava/lang/String;I)Ljava/lang/String;", "", ApiSince=24)>]
static member FoldCase : string * Android.Icu.Lang.FoldCaseOptions -> string

Parameters

str
String

the String to be converted

options
FoldCaseOptions

A bit set for special processing. Currently the recognised options are FOLD_CASE_EXCLUDE_SPECIAL_I and FOLD_CASE_DEFAULT

Returns

the case folding equivalent of the character, if any; otherwise the character itself.

Attributes

Remarks

<strong>[icu]</strong> The given string is mapped to its case folding equivalent according to UnicodeData.txt and CaseFolding.txt; if any character has no case folding equivalent, the character itself is returned. "Full", multiple-code point case folding mappings are returned here. For "simple" single-code point mappings use the API foldCase(int ch, boolean defaultmapping).

Java documentation for android.icu.lang.UCharacter.foldCase(java.lang.String, 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

FoldCase(Int32, FoldCaseOptions)

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.

[Android.Runtime.Register("foldCase", "(II)I", "", ApiSince=24)]
public static int FoldCase (int ch, Android.Icu.Lang.FoldCaseOptions options);
[<Android.Runtime.Register("foldCase", "(II)I", "", ApiSince=24)>]
static member FoldCase : int * Android.Icu.Lang.FoldCaseOptions -> int

Parameters

ch
Int32

the character to be converted

options
FoldCaseOptions

A bit set for special processing. Currently the recognised options are FOLD_CASE_EXCLUDE_SPECIAL_I and FOLD_CASE_DEFAULT

Returns

the case folding equivalent of the character, if any; otherwise the character itself.

Attributes

Remarks

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.txt and CaseFolding.txt; if the character has no case folding equivalent, the character itself is returned.

This function only returns the simple, single-code point case mapping. Full case mappings should be used whenever possible because they produce better results by working on whole strings. They can map to a result string with a different length as appropriate. Full case mappings are applied by the case mapping functions that take String parameters rather than code points (int). See also the User Guide chapter on C/POSIX migration: https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings

Java documentation for android.icu.lang.UCharacter.foldCase(int, 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

FoldCase(Int32, Boolean)

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.

[Android.Runtime.Register("foldCase", "(IZ)I", "", ApiSince=24)]
public static int FoldCase (int ch, bool defaultmapping);
[<Android.Runtime.Register("foldCase", "(IZ)I", "", ApiSince=24)>]
static member FoldCase : int * bool -> int

Parameters

ch
Int32

the character to be converted

defaultmapping
Boolean

Indicates whether the default mappings defined in CaseFolding.txt are to be used, otherwise the mappings for dotted I and dotless i marked with 'T' in CaseFolding.txt are included.

Returns

the case folding equivalent of the character, if any; otherwise the character itself.

Attributes

Remarks

<strong>[icu]</strong> The given character is mapped to its case folding equivalent according to UnicodeData.txt and CaseFolding.txt; if the character has no case folding equivalent, the character itself is returned.

This function only returns the simple, single-code point case mapping. Full case mappings should be used whenever possible because they produce better results by working on whole strings. They can map to a result string with a different length as appropriate. Full case mappings are applied by the case mapping functions that take String parameters rather than code points (int). See also the User Guide chapter on C/POSIX migration: https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings

Java documentation for android.icu.lang.UCharacter.foldCase(int, boolean).

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