#include <stddef.h>
#include <iterator>
#include <string>
#include <utility>
#include "syntaxnet/base.h"
Go to the source code of this file.
|
bool | operator== (const UnicodeText &lhs, const UnicodeText &rhs) |
|
bool | operator!= (const UnicodeText &lhs, const UnicodeText &rhs) |
|
bool | UnicodeTextRangeIsEmpty (const UnicodeTextRange &r) |
|
UnicodeText | MakeUnicodeTextAcceptingOwnership (char *utf8_buffer, int byte_length, int byte_capacity) |
|
UnicodeText | MakeUnicodeTextWithoutAcceptingOwnership (const char *utf8_buffer, int byte_length) |
|
UnicodeText | UTF8ToUnicodeText (const char *utf8_buf, int len, bool do_copy) |
|
UnicodeText | UTF8ToUnicodeText (const string &utf_string, bool do_copy) |
|
UnicodeText | UTF8ToUnicodeText (const char *utf8_buf, int len) |
|
UnicodeText | UTF8ToUnicodeText (const string &utf8_string) |
|
string | UnicodeTextToUTF8 (const UnicodeText &t) |
|
template<typename T , size_t N> |
char(& | ArraySizeHelper (T(&array)[N]))[N] |
|
string | CodepointString (const UnicodeText &t) |
|
◆ arraysize
◆ UnicodeTextRange
◆ ArraySizeHelper()
template<typename T , size_t N>
char(& ArraySizeHelper |
( |
T(&) |
array[N] | ) |
)[N] |
◆ CodepointString()
Definition at line 502 of file unicodetext.cc.
505 while (it != end) tensorflow::strings::Appendf(&s,
"%X ", *it++);
◆ MakeUnicodeTextAcceptingOwnership()
UnicodeText MakeUnicodeTextAcceptingOwnership |
( |
char * |
utf8_buffer, |
|
|
int |
byte_length, |
|
|
int |
byte_capacity |
|
) |
| |
|
inline |
Definition at line 405 of file unicodetext.h.
408 utf8_buffer, byte_length, byte_capacity);
◆ MakeUnicodeTextWithoutAcceptingOwnership()
UnicodeText MakeUnicodeTextWithoutAcceptingOwnership |
( |
const char * |
utf8_buffer, |
|
|
int |
byte_length |
|
) |
| |
|
inline |
◆ operator!=()
◆ operator==()
Definition at line 375 of file unicodetext.cc.
376 if (&lhs == &rhs)
return true;
377 if (lhs.repr_.size_ != rhs.repr_.size_)
return false;
378 return memcmp(lhs.repr_.data_, rhs.repr_.data_, lhs.repr_.size_) == 0;
◆ UnicodeTextRangeIsEmpty()
◆ UnicodeTextToUTF8()
◆ UTF8ToUnicodeText() [1/4]
UnicodeText UTF8ToUnicodeText |
( |
const char * |
utf8_buf, |
|
|
int |
len |
|
) |
| |
|
inline |
◆ UTF8ToUnicodeText() [2/4]
UnicodeText UTF8ToUnicodeText |
( |
const char * |
utf8_buf, |
|
|
int |
len, |
|
|
bool |
do_copy |
|
) |
| |
|
inline |
◆ UTF8ToUnicodeText() [3/4]
◆ UTF8ToUnicodeText() [4/4]