Home
last modified time | relevance | path

Searched refs:uchars (Results 1 – 18 of 18) sorted by relevance

/external/icu/icu4c/source/common/
Ducharstriebuilder.cpp90 uchars(NULL), ucharsCapacity(0), ucharsLength(0) {} in UCharsTrieBuilder()
94 uprv_free(uchars); in ~UCharsTrieBuilder()
150 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
154 uchars=NULL; // The new trie now owns the array. in build()
166 result.setTo(FALSE, uchars+(ucharsCapacity-ucharsLength), ucharsLength); in buildUnicodeString()
176 if(uchars!=NULL && ucharsLength>0) { in buildUChars()
214 uprv_free(uchars); in buildUChars()
215 uchars=static_cast<UChar *>(uprv_malloc(capacity*2)); in buildUChars()
216 if(uchars==NULL) { in buildUChars()
224 if(uchars==NULL) { in buildUChars()
[all …]
Ducnv_cnv.c90 const UChar *uchars, int32_t length, in ucnv_toUWriteUChars() argument
101 *t++=*uchars++; in ucnv_toUWriteUChars()
107 *t++=*uchars++; in ucnv_toUWriteUChars()
121 *t++=*uchars++; in ucnv_toUWriteUChars()
Ducnv_cnv.h307 const UChar *uchars, int32_t length,
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestBidiTransform.java290 char[] uchars = text.toCharArray(); in pseudoScript() local
291 for (int i = uchars.length; i-- > 0;) { in pseudoScript()
292 char uch = uchars[i]; in pseudoScript()
295 uchars[i] = substituteChar(uch, MIN_HEB_LETTER, 'K', 'Z'); in pseudoScript()
299 uchars[i] = substituteChar(uch, MIN_SHAPED_LETTER, 'F', 'J'); in pseudoScript()
301 uchars[i] = substituteChar(uch, MIN_ARAB_LETTER, 'A', 'E'); in pseudoScript()
305 uchars[i] = substituteChar(uch, ARAB_ZERO, '5', '9'); in pseudoScript()
311 return new String(uchars); in pseudoScript()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestBidiTransform.java291 char[] uchars = text.toCharArray(); in pseudoScript() local
292 for (int i = uchars.length; i-- > 0;) { in pseudoScript()
293 char uch = uchars[i]; in pseudoScript()
296 uchars[i] = substituteChar(uch, MIN_HEB_LETTER, 'K', 'Z'); in pseudoScript()
300 uchars[i] = substituteChar(uch, MIN_SHAPED_LETTER, 'F', 'J'); in pseudoScript()
302 uchars[i] = substituteChar(uch, MIN_ARAB_LETTER, 'A', 'E'); in pseudoScript()
306 uchars[i] = substituteChar(uch, ARAB_ZERO, '5', '9'); in pseudoScript()
312 return new String(uchars); in pseudoScript()
/external/icu/icu4c/source/tools/gennorm2/
Dgennorm2.cpp248 UChar uchars[Normalizer2Impl::MAPPING_LENGTH_MASK]; in parseFile() local
249 … int32_t length=u_parseString(delimiter+1, uchars, UPRV_LENGTHOF(uchars), NULL, errorCode); in parseFile()
254 UnicodeString mapping(FALSE, uchars, length); in parseFile()
/external/icu/icu4c/source/common/unicode/
Ducharstrie.h108 State() { uchars=NULL; } in State()
112 const UChar *uchars; variable
125 state.uchars=uchars_; in saveState()
142 if(uchars_==state.uchars && uchars_!=NULL) { in resetToState()
Ducharstriebuilder.h180 UChar *uchars; variable
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp621 UChar uchars[100]; in convsample_20_didSubstitute() local
641 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_20_didSubstitute()
644 printUChars("uch", uchars, len); in convsample_20_didSubstitute()
669 len2 = ucnv_fromUChars(conv, bytes, 100, uchars, len, &status); in convsample_20_didSubstitute()
715 UChar uchars[100]; in convsample_21_didSubstitute() local
742 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_21_didSubstitute()
745 printUChars("uch", uchars, len); in convsample_21_didSubstitute()
823 len2 = ucnv_fromUChars(cloneCnv, bytes, 100, uchars, len, &status); in convsample_21_didSubstitute()
/external/icu/icu4c/source/tools/makeconv/
Dgencnvex.c717 UChar *uchars; in generateFromUTable() local
728 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
729 low=uchars[unitIndex]; in generateFromUTable()
735 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
736 high=uchars[unitIndex]; in generateFromUTable()
761 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
762 high=uchars[unitIndex]; in generateFromUTable()
/external/icu/icu4c/source/test/intltest/
Dustrtest.cpp1929 static UnicodeString wrapUChars(const UChar *uchars) { in wrapUChars() argument
1930 return UnicodeString(TRUE, uchars, -1); in wrapUChars()
1935 UChar uchars[]={ 0x61, 0x62, 0 }; in TestReadOnlyAlias() local
1936 UnicodeString alias(TRUE, uchars, 2); in TestReadOnlyAlias()
1937 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
1942 if(alias.length()!=1 || alias.getBuffer()!=uchars) { in TestReadOnlyAlias()
1945 if(alias.getTerminatedBuffer()==uchars) { in TestReadOnlyAlias()
1949 if(uchars[1]!=0x62) { in TestReadOnlyAlias()
1958 alias.setTo(TRUE, uchars, 2); in TestReadOnlyAlias()
1959 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dutf16tst.c26 static void printUChars(const UChar *uchars);
797 static void printUChars(const UChar *uchars){ in printUChars() argument
799 for(i=0; i<u_strlen(uchars); i++){ in printUChars()
800 printf("%x ", *(uchars+i)); in printUChars()
Dcustrtst.c972 UChar uchars[]={0x61, 0x62, 0x63, 0x00}; in TestStringCopy() local
979 if(u_strcmp(temp, uchars) != 0) { in TestStringCopy()
980 …log_err("There is an error in u_uastrcpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp)… in TestStringCopy()
989 if(u_strncmp(uchars, temp, 3) != 0){ in TestStringCopy()
990 …log_err("There is an error in u_uastrncpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp… in TestStringCopy()
1011 …log_err("There is an error in u_austrncpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp… in TestStringCopy()
Dutf8tst.c61 static void printUChars(const uint8_t *uchars, int16_t len);
1127 static void printUChars(const uint8_t *uchars, int16_t len){ in printUChars() argument
1130 log_err("0x%02x ", *(uchars+i)); in printUChars()
Dcustrtrn.c965 static const UChar uchars[]={ in Test_FromUTF8Lenient() local
1029 for(pb=(const char *)bytes, pu=uchars; in Test_FromUTF8Lenient()
/external/icu/icu4c/source/samples/date/
Ddate.c230 static int32_t charsToUCharsDefault(UChar *uchars, int32_t ucharsSize, const char*chars, int32_t ch… in charsToUCharsDefault() argument
237 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status); in charsToUCharsDefault()
/external/icu/icu4c/source/data/
DMakefile.in557 $(INVOKE) $(TOOLBINDIR)/gendict --uchars -c -i $(BUILDDIR) $(DICTSRCDIR)/$(*F).txt $@
Dmakedata.mak765 @"$(ICUTOOLS)\gendict\$(CFG)\gendict" -c --uchars $< "$(ICUBLD_PKG)\$@"