PostgreSQL Source Code
git master
|
#include "mb/pg_wchar.h"
Go to the source code of this file.
Enumerations | |
enum | UnicodeNormalizationForm { UNICODE_NFC = 0 , UNICODE_NFD = 1 , UNICODE_NFKC = 2 , UNICODE_NFKD = 3 } |
enum | UnicodeNormalizationQC { UNICODE_NORM_QC_NO = 0 , UNICODE_NORM_QC_YES = 1 , UNICODE_NORM_QC_MAYBE = -1 } |
Functions | |
pg_wchar * | unicode_normalize (UnicodeNormalizationForm form, const pg_wchar *input) |
UnicodeNormalizationQC | unicode_is_normalized_quickcheck (UnicodeNormalizationForm form, const pg_wchar *input) |
Enumerator | |
---|---|
UNICODE_NFC | |
UNICODE_NFD | |
UNICODE_NFKC | |
UNICODE_NFKD |
Definition at line 19 of file unicode_norm.h.
Enumerator | |
---|---|
UNICODE_NORM_QC_NO | |
UNICODE_NORM_QC_YES | |
UNICODE_NORM_QC_MAYBE |
Definition at line 28 of file unicode_norm.h.
UnicodeNormalizationQC unicode_is_normalized_quickcheck | ( | UnicodeNormalizationForm | form, |
const pg_wchar * | input | ||
) |
Definition at line 598 of file unicode_norm.c.
References get_canonical_class(), input, qc_is_allowed(), UNICODE_NFD, UNICODE_NFKD, UNICODE_NORM_QC_MAYBE, UNICODE_NORM_QC_NO, and UNICODE_NORM_QC_YES.
Referenced by unicode_is_normalized().
pg_wchar* unicode_normalize | ( | UnicodeNormalizationForm | form, |
const pg_wchar * | input | ||
) |
Definition at line 402 of file unicode_norm.c.
References ALLOC, Assert, compat, current_size, decompose_code(), FREE, get_canonical_class(), get_decomposed_size(), input, next, recompose_code(), UNICODE_NFC, UNICODE_NFKC, and UNICODE_NFKD.
Referenced by main(), pg_saslprep(), unicode_is_normalized(), and unicode_normalize_func().