That Terminal
A terminal emulator designed for video making purposes.
ctype.hh
Go to the documentation of this file.
1 #ifndef bqtCTypeHH
2 #define bqtCTypeHH
7 #include <string>
8 
9 /* Make sure that these functions are not #defined as macros in a library */
10 #undef isupper
11 #undef islower
12 #undef isalpha
13 #undef isalnum
14 #undef isalnum_
15 #undef isdigit
16 #undef isxdigit
17 #undef ispunct
18 #undef isspace
19 #undef isspace_punct
20 #undef isblank
21 #undef isctrl
22 #undef isprint
23 #undef isgraph
24 #undef isnotword
25 #undef isdouble
26 #undef tolower
27 #undef toupper
28 #undef totitle
29 
31 bool isupper(char32_t c);
33 bool islower(char32_t c);
35 bool isalpha(char32_t c);
37 bool isalnum(char32_t c);
39 bool isalnum_(char32_t c);
41 bool isdigit(char32_t c);
43 bool isxdigit(char32_t c);
45 bool ispunct(char32_t c);
47 bool isspace(char32_t c);
49 bool isspace_punct(char32_t c);
51 bool isblank(char32_t c);
53 bool isctrl(char32_t c);
55 bool isprint(char32_t c);
57 bool isgraph(char32_t c);
59 bool isnotword(char32_t c);
61 bool isdouble(char32_t c);
62 
64 char32_t tolower(char32_t c);
66 char32_t toupper(char32_t c);
68 char32_t totitle(char32_t c);
69 
71 std::u32string FromUTF8(std::string_view s);
72 
74 std::u32string FromCP437(std::string_view s);
75 
77 std::string ToUTF8(std::u32string_view s);
78 
80 std::string ToUTF8(std::u16string_view s);
81 
86 std::size_t CountIndent(std::u32string_view s, std::size_t begin=0);
87 
88 #endif
char32_t totitle(char32_t c)
Definition: ctype.cc:373
std::u32string FromUTF8(std::string_view s)
Definition: ctype.cc:382
bool isdouble(char32_t c)
Definition: ctype.cc:334
bool isxdigit(char32_t c)
Definition: ctype.cc:281
bool isspace_punct(char32_t c)
Definition: ctype.cc:301
bool islower(char32_t c)
Definition: ctype.cc:255
std::size_t CountIndent(std::u32string_view s, std::size_t begin=0)
Definition: ctype.cc:513
bool isprint(char32_t c)
Definition: ctype.cc:316
bool isctrl(char32_t c)
Definition: ctype.cc:311
char32_t toupper(char32_t c)
Definition: ctype.cc:369
char32_t tolower(char32_t c)
Definition: ctype.cc:365
bool isgraph(char32_t c)
Definition: ctype.cc:322
bool isdigit(char32_t c)
Definition: ctype.cc:276
bool isalnum(char32_t c)
Definition: ctype.cc:265
std::u32string FromCP437(std::string_view s)
Definition: ctype.cc:569
std::string ToUTF8(std::u32string_view s)
Definition: ctype.cc:425
bool isalnum_(char32_t c)
Definition: ctype.cc:270
bool ispunct(char32_t c)
Definition: ctype.cc:287
bool isalpha(char32_t c)
Definition: ctype.cc:260
bool isnotword(char32_t c)
Definition: ctype.cc:328
bool isblank(char32_t c)
Definition: ctype.cc:306
bool isupper(char32_t c)
Definition: ctype.cc:250
bool isspace(char32_t c)
Definition: ctype.cc:296