#include <unicodetext.h>
Definition at line 176 of file unicodetext.h.
◆ difference_type
◆ iterator_category
◆ pointer
◆ value_type
◆ const_iterator() [1/2]
UnicodeText::const_iterator::const_iterator |
( |
| ) |
|
◆ const_iterator() [2/2]
UnicodeText::const_iterator::const_iterator |
( |
const const_iterator & |
other | ) |
|
◆ DebugString()
string UnicodeText::const_iterator::DebugString |
( |
| ) |
const |
Definition at line 495 of file unicodetext.cc.
496 return tensorflow::strings::Printf(
"{iter %p}", it_);
◆ get_utf8()
int UnicodeText::const_iterator::get_utf8 |
( |
char * |
buf | ) |
const |
Definition at line 460 of file unicodetext.cc.
461 utf8_output[0] = it_[0];
if ((it_[0] & 0xff) < 0x80)
return 1;
462 utf8_output[1] = it_[1];
if ((it_[0] & 0xff) < 0xE0)
return 2;
463 utf8_output[2] = it_[2];
if ((it_[0] & 0xff) < 0xF0)
return 3;
464 utf8_output[3] = it_[3];
◆ get_utf8_string()
string UnicodeText::const_iterator::get_utf8_string |
( |
| ) |
const |
◆ operator*()
char32 UnicodeText::const_iterator::operator* |
( |
| ) |
const |
Definition at line 421 of file unicodetext.cc.
428 unsigned char byte1 = it_[0];
432 unsigned char byte2 = it_[1];
434 return ((byte1 & 0x1F) << 6)
437 unsigned char byte3 = it_[2];
439 return ((byte1 & 0x0F) << 12)
440 | ((byte2 & 0x3F) << 6)
443 unsigned char byte4 = it_[3];
444 return ((byte1 & 0x07) << 18)
445 | ((byte2 & 0x3F) << 12)
446 | ((byte3 & 0x3F) << 6)
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator--() [1/2]
◆ operator--() [2/2]
◆ operator=()
◆ utf8_data()
const char* UnicodeText::const_iterator::utf8_data |
( |
| ) |
const |
|
inline |
◆ utf8_length()
int UnicodeText::const_iterator::utf8_length |
( |
| ) |
const |
Definition at line 472 of file unicodetext.cc.
473 if ((it_[0] & 0xff) < 0x80) {
475 }
else if ((it_[0] & 0xff) < 0xE0) {
477 }
else if ((it_[0] & 0xff) < 0xF0) {
◆ distance
◆ operator!=
◆ operator<
bool operator< |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
◆ operator<=
bool operator<= |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
◆ operator==
bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
◆ operator>
bool operator> |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
◆ operator>=
bool operator>= |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
◆ UnicodeText
◆ UnicodeTextUtils
friend class UnicodeTextUtils |
|
friend |
◆ UTF8StateTableProperty
friend class UTF8StateTableProperty |
|
friend |
◆ reference
const typedef char32 UnicodeText::const_iterator::reference |
The documentation for this class was generated from the following files: