|
That Terminal
A terminal emulator designed for video making purposes.
|
Functions for identifying and converting unicode characters and representation forms. More...
#include <bitset>#include <algorithm>#include <cstring>#include <array>#include "data/unidata.cc"#include "ctype.hh"#include "log2.hh"
Classes | |
| class | constexpr_bitset< N > |
| class | bitval_array< nwords, bits_per_elem > |
| class | compressed_bitset< N, maxdim, maxdim2 > |
Macros | |
| #define | USE_MAP2 |
| #define | B(c) /*std::pair<const std::pair<char32_t,unsigned>*, std::size_t>*/{&c##_table[0],std::size(c##_table)} |
Functions | |
| bool | isupper (char32_t c) |
| bool | islower (char32_t c) |
| bool | isalpha (char32_t c) |
| bool | isalnum (char32_t c) |
| bool | isalnum_ (char32_t c) |
| bool | isdigit (char32_t c) |
| bool | isxdigit (char32_t c) |
| bool | ispunct (char32_t c) |
| bool | isspace (char32_t c) |
| bool | isspace_punct (char32_t c) |
| bool | isblank (char32_t c) |
| bool | isctrl (char32_t c) |
| bool | isprint (char32_t c) |
| bool | isgraph (char32_t c) |
| bool | isnotword (char32_t c) |
| bool | isdouble (char32_t c) |
| char32_t | tolower (char32_t c) |
| char32_t | toupper (char32_t c) |
| char32_t | totitle (char32_t c) |
| std::u32string | FromUTF8 (std::string_view s) |
| std::string | ToUTF8 (std::u32string_view s) |
| std::size_t | CountIndent (std::u32string_view text, std::size_t begin) |
| std::u32string | FromCP437 (std::string_view s) |
Variables | |
| constexpr unsigned | cap = 0x10FFFE |
Functions for identifying and converting unicode characters and representation forms.
| std::size_t CountIndent | ( | std::u32string_view | s, |
| std::size_t | begin = 0 |
||
| ) |
Calculates and returns the number of spaces in the beginning of the given string.
| s | The string to be searched. |
| begin | An optional beginning index from which to count the spaces. |
| std::u32string FromCP437 | ( | std::string_view | s | ) |
Converts given text, assumed to be CP437 encoded, into a sequence of unicode codepoints
| std::u32string FromUTF8 | ( | std::string_view | s | ) |
This function is optimized for performance. A simple (but incomplete) implementation is shown in if-0. Surrogate pairs are detected and parsed properly, if they appear within a single string.
| bool isalnum | ( | char32_t | c | ) |
| bool isalnum_ | ( | char32_t | c | ) |
| bool isalpha | ( | char32_t | c | ) |
| bool isblank | ( | char32_t | c | ) |
| bool isctrl | ( | char32_t | c | ) |
| bool isdigit | ( | char32_t | c | ) |
| bool isdouble | ( | char32_t | c | ) |
| bool isgraph | ( | char32_t | c | ) |
| bool islower | ( | char32_t | c | ) |
| bool isnotword | ( | char32_t | c | ) |
| bool isprint | ( | char32_t | c | ) |
| bool ispunct | ( | char32_t | c | ) |
| bool isspace | ( | char32_t | c | ) |
| bool isspace_punct | ( | char32_t | c | ) |
| bool isupper | ( | char32_t | c | ) |
| bool isxdigit | ( | char32_t | c | ) |
| char32_t tolower | ( | char32_t | c | ) |
Converts the given code index to its corresponding lowercase version
| char32_t totitle | ( | char32_t | c | ) |
Converts the given code index to its corresponding titlecase version
| char32_t toupper | ( | char32_t | c | ) |
Converts the given code index to its corresponding uppercase version
| std::string ToUTF8 | ( | std::u32string_view | s | ) |
This function is optimized for performance.