summaryrefslogtreecommitdiffhomepage
path: root/include/unicode/types.h
blob: 6eac5f7c853e9b30a4ffb1b4d67a22fe094c75df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Reichwein.IT Unicode Library
//
// Basic types
//

#pragma once

// Definition of utf8_t as abstraction from char and char8_t, when available
//
// Be aware of char being signed on common architectures, while char8_t is
// unsigned.
#ifdef __cpp_char8_t
 // char8_t available in C++20
 typedef char8_t utf8_t;
#else
 // fallback to char
 typedef char utf8_t;
#endif
typedef char iso_t;