This function mirrors the normalize function from the JavaScript Standard String object. It
handles Unicode code points instead of UTF-16 character codes.
Returns the Unicode Normalization Form of this string.
Parameters
string: string
The starting string
form: "none"|"NFC"|"NFD"|"NFKC"|"NFKD"
Form specifying the Unicode Normalization Form. Default is 'NFC'
Returns string
A string containing the Unicode Normalization Form of the given string.
This function mirrors the
normalize
function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes.Returns the Unicode Normalization Form of this string.