comparison foosdk/sdk/pfc/unicode-normalize.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
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 }