#include <unichar.h>
Definition at line 102 of file unichar.h.
◆ get_utf8()
int UNICHAR::const_iterator::get_utf8 |
( |
char * |
buf | ) |
const |
Definition at line 174 of file unichar.cpp.
178 tprintf(
"WARNING: Illegal UTF8 encountered\n");
179 utf8_output[0] =
' ';
182 strncpy(utf8_output, it_, len);
static int utf8_step(const char *utf8_str)
◆ is_legal()
bool UNICHAR::const_iterator::is_legal |
( |
| ) |
const |
Definition at line 196 of file unichar.cpp.
static int utf8_step(const char *utf8_str)
◆ operator*()
int UNICHAR::const_iterator::operator* |
( |
| ) |
const |
Definition at line 163 of file unichar.cpp.
167 tprintf(
"WARNING: Illegal UTF8 encountered\n");
171 return uch.first_uni();
static int utf8_step(const char *utf8_str)
◆ operator++()
Definition at line 149 of file unichar.cpp.
153 tprintf(
"ERROR: Illegal UTF8 encountered.\n");
154 for (
int i = 0; i < 5 && it_[i] !=
'\0'; ++i) {
155 tprintf(
"Index %d char = 0x%x\n", i, it_[i]);
static int utf8_step(const char *utf8_str)
◆ utf8_data()
const char* UNICHAR::const_iterator::utf8_data |
( |
| ) |
const |
|
inline |
◆ utf8_len()
int UNICHAR::const_iterator::utf8_len |
( |
| ) |
const |
Definition at line 186 of file unichar.cpp.
190 tprintf(
"WARNING: Illegal UTF8 encountered\n");
static int utf8_step(const char *utf8_str)
◆ operator!=
Definition at line 136 of file unichar.h.
137 return !(lhs == rhs);
◆ operator==
bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
Definition at line 133 of file unichar.h.
134 return lhs.it_ == rhs.it_;
◆ UNICHAR
The documentation for this class was generated from the following files: