Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 4 #ifndef UNIVALUE_UTFFILTER_H 5 #define UNIVALUE_UTFFILTER_H 27 }
else if (ch < 0xf0) {
30 }
else if (ch < 0xf8) {
36 if ((ch & 0xc0) != 0x80)
50 if (codepoint_ >= 0xD800 && codepoint_ < 0xDC00) {
55 }
else if (codepoint_ >= 0xDC00 && codepoint_ < 0xE000) {
96 if (codepoint_ <= 0x7f)
97 str.push_back((
char)codepoint_);
98 else if (codepoint_ <= 0x7FF) {
99 str.push_back((
char)(0xC0 | (codepoint_ >> 6)));
100 str.push_back((
char)(0x80 | (codepoint_ & 0x3F)));
101 }
else if (codepoint_ <= 0xFFFF) {
102 str.push_back((
char)(0xE0 | (codepoint_ >> 12)));
103 str.push_back((
char)(0x80 | ((codepoint_ >> 6) & 0x3F)));
104 str.push_back((
char)(0x80 | (codepoint_ & 0x3F)));
105 }
else if (codepoint_ <= 0x1FFFFF) {
106 str.push_back((
char)(0xF0 | (codepoint_ >> 18)));
107 str.push_back((
char)(0x80 | ((codepoint_ >> 12) & 0x3F)));
108 str.push_back((
char)(0x80 | ((codepoint_ >> 6) & 0x3F)));
109 str.push_back((
char)(0x80 | (codepoint_ & 0x3F)));
void append_codepoint(unsigned int codepoint_)
void push_back(unsigned char ch)
void push_back_u(unsigned int codepoint_)
JSONUTF8StringFilter(std::string &s)