Searched refs:codepoint (Results 1 - 24 of 24) sorted by relevance

/external/sqlite/android/
H A DPhoneticStringUtils.cpp35 static int GetHiraganaFromHalfwidthKatakana(char32_t codepoint, argument
38 if (codepoint < 0xFF66 || 0xFF9F < codepoint) {
39 return codepoint;
42 switch (codepoint) {
71 if (0xFF71 <= codepoint && codepoint <= 0xFF75) {
73 if (codepoint == 0xFF73 && next_codepoint == 0xFF9E) {
79 return 0x3042 + (codepoint - 0xFF71) * 2;
81 } else if (0xFF76 <= codepoint
141 GetNormalizedHiragana(int codepoint) argument
167 GetNormalizedKana(char32_t codepoint, char32_t next_codepoint, bool *next_is_consumed) argument
184 GetNormalizedCodePoint(char32_t codepoint, char32_t next_codepoint, bool *next_is_consumed) argument
[all...]
H A DPhoneticStringUtils.h25 // Returns codepoint which is "normalized", whose definition depends on each
30 // when previous "codepoint" is appropriate, like half-width "ka").
34 int GetNormalizedCodePoint(char32_t codepoint,
38 // Pushes Utf8 expression of "codepoint" to "dst". Returns true when successful.
41 bool GetUtf8FromCodePoint(int codepoint, char *dst, size_t len, size_t *index);
H A DPhoneticStringUtilsTest.cpp120 #define EXPECT_EQ_CODEPOINT_UTF8(codepoint, expected) \
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); \
/external/icu4c/common/
H A Dusetiter.cpp41 * if so, if codepoint == IS_STRING, the value is a string in the string field
42 * else the value is a single code point in the codepoint field.
49 codepoint = codepointEnd = nextElement++;
55 codepoint = codepointEnd = nextElement++;
61 codepoint = (UChar32)IS_STRING; // signal that value is actually a string
68 * if so, if codepoint == IS_STRING, the value is a string in the string field
69 * else the value is a range of codepoints in the <codepoint, codepointEnd> fields.
81 codepoint = nextElement;
88 codepoint = nextElement;
94 codepoint
[all...]
/external/icu4c/tools/gensprep/
H A Dgensprep.h49 storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode* status);
H A Dstore.c97 * 0 - ON : The code point is prohibited (USPREP_PROHIBITED). This is to allow for codepoint that are both prohibited and mapped.
242 int32_t codepoint = 0; local
264 codepoint = element->key.integer;
293 savedTrieWord= utrie_get32(sprepTrie,codepoint,NULL);
300 * the codepoint has value something other than prohibited
303 fprintf(stderr,"Type for codepoint \\U%08X already set!.\n", (int)codepoint);
309 if(!utrie_set32(sprepTrie,codepoint,trieWord)){
314 /* written the trie word for the codepoint... increment the count*/
373 storeMapping(uint32_t codepoint, uint32_ argument
[all...]
/external/icu4c/common/unicode/
H A Dusetiter.h66 * Value of <tt>codepoint</tt> if the iterator points to a string.
67 * If <tt>codepoint == IS_STRING</tt>, then examine
78 UChar32 codepoint; member in class:UnicodeSetIterator
83 * iteration range, if <tt>codepoint != IS_STRING</tt>. If
85 * <tt>codepoint == IS_STRING</tt>, then the value of
92 * If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points
93 * to the current string. If <tt>codepoint != IS_STRING</tt>, the
129 * Elements of types string and codepoint can both be retrieved
131 * Elements of type codepoint can also be retrieved with
133 * For ranges, <tt>getCodepoint()</tt> returns the starting codepoint
[all...]
H A Duscript.h269 * Gets the script code associated with the given codepoint.
271 * @param codepoint UChar32 codepoint
273 * @return The UScriptCode, or 0 if codepoint is invalid
277 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/icu4c/tools/dumpce/
H A Ddumpce.cpp114 int count; // number of codepoint
163 UChar *codepoint = iter->iteratordata_.string; local
170 serialize(f, codepoint, iter->iteratordata_.endp - codepoint);
171 sortkeylength = ucol_getSortKey(iter->iteratordata_.coll, codepoint,
172 iter->iteratordata_.endp - codepoint, sortkey, 64);
175 serialize(f, codepoint);
176 sortkeylength = ucol_getSortKey(iter->iteratordata_.coll, codepoint,
180 serialize(stdout, codepoint);
380 UChar32 codepoint local
875 UChar32 codepoint; local
905 checkInScripts(UScriptCode script[], int scriptcount, UChar32 codepoint) argument
940 UChar32 codepoint; local
959 UChar32 codepoint = 0; local
1040 UChar32 codepoint = 0; local
[all...]
/external/icu4c/test/intltest/
H A Ditercoll.cpp51 UChar codepoint; local
54 for (codepoint = 1; codepoint < 0xFFFE;)
58 while (codepoint % 0xFF != 0)
60 if (u_isdefined(codepoint))
61 source += codepoint;
62 codepoint ++;
65 if (u_isdefined(codepoint))
66 source += codepoint;
68 if (codepoint !
[all...]
H A Dtestidn.cpp52 compareMapping(uint32_t codepoint, uint32_t* mapping, int32_t mapLength,
226 * the source codepoint is copied to the destination
325 compareMapping(uint32_t codepoint, uint32_t* mapping,int32_t mapLength, argument
328 UTRIE_GET16(idnTrie,codepoint, result);
340 pTestIDNA->errln( "Did not get the assigned type for codepoint 0x%08X. Expected: %i Got: %i\n",codepoint, USPREP_MAP, type);
393 if(retType!=USPREP_DELETE && (codepoint-delta) != (uint16_t)mapping[0]){
394 pTestIDNA->errln("Did not get the expected result. Expected: 0x%04X Got: 0x%04X \n", mapping[0],(codepoint-delta));
H A Dtestidna.cpp1353 int32_t codepoint = rand_uni(); local
1354 if(codepoint == 0x0000){
1357 fillIn.append((UChar32)codepoint);
/external/icu4c/test/cintltst/
H A Dsprpdata.c36 compareMapping(UStringPrepProfile* data, uint32_t codepoint, uint32_t* mapping, int32_t mapLength,
117 * the source codepoint is copied to the destination
146 compareMapping(UStringPrepProfile* data, uint32_t codepoint, uint32_t* mapping,int32_t mapLength, argument
160 UTRIE_GET16(&trie, codepoint, result);
166 log_err( "Did not get the assigned type for codepoint 0x%08X. Expected: %i Got: %i\n",codepoint, USPREP_MAP, type);
218 if(retType!=USPREP_DELETE && (codepoint-delta) != (uint16_t)mapping[0]){
219 log_err("Did not get the expected result. Expected: 0x%04X Got: 0x%04X \n", mapping[0],(codepoint-delta));
H A Dcitertst.c225 UChar codepoint; local
235 for (codepoint = 1; codepoint < 0xFFFE;)
239 while (codepoint % 0xFF != 0)
241 if (u_isdefined(codepoint))
242 *(test ++) = codepoint;
243 codepoint ++;
246 if (u_isdefined(codepoint))
247 *(test ++) = codepoint;
249 if (codepoint !
291 UChar codepoint; local
[all...]
H A Dutf16tst.c82 static uint32_t codepoint[]={ local
97 for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=(int16_t)(i+2)){
98 UChar32 c=codepoint[i+1];
99 if(UTF16_CHAR_LENGTH(c) != (uint16_t)codepoint[i] || U16_LENGTH(c) != (uint16_t)codepoint[i]){
100 log_err("The no: of code units for %lx:- Expected: %d Got: %d\n", c, codepoint[i], UTF16_CHAR_LENGTH(c));
104 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE);
131 /*codepoint-unsafe, codepoint
[all...]
H A Dutf8tst.c118 static const uint32_t codepoint[]={ local
137 for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=(int16_t)(i+2)){
138 UChar32 c=codepoint[i+1];
139 if(UTF8_CHAR_LENGTH(c) != (uint16_t)codepoint[i] || U8_LENGTH(c) != (uint16_t)codepoint[i]){
140 log_err("The no: of code units for %lx:- Expected: %d Got: %d\n", c, codepoint[i], UTF8_CHAR_LENGTH(c));
144 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE);
171 /*codepoint-unsafe, codepoint
[all...]
H A Dcucdtst.c1292 /*surrogate, notvalid(codepoint), not a UnicodeChar, not Error */
1399 const int32_t codepoint[]={ local
1414 for(i=0; i<(int32_t)(sizeof(codepoint)/sizeof(codepoint[0])); i=(int16_t)(i+2)){
1415 UChar32 c=codepoint[i+1];
1416 if(UTF_CHAR_LENGTH(c) != codepoint[i] || U16_LENGTH(c) != codepoint[i]){
1417 log_err("The no: of code units for U+%04x:- Expected: %d Got: %d\n", c, codepoint[i], UTF_CHAR_LENGTH(c));
1419 multiple=(UBool)(codepoint[i] == 1 ? FALSE : TRUE);
/external/webkit/Source/WebCore/icu/unicode/
H A Duscript.h136 * Gets the script code associated with the given codepoint.
138 * @param codepoint UChar32 codepoint
140 * @return The UScriptCode, or 0 if codepoint is invalid
144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/webkit/Source/WebKit/mac/icu/unicode/
H A Duscript.h136 * Gets the script code associated with the given codepoint.
138 * @param codepoint UChar32 codepoint
140 * @return The UScriptCode, or 0 if codepoint is invalid
144 uscript_getScript(UChar32 codepoint, UErrorCode *err);
/external/libxml2/
H A Dxmlregexp.c190 int codepoint; member in struct:_xmlRegAtom
352 static int xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint);
353 static int xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint,
696 * @start: the start codepoint
697 * @end: the end codepoint
1090 fprintf(output, "char %c\n", atom->codepoint);
1133 fprintf(output, "char %c ", trans->atom->codepoint);
2093 int codepoint; local
2106 for (codepoint = range1->start;codepoint <
2743 xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint, int neg, int start, int end, const xmlChar *blockName) argument
2913 xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint) argument
3138 int ret, codepoint = 0, len, deter; local
5184 int codepoint, len; local
[all...]
H A Dparser.c10417 int codepoint; local
10435 codepoint = (utf[ix] & 0x1f) << 6;
10436 codepoint |= utf[ix+1] & 0x3f;
10437 if (!xmlIsCharQ(codepoint))
10445 codepoint = (utf[ix] & 0xf) << 12;
10446 codepoint |= (utf[ix+1] & 0x3f) << 6;
10447 codepoint |= utf[ix+2] & 0x3f;
10448 if (!xmlIsCharQ(codepoint))
10457 codepoint = (utf[ix] & 0x7) << 18;
10458 codepoint |
[all...]
/external/chromium/base/
H A Dfile_path.cc1038 // Returns the next non-ignorable codepoint within string starting from the
1045 int codepoint = 0; local
1046 while (*index < length && codepoint == 0) {
1049 CBU8_NEXT(string, *index, length, codepoint);
1050 DCHECK_GT(codepoint, 0);
1051 if (codepoint > 0) {
1053 int lookup_offset = lower_case_table[codepoint >> 8];
1055 codepoint = lower_case_table[lookup_offset + (codepoint & 0x00FF)];
1060 return codepoint;
[all...]
/external/icu4c/samples/ucnv/
H A Dconvsamp.cpp386 UChar32 codepoint; member in struct:__anon4858
430 info[p].codepoint = p;
/external/icu4c/i18n/
H A Dusearch.cpp895 UChar32 codepoint; local
896 UTF_PREV_CHAR(norm, 0, offset, codepoint);
897 result = !ignorable && (u_getCombiningClass(codepoint) != 0);
1335 UChar32 codepoint = 0; local
1341 UTF_NEXT_CHAR(accents, index, length, codepoint);
1342 if (u_getCombiningClass(codepoint) != cclass) {
1343 cclass = u_getCombiningClass(codepoint);

Completed in 4803 milliseconds