PostgreSQL Source Code  git master
unicode_norm.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * unicode_norm.h
4  * Routines for normalizing Unicode strings
5  *
6  * These definitions are used by both frontend and backend code.
7  *
8  * Copyright (c) 2017-2020, PostgreSQL Global Development Group
9  *
10  * src/include/common/unicode_norm.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef UNICODE_NORM_H
15 #define UNICODE_NORM_H
16 
17 #include "mb/pg_wchar.h"
18 
19 typedef enum
20 {
26 
27 /* see UAX #15 */
28 typedef enum
29 {
34 
36 
38 
39 #endif /* UNICODE_NORM_H */
UnicodeNormalizationQC
Definition: unicode_norm.h:28
UnicodeNormalizationForm
Definition: unicode_norm.h:19
unsigned int pg_wchar
Definition: mbprint.c:31
UnicodeNormalizationQC unicode_is_normalized_quickcheck(UnicodeNormalizationForm form, const pg_wchar *input)
Definition: unicode_norm.c:518
pg_wchar * unicode_normalize(UnicodeNormalizationForm form, const pg_wchar *input)
Definition: unicode_norm.c:312