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

12

/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
200 GetNormalizedKana(char32_t codepoint, char32_t next_codepoint, bool *next_is_consumed) argument
223 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 Ducnv_ct.c103 #define isASCIIRange(codepoint) \
104 ((codepoint == 0x0000) || (codepoint == 0x0009) || (codepoint == 0x000A) || \
105 (codepoint >= 0x0020 && codepoint <= 0x007f) || (codepoint >= 0x00A0 && codepoint <= 0x00FF))
107 #define isIBM915(codepoint) \
108 ((codepoint >
192 getState(int codepoint) argument
[all...]
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.h435 * Gets the script code associated with the given codepoint.
437 * @param codepoint UChar32 codepoint
439 * @return The UScriptCode, or 0 if codepoint is invalid
443 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.c227 UChar codepoint; local
237 for (codepoint = 1; codepoint < 0xFFFE;)
241 while (codepoint % 0xFF != 0)
243 if (u_isdefined(codepoint))
244 *(test ++) = codepoint;
245 codepoint ++;
248 if (u_isdefined(codepoint))
249 *(test ++) = codepoint;
251 if (codepoint !
293 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
356 static int xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint);
357 static int xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint,
703 * @start: the start codepoint
704 * @end: the end codepoint
1097 fprintf(output, "char %c\n", atom->codepoint);
1140 fprintf(output, "char %c ", trans->atom->codepoint);
2106 int codepoint; local
2119 for (codepoint = range1->start;codepoint <
2782 xmlRegCheckCharacterRange(xmlRegAtomType type, int codepoint, int neg, int start, int end, const xmlChar *blockName) argument
2952 xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint) argument
3177 int ret, codepoint = 0, len, deter; local
5234 int codepoint, len; local
[all...]
/external/llvm/lib/Support/
H A DYAMLParser.cpp212 uint32_t codepoint = ((*Position & 0x1F) << 6) | local
214 if (codepoint >= 0x80)
215 return std::make_pair(codepoint, 2);
223 uint32_t codepoint = ((*Position & 0x0F) << 12) | local
228 if (codepoint >= 0x800 &&
229 (codepoint < 0xD800 || codepoint > 0xDFFF))
230 return std::make_pair(codepoint, 3);
239 uint32_t codepoint = ((*Position & 0x07) << 18) | local
243 if (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:__anon5952
429 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 397 milliseconds

12