Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 25 of 32) sorted by relevance

12

/external/sqlite/android/
DPhoneticStringUtils.cpp35 static int GetHiraganaFromHalfwidthKatakana(char32_t codepoint, in GetHiraganaFromHalfwidthKatakana() argument
38 if (codepoint < 0xFF66 || 0xFF9F < codepoint) { in GetHiraganaFromHalfwidthKatakana()
39 return codepoint; in GetHiraganaFromHalfwidthKatakana()
42 switch (codepoint) { in GetHiraganaFromHalfwidthKatakana()
71 if (0xFF71 <= codepoint && codepoint <= 0xFF75) { in GetHiraganaFromHalfwidthKatakana()
73 if (codepoint == 0xFF73 && next_codepoint == 0xFF9E) { in GetHiraganaFromHalfwidthKatakana()
79 return 0x3042 + (codepoint - 0xFF71) * 2; in GetHiraganaFromHalfwidthKatakana()
81 } else if (0xFF76 <= codepoint && codepoint <= 0xFF81) { in GetHiraganaFromHalfwidthKatakana()
88 return 0x304B + (codepoint - 0xFF76) * 2 + 1; in GetHiraganaFromHalfwidthKatakana()
90 return 0x304B + (codepoint - 0xFF76) * 2; in GetHiraganaFromHalfwidthKatakana()
[all …]
DPhoneticStringUtilsTest.cpp120 #define EXPECT_EQ_CODEPOINT_UTF8(codepoint, expected) \ argument
122 char32_t codepoints[1] = {codepoint}; \
125 printf("GetUtf8FromCodePoint() returned false at 0x%04X\n", codepoint); \
130 printf("Failed at codepoint 0x%04X\n", codepoint); \
DPhoneticStringUtils.h34 int GetNormalizedCodePoint(char32_t codepoint,
41 bool GetUtf8FromCodePoint(int codepoint, char *dst, size_t len, size_t *index);
/external/icu4c/common/
Ducnv_ct.c103 #define isASCIIRange(codepoint) \ argument
104 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \
105 … (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF))
107 #define isIBM915(codepoint) \ argument
108 ((codepoint >= 0x0401 && codepoint <= 0x045F) || (codepoint == 0x2116))
110 #define isIBM916(codepoint) \ argument
111 … ((codepoint >= 0x05D0 && codepoint <= 0x05EA) || (codepoint == 0x2017) || (codepoint == 0x203E))
113 #define isCompoundS3(codepoint) \ argument
114 …((codepoint == 0x060C) || (codepoint == 0x061B) || (codepoint == 0x061F) || (codepoint >= 0x0621 &…
115 …(codepoint >= 0x0640 && codepoint <= 0x0652) || (codepoint >= 0x0660 && codepoint <= 0x066D) || (c…
[all …]
Dusetiter.cpp49 codepoint = codepointEnd = nextElement++; in next()
55 codepoint = codepointEnd = nextElement++; in next()
61 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in next()
81 codepoint = nextElement; in nextRange()
88 codepoint = nextElement; in nextRange()
94 codepoint = (UChar32)IS_STRING; // signal that value is actually a string in nextRange()
136 if (string==NULL && codepoint!=(UChar32)IS_STRING) { in getString()
141 cpString->setTo((UChar32)codepoint); in getString()
/external/icu4c/tools/dumpce/
Ddumpce.cpp163 UChar *codepoint = iter->iteratordata_.string; in serialize() local
170 serialize(f, codepoint, iter->iteratordata_.endp - codepoint); in serialize()
171 sortkeylength = ucol_getSortKey(iter->iteratordata_.coll, codepoint, in serialize()
172 iter->iteratordata_.endp - codepoint, sortkey, 64); in serialize()
175 serialize(f, codepoint); in serialize()
176 sortkeylength = ucol_getSortKey(iter->iteratordata_.coll, codepoint, in serialize()
180 serialize(stdout, codepoint); in serialize()
380 UChar32 codepoint = 0; in serialize() local
381 while (codepoint <= UCHAR_MAX_VALUE) { in serialize()
382 if (u_isdefined(codepoint)) { in serialize()
[all …]
/external/icu4c/tools/gensprep/
Dstore.c242 int32_t codepoint = 0; in storeMappingData() local
264 codepoint = element->key.integer; in storeMappingData()
293 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMappingData()
303 … fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMappingData()
309 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMappingData()
373 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, in storeMapping() argument
390 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMapping()
400 fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMapping()
419 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMapping()
433 int16_t delta = (int16_t)((int32_t)codepoint - (int16_t) mapping[0]); in storeMapping()
[all …]
Dgensprep.h49 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode…
/external/icu4c/test/intltest/
Ditercoll.cpp51 UChar codepoint; in TestUnicodeChar() local
54 for (codepoint = 1; codepoint < 0xFFFE;) in TestUnicodeChar()
58 while (codepoint % 0xFF != 0) in TestUnicodeChar()
60 if (u_isdefined(codepoint)) in TestUnicodeChar()
61 source += codepoint; in TestUnicodeChar()
62 codepoint ++; in TestUnicodeChar()
65 if (u_isdefined(codepoint)) in TestUnicodeChar()
66 source += codepoint; in TestUnicodeChar()
68 if (codepoint != 0xFFFF) in TestUnicodeChar()
69 codepoint ++; in TestUnicodeChar()
Dtestidn.cpp52 compareMapping(uint32_t codepoint, uint32_t* mapping, int32_t mapLength,
325 compareMapping(uint32_t codepoint, uint32_t* mapping,int32_t mapLength, in compareMapping() argument
328 UTRIE_GET16(idnTrie,codepoint, result); in compareMapping()
340 …not get the assigned type for codepoint 0x%08X. Expected: %i Got: %i\n",codepoint, USPREP_MAP, typ… in compareMapping()
393 if(retType!=USPREP_DELETE && (codepoint-delta) != (uint16_t)mapping[0]){ in compareMapping()
394 …("Did not get the expected result. Expected: 0x%04X Got: 0x%04X \n", mapping[0],(codepoint-delta)); in compareMapping()
Dtestidna.cpp1353 int32_t codepoint = rand_uni(); in getTestSource() local
1354 if(codepoint == 0x0000){ in getTestSource()
1357 fillIn.append((UChar32)codepoint); in getTestSource()
/external/icu4c/common/unicode/
Dusetiter.h78 UChar32 codepoint; variable
304 return codepoint == (UChar32)IS_STRING; in isString()
308 return codepoint; in getCodepoint()
Duscript.h443 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/libxml2/
Dxmlregexp.c190 int codepoint; member
356 static int xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint);
357 static int xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint,
1097 fprintf(output, "char %c\n", atom->codepoint); in xmlRegPrintAtom()
1140 fprintf(output, "char %c ", trans->atom->codepoint); in xmlRegPrintTrans()
2106 int codepoint; in xmlFACompareRanges() local
2119 for (codepoint = range1->start;codepoint <= range1->end ;codepoint++) { in xmlFACompareRanges()
2120 ret = xmlRegCheckCharacterRange(range2->type, codepoint, in xmlFACompareRanges()
2469 ret = (atom1->codepoint == atom2->codepoint); in xmlFAEqualAtoms()
2528 ret = (atom1->codepoint == atom2->codepoint); in xmlFACompareAtoms()
[all …]
/external/icu4c/test/cintltst/
Dsprpdata.c36 compareMapping(UStringPrepProfile* data, uint32_t codepoint, uint32_t* mapping, int32_t mapLength,
146 compareMapping(UStringPrepProfile* data, uint32_t codepoint, uint32_t* mapping,int32_t mapLength, in compareMapping() argument
160 UTRIE_GET16(&trie, codepoint, result); in compareMapping()
166 …not get the assigned type for codepoint 0x%08X. Expected: %i Got: %i\n",codepoint, USPREP_MAP, typ… in compareMapping()
218 if(retType!=USPREP_DELETE && (codepoint-delta) != (uint16_t)mapping[0]){ in compareMapping()
219 …("Did not get the expected result. Expected: 0x%04X Got: 0x%04X \n", mapping[0],(codepoint-delta)); in compareMapping()
Dcitertst.c227 UChar codepoint; in TestUnicodeChar() local
237 for (codepoint = 1; codepoint < 0xFFFE;) in TestUnicodeChar()
241 while (codepoint % 0xFF != 0) in TestUnicodeChar()
243 if (u_isdefined(codepoint)) in TestUnicodeChar()
244 *(test ++) = codepoint; in TestUnicodeChar()
245 codepoint ++; in TestUnicodeChar()
248 if (u_isdefined(codepoint)) in TestUnicodeChar()
249 *(test ++) = codepoint; in TestUnicodeChar()
251 if (codepoint != 0xFFFF) in TestUnicodeChar()
252 codepoint ++; in TestUnicodeChar()
[all …]
Dutf16tst.c82 static uint32_t codepoint[]={ in TestCharLength() local
97 for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=(int16_t)(i+2)){ in TestCharLength()
98 UChar32 c=codepoint[i+1]; in TestCharLength()
99 … if(UTF16_CHAR_LENGTH(c) != (uint16_t)codepoint[i] || U16_LENGTH(c) != (uint16_t)codepoint[i]){ in TestCharLength()
100 …log_err("The no: of code units for %lx:- Expected: %d Got: %d\n", c, codepoint[i], UTF16_CHAR_LENG… in TestCharLength()
104 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE); in TestCharLength()
Dutf8tst.c118 static const uint32_t codepoint[]={ in TestCharLength() local
137 for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=(int16_t)(i+2)){ in TestCharLength()
138 UChar32 c=codepoint[i+1]; in TestCharLength()
139 if(UTF8_CHAR_LENGTH(c) != (uint16_t)codepoint[i] || U8_LENGTH(c) != (uint16_t)codepoint[i]){ in TestCharLength()
140 …log_err("The no: of code units for %lx:- Expected: %d Got: %d\n", c, codepoint[i], UTF8_CHAR_LENGT… in TestCharLength()
144 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE); in TestCharLength()
Dcucdtst.c1399 const int32_t codepoint[]={ in TestCharLength() local
1414 for(i=0; i<(int32_t)(sizeof(codepoint)/sizeof(codepoint[0])); i=(int16_t)(i+2)){ in TestCharLength()
1415 UChar32 c=codepoint[i+1]; in TestCharLength()
1416 if(UTF_CHAR_LENGTH(c) != codepoint[i] || U16_LENGTH(c) != codepoint[i]){ in TestCharLength()
1417 …log_err("The no: of code units for U+%04x:- Expected: %d Got: %d\n", c, codepoint[i], UTF_CHAR_LEN… in TestCharLength()
1419 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE); in TestCharLength()
/external/chromium/base/
Dfile_path.cc1045 int codepoint = 0; in HFSReadNextNonIgnorableCodepoint() local
1046 while (*index < length && codepoint == 0) { in HFSReadNextNonIgnorableCodepoint()
1049 CBU8_NEXT(string, *index, length, codepoint); in HFSReadNextNonIgnorableCodepoint()
1050 DCHECK_GT(codepoint, 0); in HFSReadNextNonIgnorableCodepoint()
1051 if (codepoint > 0) { in HFSReadNextNonIgnorableCodepoint()
1053 int lookup_offset = lower_case_table[codepoint >> 8]; in HFSReadNextNonIgnorableCodepoint()
1055 codepoint = lower_case_table[lookup_offset + (codepoint & 0x00FF)]; in HFSReadNextNonIgnorableCodepoint()
1060 return codepoint; in HFSReadNextNonIgnorableCodepoint()
/external/llvm/lib/Support/
DYAMLParser.cpp212 uint32_t codepoint = ((*Position & 0x1F) << 6) | in decodeUTF8() local
214 if (codepoint >= 0x80) in decodeUTF8()
215 return std::make_pair(codepoint, 2); in decodeUTF8()
223 uint32_t codepoint = ((*Position & 0x0F) << 12) | in decodeUTF8() local
228 if (codepoint >= 0x800 && in decodeUTF8()
229 (codepoint < 0xD800 || codepoint > 0xDFFF)) in decodeUTF8()
230 return std::make_pair(codepoint, 3); in decodeUTF8()
239 uint32_t codepoint = ((*Position & 0x07) << 18) | in decodeUTF8() local
243 if (codepoint >= 0x10000 && codepoint <= 0x10FFFF) in decodeUTF8()
244 return std::make_pair(codepoint, 4); in decodeUTF8()
/external/webkit/Source/WebCore/icu/unicode/
Duscript.h144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/webkit/Source/WebKit/mac/icu/unicode/
Duscript.h144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/icu4c/samples/ucnv/
Dconvsamp.cpp386 UChar32 codepoint; member
429 info[p].codepoint = p; in convsample_06()
/external/icu4c/i18n/
Dusearch.cpp895 UChar32 codepoint; in checkExtraMatchAccents() local
896 UTF_PREV_CHAR(norm, 0, offset, codepoint); in checkExtraMatchAccents()
897 result = !ignorable && (u_getCombiningClass(codepoint) != 0); in checkExtraMatchAccents()
1335 UChar32 codepoint = 0; in getUnblockedAccentIndex() local
1341 UTF_NEXT_CHAR(accents, index, length, codepoint); in getUnblockedAccentIndex()
1342 if (u_getCombiningClass(codepoint) != cclass) { in getUnblockedAccentIndex()
1343 cclass = u_getCombiningClass(codepoint); in getUnblockedAccentIndex()

12