Home
last modified time | relevance | path

Searched refs:ucc (Results 1 – 4 of 4) sorted by relevance

/external/flatbuffers/include/flatbuffers/
Dutil.h241 inline int ToUTF8(uint32_t ucc, std::string *out) { in ToUTF8() argument
242 assert(!(ucc & 0x80000000)); // Top bit can't be set. in ToUTF8()
247 if (ucc < (1u << max_bits)) { // does it fit? in ToUTF8()
252 (ucc >> remain_bits)); in ToUTF8()
255 (*out) += static_cast<char>(((ucc >> (j * 6)) & 0x3F) | 0x80); in ToUTF8()
286 int ucc = *(*in)++ & ((1 << (7 - len)) - 1); in FromUTF8() local
289 ucc <<= 6; in FromUTF8()
290 ucc |= *(*in)++ & 0x3F; // Grab 6 more bits of the code. in FromUTF8()
294 if (ucc >= 0xD800 && ucc <= 0xDFFF) { in FromUTF8()
301 if (ucc < 0x0080 || ucc > 0x07FF) { in FromUTF8()
[all …]
/external/libmojo/mojo/public/tools/bindings/generators/java_templates/
Ddata_types_definition.tmpl259 public static final int {{field|ucc}} = {{loop.index0}};
265 private {{field.kind|java_type}} m{{field|ucc}};
280 public void set{{field|ucc}}({{field.kind|java_type}} {{field|name}}) {
281 mTag_ = Tag.{{field|ucc}};
282 m{{field|ucc}} = {{field|name}};
288 public {{field.kind|java_type}} get{{field|ucc}}() {
289 assert mTag_ == Tag.{{field|ucc}};
290 return m{{field|ucc}};
301 case Tag.{{field|ucc}}: {
303 if (m{{field|ucc}} == null) {
[all …]
/external/flatbuffers/src/
Didl_gen_text.cpp123 int ucc = FromUTF8(&utf8); in EscapeString() local
124 if (ucc < 0) { in EscapeString()
144 if (ucc <= 0xFFFF) { in EscapeString()
147 text += IntToStringHex(ucc, 4); in EscapeString()
148 } else if (ucc <= 0x10FFFF) { in EscapeString()
150 uint32_t base = ucc - 0x10000; in EscapeString()
/external/icu/icu4c/source/i18n/
Ddcfmtsym.cpp446 UChar ucc[4]={0}; //Currency Codes are always 3 chars long in initialize() local
450 uccLen = ucurr_forLocale(locName, ucc, uccLen, &localStatus); in initialize()
454 u_UCharsToChars(ucc, cc, uccLen); in initialize()