LocalizedNormalizeText (open)
Normalize text for a given language
Syntax
LOADLIB "wh::util/localization.whlib";
STRING FUNCTION LocalizedNormalizeText(STRING value)
Parameters
STRING value
Return value
STRING
The normalized text
Description
This function normalizes the given (Latin) text by removing all letter accents, converting letter-like symbols to the closest-matching ASCII variant and lowercasing the result.
Examples
// example1 = "≤...<<aeae€ussano" (the symbol '…' is converted to '...', '«' is converted to '<<')
STRING example1 := LocalizedNormalizeText("≤…«æÆ€ÜSSÅÑØ");