#include <unichar.h>
List of all members.
Detailed Description
Definition at line 102 of file unichar.h.
Member Function Documentation
| int UNICHAR::const_iterator::get_utf8 |
( |
char * |
buf | ) |
const |
Definition at line 174 of file unichar.cpp.
{
ASSERT_HOST(it_ != NULL);
const int len = utf8_step(it_);
if (len == 0) {
tprintf("WARNING: Illegal UTF8 encountered\n");
utf8_output[0] = ' ';
return 1;
}
strncpy(utf8_output, it_, len);
return len;
}
| bool UNICHAR::const_iterator::is_legal |
( |
| ) |
const |
| int UNICHAR::const_iterator::operator* |
( |
| ) |
const |
Definition at line 149 of file unichar.cpp.
{
ASSERT_HOST(it_ != NULL);
int step = utf8_step(it_);
if (step == 0) {
tprintf("ERROR: Illegal UTF8 encountered.\n");
for (int i = 0; i < 5 && it_[i] != '\0'; ++i) {
tprintf("Index %d char = 0x%x\n", i, it_[i]);
}
step = 1;
}
it_ += step;
return *this;
}
| const char* UNICHAR::const_iterator::utf8_data |
( |
| ) |
const [inline] |
| int UNICHAR::const_iterator::utf8_len |
( |
| ) |
const |
Friends And Related Function Documentation
| bool operator!= |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| [friend] |
Definition at line 136 of file unichar.h.
{
return !(lhs == rhs);
}
| bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| [friend] |
Definition at line 133 of file unichar.h.
{
return lhs.it_ == rhs.it_;
}
The documentation for this class was generated from the following files: