Skip to main content

Module unicode

Module unicode 

Source
Expand description

The Unicode normalization forms NFC, NFD, NFKC and NFKD (Unicode Standard Annex 15), the code points that Unicode assigns, and the characters with no display width.

PostgreSQL uses them in normalize, in IS NORMALIZED and in SASLprep. The tables come from the vendored Unicode data of the PostgreSQL pin, so the result is the same as in PostgreSQL. See spec/07-sql-types-and-catalog.md and spec/22-crate-layout.md section 22.8.

Enums§

NormalForm
A Unicode normalization form.

Constants§

VERSION
The version of Unicode of the tables in the form major.minor, which unicode_version gives.

Functions§

combining_class
The canonical combining class of a code point.
is_assigned
True when the code point is assigned, that is, its general category is not Cn.
normalize
Normalizes a string of code points to a form. The input can hold any u32, as unicode_normalize of PostgreSQL can.
normalize_str
Normalizes a str to a form.
zero_width
True when ucs_wcwidth gives the display width 0: the code point 0 and the non-spacing characters.