Normalization is used to convert text to a unique, equivalent form, e.g. composed characters to precomposed characters. Normalization allows for easier sorting and searching of text. (Cf. ICU documentation)
icu:normalize(input as xs:string, normalizer as xs:string, mode as xs:string) as xs:string
Returns the input
string in an equivalent, but normalized form.
Arguments:
input
is your input string to be normalizednormalizer
is the abbreviated name one of the normalizers described in the ICU normalize docs, e.g.nfc
mode
is one ofdecompose
,compose
,compose_contiguous
orfcd
, as described in the referenced docs.
See ICU documentation.
Bound to
Normalizer2.getInstance()
.