| 1 |
#ifndef CORSIX_TH_TH_STRINGS_H_ |
| 2 |
#define CORSIX_TH_TH_STRINGS_H_ |
| 3 |
|
| 4 |
#include "config.h" |
| 5 |
|
| 6 |
constexpr unsigned int invalid_char_codepoint = 0xFFFD; |
| 7 |
constexpr unsigned int ideographic_space_codepoint = 0x3000; |
| 8 |
|
| 9 |
size_t discard_leading_set_bits(uint8_t& byte); |
| 10 |
|
| 11 |
unsigned int next_utf8_codepoint(const char*& sString, const char* end); |
| 12 |
|
| 13 |
unsigned int decode_utf8(const char* sString, const char* end); |
| 14 |
|
| 15 |
const char* previous_utf8_codepoint(const char* sString); |
| 16 |
|
| 17 |
void skip_utf8_whitespace(const char*& sString, const char* end); |
| 18 |
|
| 19 |
unsigned int unicode_to_codepage_437(unsigned int iCodePoint); |
| 20 |
|
| 21 |
unsigned int unicode_to_codepage_mik(unsigned int iCodePoint); |
| 22 |
|
| 23 |
#endif |