casefold()
Aggressively convert the calling string to lower case.
Description
The casefold()
method converts the calling String to
lower case similar to the toLowerCase()
method but
converts more aggressively according format. The calling string is not
changed.
Parameters
Parameter | Type | Required | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
format |
Unicode normalization form applied to the converted string:
See also: Unicode Normalization Forms. |
Examples
-
Convert an email address to lower case using the default NFKC normalization form:
"neseyi8913@irebah.com"
-
Convert an email address to lower case using the NFC normalization form:
"neseyi8913@IREBAH.COM"
-
Default convert Unicode sequence to lower case:
"a0á"
-
Convert the same Unicode sequence using
NFCK
option:"A0á"
-
Convert the same Unicode sequence using
NFC
option:"A0á"
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!