Android-cuttlefish cvd tool
|
#include <utf8range.h>
Classes | |
class | Iter |
Public Member Functions | |
UTF8Range (CharIterator begin, CharIterator end) | |
UTF8Range () | |
UTF8Range (const UTF8Range &)=default | |
UTF8Range (UTF8Range &&)=default | |
UTF8Range & | operator= (UTF8Range &&)=default |
UTF8Range & | operator= (const UTF8Range &)=default |
Iter | begin () const |
Iter | end () const |
bool | verify () |
Static Public Member Functions | |
static size_t | byteCount (char c) |
static unsigned long | codePoint (CharIterator begin) |
Private Attributes | |
CharIterator | begin_ |
CharIterator | end_ |
Important notice. The UTF8Range only works on verified UTF8 encoded strings. E.g. if the string successfully passed through our CBOR formatting (see cbor.h) it is safe to use with UTF8Range. Alternatively, you can call verify() on a new range.
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inlinestatic |
Decodes a header byte of a UTF8 sequence. In UTF8 encoding the number of leading ones indicate the length of the UTF8 sequence. Following bytes start with b10 followed by six payload bits. Sequences of length one start with a 0 followed by 7 payload bits.
|
inlinestatic |
|
inline |
|
default |
|
default |
|
inline |
|
private |
|
private |