Share via


Character.ToLowerCase Method

Definition

Overloads

ToLowerCase(Int32)

Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.

ToLowerCase(Char)

Converts the character argument to lowercase using case mapping information from the UnicodeData file.

ToLowerCase(Int32)

Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.

[Android.Runtime.Register("toLowerCase", "(I)I", "")]
public static int ToLowerCase (int codePoint);
[<Android.Runtime.Register("toLowerCase", "(I)I", "")>]
static member ToLowerCase : int -> int

Parameters

codePoint
Int32

the character (Unicode code point) to be converted.

Returns

the lowercase equivalent of the character (Unicode code point), if any; otherwise, the character itself.

Attributes

Remarks

Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.

Note that Character.isLowerCase(Character.toLowerCase(codePoint)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

In general, String#toLowerCase() should be used to map characters to lowercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

Added in 1.5.

Java documentation for java.lang.Character.toLowerCase(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

ToLowerCase(Char)

Converts the character argument to lowercase using case mapping information from the UnicodeData file.

[Android.Runtime.Register("toLowerCase", "(C)C", "")]
public static char ToLowerCase (char ch);
[<Android.Runtime.Register("toLowerCase", "(C)C", "")>]
static member ToLowerCase : char -> char

Parameters

ch
Char

the character to be converted.

Returns

the lowercase equivalent of the character, if any; otherwise, the character itself.

Attributes

Remarks

Converts the character argument to lowercase using case mapping information from the UnicodeData file.

Note that Character.isLowerCase(Character.toLowerCase(ch)) does not always return true for some ranges of characters, particularly those that are symbols or ideographs.

In general, String#toLowerCase() should be used to map characters to lowercase. String case mapping methods have several benefits over Character case mapping methods. String case mapping methods can perform locale-sensitive mappings, context-sensitive mappings, and 1:M character mappings, whereas the Character case mapping methods cannot.

<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #toLowerCase(int) method.

Java documentation for java.lang.Character.toLowerCase(char).

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