Lines Matching refs:code

48       int code = c & ((1 << (6 - count)) - 1);
59 code = (code << 6) | (cb & 0x3f);
62 if (code < 0) {
67 labels->push_back(code);
77 int32_t code = labels[i];
78 if (code < 0) {
79 LOG(ERROR) << "LabelsToUTF8String: Invalid character found: " << code;
81 } else if (code < 0x80) {
82 ostr << static_cast<char>(code);
83 } else if (code < 0x800) {
84 ostr << static_cast<char>((code >> 6) | 0xc0);
85 ostr << static_cast<char>((code & 0x3f) | 0x80);
86 } else if (code < 0x10000) {
87 ostr << static_cast<char>((code >> 12) | 0xe0);
88 ostr << static_cast<char>(((code >> 6) & 0x3f) | 0x80);
89 ostr << static_cast<char>((code & 0x3f) | 0x80);
90 } else if (code < 0x200000) {
91 ostr << static_cast<char>((code >> 18) | 0xf0);
92 ostr << static_cast<char>(((code >> 12) & 0x3f) | 0x80);
93 ostr << static_cast<char>(((code >> 6) & 0x3f) | 0x80);
94 ostr << static_cast<char>((code & 0x3f) | 0x80);
95 } else if (code < 0x4000000) {
96 ostr << static_cast<char>((code >> 24) | 0xf8);
97 ostr << static_cast<char>(((code >> 18) & 0x3f) | 0x80);
98 ostr << static_cast<char>(((code >> 12) & 0x3f) | 0x80);
99 ostr << static_cast<char>(((code >> 6) & 0x3f) | 0x80);
100 ostr << static_cast<char>((code & 0x3f) | 0x80);
102 ostr << static_cast<char>((code >> 30) | 0xfc);
103 ostr << static_cast<char>(((code >> 24) & 0x3f) | 0x80);
104 ostr << static_cast<char>(((code >> 18) & 0x3f) | 0x80);
105 ostr << static_cast<char>(((code >> 12) & 0x3f) | 0x80);
106 ostr << static_cast<char>(((code >> 6) & 0x3f) | 0x80);
107 ostr << static_cast<char>((code & 0x3f) | 0x80);