Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.14 KB

normalization.md

File metadata and controls

30 lines (22 loc) · 1.14 KB

Normalization

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

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 normalized
  • normalizer is the abbreviated name one of the normalizers described in the ICU normalize docs, e.g. nfc
  • mode is one of decompose, compose, compose_contiguous or fcd, as described in the referenced docs.

See ICU documentation.

Bound to Normalizer2.getInstance().