Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Converts a string with accented letters to lowercase.
lower = CaseAccentInsensitiveParse(string)
Arguments[]
- string
- string - The string to be converted to lowercase.
Returns[]
- lower
- string - A lowercased equivalent of the input string.
Details[]
This API only supports a limited set of codepoints for conversion and is not suitable as general purpose Unicode-aware case conversion function.
The table below documents support for uppercase characters within defined Unicode codepoint blocks. A block is considered "supported" only if all uppercase class characters within the block will be converted to their lowercase equivalents by this function.
Block Name | Supported | Notes |
---|---|---|
Basic Latin | ✔️ | |
Latin-1 Supplement | ✔️ | |
Latin Extended-A | ❌ | Limited support for Œ (U+0152 ) and Ÿ (U+0178 ) only.
|
Example[]
This example demonstrates the support for the Basic and Supplemental Latin codepoint ranges, outputting a lowercased pair of strings.
local basic = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local supplemental = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ"
print(CaseAccentInsensitiveParse(basic))
print(CaseAccentInsensitiveParse(supplemental))
-- Prints:
-- abcdefghijklmnopqrstuvwxyz
-- àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ
Patch changes[]
Patch 6.2.0 (2015-06-23): Added.