/external/libvterm/src/ |
utf8.h | 5 static inline unsigned int utf8_seqlen(long codepoint) 7 if(codepoint < 0x0000080) return 1; 8 if(codepoint < 0x0000800) return 2; 9 if(codepoint < 0x0010000) return 3; 10 if(codepoint < 0x0200000) return 4; 11 if(codepoint < 0x4000000) return 5; 16 static int fill_utf8(long codepoint, char *str) 18 int nbytes = utf8_seqlen(codepoint); 24 str[b] = 0x80 | (codepoint & 0x3f); 25 codepoint >>= 6 [all...] |
/frameworks/base/tools/aapt2/text/ |
Unicode.cpp | 45 bool CompareCharacterProperties(const CharacterProperties& a, char32_t codepoint) { 46 return a.last_char < codepoint; 49 uint32_t FindCharacterProperties(char32_t codepoint) { 51 const auto iter = std::lower_bound(sCharacterProperties.begin(), iter_end, codepoint, 53 if (iter != iter_end && codepoint >= iter->first_char) { 61 bool IsXidStart(char32_t codepoint) { 62 return FindCharacterProperties(codepoint) & CharacterProperties::kXidStart; 65 bool IsXidContinue(char32_t codepoint) { 66 return FindCharacterProperties(codepoint) & CharacterProperties::kXidContinue; 72 bool IsWhitespace(char32_t codepoint) { 93 const char32_t codepoint = iter.Next(); local 116 const char32_t codepoint = iter.Next(); local [all...] |
Unicode.h | 25 // Returns true if the Unicode codepoint has the XID_Start property, meaning it can be used as the 32 bool IsXidStart(char32_t codepoint); 34 // Returns true if the Unicode codepoint has the XID_Continue property, meaning it can be used in 41 bool IsXidContinue(char32_t codepoint); 43 // Returns true if the Unicode codepoint has the White_Space property. 45 bool IsWhitespace(char32_t codepoint);
|
/external/icu/icu4c/source/common/ |
ucnv_ct.c | 104 #define isASCIIRange(codepoint) \ 105 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \ 106 (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) 108 #define isIBM915(codepoint) \ 109 ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116) [all...] |
usetiter.cpp | 43 * if so, if codepoint == IS_STRING, the value is a string in the string field 44 * else the value is a single code point in the codepoint field. 51 codepoint = codepointEnd = nextElement++; 57 codepoint = codepointEnd = nextElement++; 63 codepoint = (UChar32)IS_STRING; // signal that value is actually a string 70 * if so, if codepoint == IS_STRING, the value is a string in the string field 71 * else the value is a range of codepoints in the <codepoint, codepointEnd> fields. 83 codepoint = nextElement; 90 codepoint = nextElement; 96 codepoint = (UChar32)IS_STRING; // signal that value is actually a strin [all...] |
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
CharsetCompoundText.java | 98 private static boolean isASCIIRange(int codepoint) { 99 if ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || 100 (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF)) { 106 private static boolean isIBM915(int codepoint) { 107 if ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116)) [all...] |
/external/libtextclassifier/lang_id/ |
script-detector.h | 83 const unsigned int codepoint = ((p[0] & 0x1F) << 6) | (p[1] & 0x3F); local 84 if (codepoint > kCyrillicEnd) { 85 if (codepoint >= kArabicStart) { 86 if (codepoint <= kArabicEnd) { 90 // At this point, codepoint < kArabicStart = kHebrewEnd + 1, so 91 // codepoint <= kHebrewEnd. 92 if (codepoint >= kHebrewStart) { 97 if (codepoint >= kCyrillicStart) { 100 // At this point, codepoint < kCyrillicStart = kGreekEnd + 1, so 101 // codepoint <= kGreekEnd 120 const unsigned int codepoint = local [all...] |
/external/chromium-libpac/test/js-unittest/ |
return_unicode.js | 1 // U+200B is the codepoint for zero-width-space.
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeSetIterator.java | 31 * if (it.codepoint != UnicodeSetIterator.IS_STRING) { 32 * processCodepointRange(it.codepoint, it.codepointEnd); 45 * Value of <tt>codepoint</tt> if the iterator points to a string. 46 * If <tt>codepoint == IS_STRING</tt>, then examine 55 public int codepoint; field in class:UnicodeSetIterator 60 * iteration range, if <tt>codepoint != IS_STRING</tt>. If 62 * <tt>codepoint == IS_STRING</tt>, then the value of 68 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points 69 * to the current string. If <tt>codepoint != IS_STRING</tt>, the 94 * false. If <tt>codepoint == IS_STRING</tt>, the value is [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
UnicodeMapIterator.java | 27 * if (set.codepoint != UnicodeSetIterator.IS_STRING) { 28 * processCodepoint(set.codepoint); 39 * if (set.codepoint != UnicodeSetIterator.IS_STRING) { 40 * processCodepointRange(set.codepoint, set.codepointEnd); 51 * Value of <tt>codepoint</tt> if the iterator points to a string. 52 * If <tt>codepoint == IS_STRING</tt>, then examine 61 public int codepoint; field in class:UnicodeMapIterator 66 * iteration range, if <tt>codepoint != IS_STRING</tt>. If 68 * <tt>codepoint == IS_STRING</tt>, then the value of 74 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> point [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeSetIterator.java | 30 * if (it.codepoint != UnicodeSetIterator.IS_STRING) { 31 * processCodepointRange(it.codepoint, it.codepointEnd); 45 * Value of <tt>codepoint</tt> if the iterator points to a string. 46 * If <tt>codepoint == IS_STRING</tt>, then examine 57 public int codepoint; field in class:UnicodeSetIterator 62 * iteration range, if <tt>codepoint != IS_STRING</tt>. If 64 * <tt>codepoint == IS_STRING</tt>, then the value of 71 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points 72 * to the current string. If <tt>codepoint != IS_STRING</tt>, the 100 * false. If <tt>codepoint == IS_STRING</tt>, the value is [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
UnicodeMapIterator.java | 26 * if (set.codepoint != UnicodeSetIterator.IS_STRING) { 27 * processCodepoint(set.codepoint); 38 * if (set.codepoint != UnicodeSetIterator.IS_STRING) { 39 * processCodepointRange(set.codepoint, set.codepointEnd); 50 * Value of <tt>codepoint</tt> if the iterator points to a string. 51 * If <tt>codepoint == IS_STRING</tt>, then examine 60 public int codepoint; field in class:UnicodeMapIterator 65 * iteration range, if <tt>codepoint != IS_STRING</tt>. If 67 * <tt>codepoint == IS_STRING</tt>, then the value of 73 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> point [all...] |
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
BindingsHelper.java | 96 int codepoint = c; local 100 codepoint = Character.toCodePoint(c, c2); 103 if (codepoint > 0x7f) { 105 if (codepoint > 0x7ff) { 107 if (codepoint > 0xffff) { 109 if (codepoint > 0x1fffff) { 111 if (codepoint > 0x3ffffff) {
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
HtmlEntities.java | 103 int codepoint = -1; local 110 codepoint = 0; 119 codepoint = (codepoint << 4) | decDig; 121 codepoint = -1; 129 codepoint = (codepoint << 4) | (hexDig + 9); 131 codepoint = -1; 136 codepoint = -1; 140 if (codepoint > Character.MAX_CODE_POINT) [all...] |
Encoding.java | 57 int codepoint = (int) endAndCodepoint; local 58 sb.append(s, pos, amp).appendCodePoint(codepoint); 185 int codepoint = Character.toCodePoint(ch, next); local 187 appendNumericEntity(codepoint, output); 212 static void appendNumericEntity(int codepoint, Appendable output) 214 if (codepoint < 100) { 217 if (codepoint < 10) { 218 output.append((char) ('0' + codepoint)); 220 output.append((char) ('0' + (codepoint / 10))); 221 output.append((char) ('0' + (codepoint % 10))) [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-cmap-table.hh | 45 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const 47 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; 85 static inline bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyph) 97 if (codepoint < startCount[mid]) 99 else if (codepoint > endCount[mid]) 113 gid = codepoint + thiz->idDelta[i]; 117 unsigned int index = rangeOffset / 2 + (codepoint - thiz->startCount[i]) + i - thiz->segCount; 139 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const 143 return accel.get_glyph_func (&accel, codepoint, glyph) [all...] |
hb-fallback-shape.cc | 122 if (has_space && unicode->is_default_ignorable (info[i].codepoint)) { 123 info[i].codepoint = space; 128 font->get_nominal_glyph (info[i].codepoint, &info[i].codepoint); 129 font->get_glyph_advance_for_direction (info[i].codepoint, 133 font->subtract_glyph_origin_for_direction (info[i].codepoint,
|
hb-set.cc | 191 * @codepoint: 201 hb_codepoint_t codepoint) 203 return set->has (codepoint); 209 * @codepoint: 217 hb_codepoint_t codepoint) 219 set->add (codepoint); 243 * @codepoint: 251 hb_codepoint_t codepoint) 253 set->del (codepoint); 437 * @codepoint: (inout) [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
encodings.h | 44 //! \brief Encode a Unicode codepoint to an output stream.
46 //! \param codepoint An unicode codepoint, ranging from 0x0 to 0x10FFFF inclusively.
48 static void Encode(OutputStream& os, unsigned codepoint);
50 //! \brief Decode a Unicode codepoint from an input stream.
52 //! \param codepoint Output of the unicode codepoint.
53 //! \return true if a valid codepoint can be decoded from the stream.
55 static bool Decode(InputStream& is, unsigned* codepoint);
57 //! \brief Validate one Unicode codepoint from an encoded stream. 590 unsigned codepoint; local [all...] |
/external/icu/icu4c/source/common/unicode/ |
usetiter.h | 68 * Value of <tt>codepoint</tt> if the iterator points to a string. 69 * If <tt>codepoint == IS_STRING</tt>, then examine 80 UChar32 codepoint; member in class:UnicodeSetIterator 85 * iteration range, if <tt>codepoint != IS_STRING</tt>. If 87 * <tt>codepoint == IS_STRING</tt>, then the value of 94 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points 95 * to the current string. If <tt>codepoint != IS_STRING</tt>, the 131 * Elements of types string and codepoint can both be retrieved 133 * Elements of type codepoint can also be retrieved with 135 * For ranges, <tt>getCodepoint()</tt> returns the starting codepoint [all...] |
/external/libtextclassifier/smartselect/ |
tokenizer.cc | 40 int codepoint) const { 42 codepoint, 43 [](const CodepointRange& range, int codepoint) { 45 // codepoint for the purpose of finding the first 48 // range < codepoint; the first time it will 53 // range.end <= codepoint here but when codepoint 56 // than the codepoint. 57 return range.end <= codepoint; 59 if (it != codepoint_ranges_.end() && it->start <= codepoint & [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/ |
filters.py | 99 codepoint = ord(m.group()) 101 return self.codepoint2entity[codepoint] 103 return '&#x%X;' % codepoint 134 codepoint = int(dval) 136 codepoint = int(hval, 16) 138 codepoint = self.name2codepoint.get(name, 0xfffd) 140 if codepoint < 128: 141 return chr(codepoint) 142 return chr(codepoint)
|
/frameworks/base/tools/aapt2/util/ |
Util.cpp | 288 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) { 289 ssize_t len = utf32_to_utf8_length(&codepoint, 1); 300 utf32_to_utf8(&codepoint, 1, dst, len + 1); 307 char32_t codepoint = iter->Next(); local 309 if (codepoint >= U'0' && codepoint <= U'9') { 310 a = codepoint - U'0'; 311 } else if (codepoint >= U'a' && codepoint <= U'f') { 312 a = codepoint - U'a' + 10 343 const char32_t codepoint = iter.Next(); local [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
encodingstest.cpp | 278 // unsigned codepoint, state = 0;
281 // decode(&state, &codepoint, *s++);
289 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) {
291 UTF8<>::Encode(os, codepoint);
302 EXPECT_EQ(codepoint, decodedCodepoint);
311 std::cout << std::hex << codepoint << " " << decodedCodepoint << std::endl;
320 EXPECT_EQ(codepoint, decodedCodepoint);
321 if (!result || codepoint != decodedCodepoint) [all...] |
/frameworks/minikin/tests/util/ |
UnicodeUtils.cpp | 48 // Unicode codepoint in hex syntax 53 unsigned long int codepoint = strtoul(src + input_ix, &endptr, 16); local 59 LOG_ALWAYS_FATAL_IF(codepoint > 0x10FFFFu); 61 if (U16_LENGTH(codepoint) == 1) { 63 buf[output_ix++] = codepoint; 67 buf[output_ix++] = U16_LEAD(codepoint); 68 buf[output_ix++] = U16_TRAIL(codepoint);
|