PostgreSQL Source Code
git master
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
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
{
21
UNICODE_NFC
= 0,
22
UNICODE_NFD
= 1,
23
UNICODE_NFKC
= 2,
24
UNICODE_NFKD
= 3,
25
}
UnicodeNormalizationForm
;
26
27
/* see UAX #15 */
28
typedef
enum
29
{
30
UNICODE_NORM_QC_NO
= 0,
31
UNICODE_NORM_QC_YES
= 1,
32
UNICODE_NORM_QC_MAYBE
= -1,
33
}
UnicodeNormalizationQC
;
34
35
extern
pg_wchar
*
unicode_normalize
(
UnicodeNormalizationForm
form,
const
pg_wchar
*
input
);
36
37
extern
UnicodeNormalizationQC
unicode_is_normalized_quickcheck
(
UnicodeNormalizationForm
form,
const
pg_wchar
*
input
);
38
39
#endif
/* UNICODE_NORM_H */
input
FILE * input
pg_wchar
unsigned int pg_wchar
Definition:
mbprint.c:31
pg_wchar.h
UnicodeNormalizationForm
UnicodeNormalizationForm
Definition:
unicode_norm.h:20
UNICODE_NFKD
@ UNICODE_NFKD
Definition:
unicode_norm.h:24
UNICODE_NFD
@ UNICODE_NFD
Definition:
unicode_norm.h:22
UNICODE_NFC
@ UNICODE_NFC
Definition:
unicode_norm.h:21
UNICODE_NFKC
@ UNICODE_NFKC
Definition:
unicode_norm.h:23
unicode_is_normalized_quickcheck
UnicodeNormalizationQC unicode_is_normalized_quickcheck(UnicodeNormalizationForm form, const pg_wchar *input)
Definition:
unicode_norm.c:598
UnicodeNormalizationQC
UnicodeNormalizationQC
Definition:
unicode_norm.h:29
UNICODE_NORM_QC_YES
@ UNICODE_NORM_QC_YES
Definition:
unicode_norm.h:31
UNICODE_NORM_QC_NO
@ UNICODE_NORM_QC_NO
Definition:
unicode_norm.h:30
UNICODE_NORM_QC_MAYBE
@ UNICODE_NORM_QC_MAYBE
Definition:
unicode_norm.h:32
unicode_normalize
pg_wchar * unicode_normalize(UnicodeNormalizationForm form, const pg_wchar *input)
Definition:
unicode_norm.c:402
src
include
common
unicode_norm.h
Generated on Wed Nov 27 2024 06:13:27 for PostgreSQL Source Code by
1.9.1