Home
last modified time | relevance | path

Searched refs:codepoint (Results 1 – 25 of 27) 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.cpp134 char32_t codepoint; in testGetPhoneticallySortableCodePointAscii() local
136 for (i = 0, codepoint = 0x0021; codepoint <= 0x007E; ++i, ++codepoint) { in testGetPhoneticallySortableCodePointAscii()
137 halfwidth[i] = GetPhoneticallySortableCodePoint(codepoint, 0, in testGetPhoneticallySortableCodePointAscii()
140 printf("returned value become negative at 0x%04X", codepoint); in testGetPhoneticallySortableCodePointAscii()
145 printf("next_is_consumed become true at 0x%04X", codepoint); in testGetPhoneticallySortableCodePointAscii()
150 for (i = 0, codepoint = 0xFF01; codepoint <= 0xFF5E; ++i, ++codepoint) { in testGetPhoneticallySortableCodePointAscii()
151 fullwidth[i] = GetPhoneticallySortableCodePoint(codepoint, 0, in testGetPhoneticallySortableCodePointAscii()
154 printf("returned value become negative at 0x%04X", codepoint); in testGetPhoneticallySortableCodePointAscii()
159 printf("next_is_consumed become true at 0x%04X", codepoint); in testGetPhoneticallySortableCodePointAscii()
175 char32_t codepoint; in testGetPhoneticallySortableCodePointKana() local
[all …]
DPhoneticStringUtils.h35 int GetPhoneticallySortableCodePoint(char32_t codepoint,
48 int GetNormalizedCodePoint(char32_t codepoint,
55 bool GetUtf8FromCodePoint(int codepoint, char *dst, size_t len, size_t *index);
/external/icu4c/common/
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
259 codepoint = element->key.integer; in storeMappingData()
288 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMappingData()
298 … fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMappingData()
304 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMappingData()
368 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, in storeMapping() argument
385 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL); in storeMapping()
395 fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint); in storeMapping()
414 if(!utrie_set32(sprepTrie,codepoint,trieWord)){ in storeMapping()
428 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,
321 compareMapping(uint32_t codepoint, uint32_t* mapping,int32_t mapLength, in compareMapping() argument
324 UTRIE_GET16(idnTrie,codepoint, result); in compareMapping()
336 …not get the assigned type for codepoint 0x%08X. Expected: %i Got: %i\n",codepoint, USPREP_MAP, typ… in compareMapping()
389 if(retType!=USPREP_DELETE && (codepoint-delta) != (uint16_t)mapping[0]){ in compareMapping()
390 …("Did not get the expected result. Expected: 0x%04X Got: 0x%04X \n", mapping[0],(codepoint-delta)); in compareMapping()
Dtestidna.cpp1339 int32_t codepoint = rand_uni(); in getTestSource() local
1340 if(codepoint == 0x0000){ in getTestSource()
1343 fillIn.append((UChar32)codepoint); in getTestSource()
/external/libxml2/
Dxmlregexp.c190 int codepoint; member
352 static int xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint);
353 static int xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint,
1090 fprintf(output, "char %c\n", atom->codepoint); in xmlRegPrintAtom()
1133 fprintf(output, "char %c ", trans->atom->codepoint); in xmlRegPrintTrans()
2072 int codepoint; in xmlFACompareRanges() local
2085 for (codepoint = range1->start;codepoint <= range1->end ;codepoint++) { in xmlFACompareRanges()
2086 ret = xmlRegCheckCharacterRange(range2->type, codepoint, in xmlFACompareRanges()
2431 ret = (atom1->codepoint == atom2->codepoint); in xmlFAEqualAtoms()
2486 ret = (atom1->codepoint == atom2->codepoint); in xmlFACompareAtoms()
[all …]
Dparser.c9604 int codepoint; in xmlCheckCdataPush() local
9622 codepoint = (utf[ix] & 0x1f) << 6; in xmlCheckCdataPush()
9623 codepoint |= utf[ix+1] & 0x3f; in xmlCheckCdataPush()
9624 if (!xmlIsCharQ(codepoint)) in xmlCheckCdataPush()
9632 codepoint = (utf[ix] & 0xf) << 12; in xmlCheckCdataPush()
9633 codepoint |= (utf[ix+1] & 0x3f) << 6; in xmlCheckCdataPush()
9634 codepoint |= utf[ix+2] & 0x3f; in xmlCheckCdataPush()
9635 if (!xmlIsCharQ(codepoint)) in xmlCheckCdataPush()
9644 codepoint = (utf[ix] & 0x7) << 18; in xmlCheckCdataPush()
9645 codepoint |= (utf[ix+1] & 0x3f) << 12; in xmlCheckCdataPush()
[all …]
/external/icu4c/common/unicode/
Dusetiter.h78 UChar32 codepoint; variable
304 return codepoint == (UChar32)IS_STRING; in isString()
308 return codepoint; in getCodepoint()
Duscript.h234 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/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.c224 UChar codepoint; in TestUnicodeChar() local
234 for (codepoint = 1; codepoint < 0xFFFE;) in TestUnicodeChar()
238 while (codepoint % 0xFF != 0) in TestUnicodeChar()
240 if (u_isdefined(codepoint)) in TestUnicodeChar()
241 *(test ++) = codepoint; in TestUnicodeChar()
242 codepoint ++; in TestUnicodeChar()
245 if (u_isdefined(codepoint)) in TestUnicodeChar()
246 *(test ++) = codepoint; in TestUnicodeChar()
248 if (codepoint != 0xFFFF) in TestUnicodeChar()
249 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.c1439 const int32_t codepoint[]={ in TestCharLength() local
1454 for(i=0; i<(int32_t)(sizeof(codepoint)/sizeof(codepoint[0])); i=(int16_t)(i+2)){ in TestCharLength()
1455 UChar32 c=codepoint[i+1]; in TestCharLength()
1456 if(UTF_CHAR_LENGTH(c) != codepoint[i] || U16_LENGTH(c) != codepoint[i]){ in TestCharLength()
1457 …log_err("The no: of code units for U+%04x:- Expected: %d Got: %d\n", c, codepoint[i], UTF_CHAR_LEN… in TestCharLength()
1459 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE); in TestCharLength()
/external/webkit/WebCore/icu/unicode/
Duscript.h144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/webkit/WebKit/mac/icu/unicode/
Duscript.h144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/icu4c/samples/ucnv/
Dconvsamp.cpp384 UChar32 codepoint; member
428 info[p].codepoint = p; in convsample_06()
/external/icu4c/i18n/
Dusearch.cpp751 UChar32 codepoint; in checkExtraMatchAccents() local
752 UTF_PREV_CHAR(norm, 0, offset, codepoint); in checkExtraMatchAccents()
753 result = !ignorable && (u_getCombiningClass(codepoint) != 0); in checkExtraMatchAccents()
1217 UChar32 codepoint = 0; in getUnblockedAccentIndex() local
1223 UTF_NEXT_CHAR(accents, index, length, codepoint); in getUnblockedAccentIndex()
1224 if (u_getCombiningClass(codepoint) != cclass) { in getUnblockedAccentIndex()
1225 cclass = u_getCombiningClass(codepoint); in getUnblockedAccentIndex()
/external/tcpdump/
DCHANGES22 801.1ag: use standard codepoint.
39 bugfix: use the correct codepoint for the OSPF simple text auth token
/external/icu4c/test/testdata/
Dconversion.txt630 "\u30ab", // An incomplete multi-codepoint character

12