|
1
|
1 #pragma once
|
|
|
2
|
|
|
3 namespace pfc {
|
|
|
4
|
|
|
5 // Unicode normalization.
|
|
|
6 // If you have no idea WTF this is about - good for you. The less you know the better for your sanity.
|
|
|
7
|
|
|
8 // _Lite versions are simplified portable versions implemented using hardcoded tables, they're not meant to be complete. They cover only a subset of known two-char sequences.
|
|
|
9 // Normal versions (not _Lite) are implemented using operating system methods where possible (MS, Apple), fall back to calling _Lite otherwise.
|
|
|
10
|
|
|
11 // Normalize to form C
|
|
|
12 pfc::string8 unicodeNormalizeC(const char * in);
|
|
|
13 pfc::string8 unicodeNormalizeC_Lite(const char* in);
|
|
|
14
|
|
|
15 // Normalize to form D
|
|
|
16 pfc::string8 unicodeNormalizeD(const char* in);
|
|
|
17 pfc::string8 unicodeNormalizeD_Lite(const char* in);
|
|
|
18
|
|
|
19 bool stringContainsFormD(const char* in);
|
|
|
20 }
|