PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2024, 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 */
FILE * input
unsigned int pg_wchar
Definition: mbprint.c:31
UnicodeNormalizationForm
Definition: unicode_norm.h:20
@ UNICODE_NFKD
Definition: unicode_norm.h:24
@ UNICODE_NFD
Definition: unicode_norm.h:22
@ UNICODE_NFC
Definition: unicode_norm.h:21
@ UNICODE_NFKC
Definition: unicode_norm.h:23
UnicodeNormalizationQC unicode_is_normalized_quickcheck(UnicodeNormalizationForm form, const pg_wchar *input)
Definition: unicode_norm.c:598
UnicodeNormalizationQC
Definition: unicode_norm.h:29
@ UNICODE_NORM_QC_YES
Definition: unicode_norm.h:31
@ UNICODE_NORM_QC_NO
Definition: unicode_norm.h:30
@ UNICODE_NORM_QC_MAYBE
Definition: unicode_norm.h:32
pg_wchar * unicode_normalize(UnicodeNormalizationForm form, const pg_wchar *input)
Definition: unicode_norm.c:402