Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/icu/source/common/
Ducharstriebuilder.cpp88 uchars(NULL), ucharsCapacity(0), ucharsLength(0) {} in UCharsTrieBuilder()
92 uprv_free(uchars); in ~UCharsTrieBuilder()
148 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
152 uchars=NULL; // The new trie now owns the array. in build()
164 result.setTo(FALSE, uchars+(ucharsCapacity-ucharsLength), ucharsLength); in buildUnicodeString()
174 if(uchars!=NULL && ucharsLength>0) { in buildUChars()
212 uprv_free(uchars); in buildUChars()
213 uchars=static_cast<UChar *>(uprv_malloc(capacity*2)); in buildUChars()
214 if(uchars==NULL) { in buildUChars()
222 if(uchars==NULL) { in buildUChars()
[all …]
Ducnv_cnv.c88 const UChar *uchars, int32_t length, in ucnv_toUWriteUChars() argument
99 *t++=*uchars++; in ucnv_toUWriteUChars()
105 *t++=*uchars++; in ucnv_toUWriteUChars()
119 *t++=*uchars++; in ucnv_toUWriteUChars()
Ducnv_cnv.h310 const UChar *uchars, int32_t length,
/external/icu/icu4c/source/common/
Ducharstriebuilder.cpp88 uchars(NULL), ucharsCapacity(0), ucharsLength(0) {} in UCharsTrieBuilder()
92 uprv_free(uchars); in ~UCharsTrieBuilder()
148 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
152 uchars=NULL; // The new trie now owns the array. in build()
164 result.setTo(FALSE, uchars+(ucharsCapacity-ucharsLength), ucharsLength); in buildUnicodeString()
174 if(uchars!=NULL && ucharsLength>0) { in buildUChars()
212 uprv_free(uchars); in buildUChars()
213 uchars=static_cast<UChar *>(uprv_malloc(capacity*2)); in buildUChars()
214 if(uchars==NULL) { in buildUChars()
222 if(uchars==NULL) { in buildUChars()
[all …]
Ducnv_cnv.c88 const UChar *uchars, int32_t length, in ucnv_toUWriteUChars() argument
99 *t++=*uchars++; in ucnv_toUWriteUChars()
105 *t++=*uchars++; in ucnv_toUWriteUChars()
119 *t++=*uchars++; in ucnv_toUWriteUChars()
Ducnv_cnv.h305 const UChar *uchars, int32_t length,
/external/icu/icu4c/source/tools/gennorm2/
Dgennorm2.cpp241 UChar uchars[Normalizer2Impl::MAPPING_LENGTH_MASK]; in parseFile() local
242 int32_t length=u_parseString(delimiter+1, uchars, LENGTHOF(uchars), NULL, errorCode); in parseFile()
247 UnicodeString mapping(FALSE, uchars, length); in parseFile()
/external/chromium_org/third_party/icu/source/tools/gennorm2/
Dgennorm2.cpp241 UChar uchars[Normalizer2Impl::MAPPING_LENGTH_MASK]; in parseFile() local
242 int32_t length=u_parseString(delimiter+1, uchars, LENGTHOF(uchars), NULL, errorCode); in parseFile()
247 UnicodeString mapping(FALSE, uchars, length); in parseFile()
/external/chromium_org/third_party/icu/source/i18n/
Ducol_bld.cpp924 el.cPoints = el.uchars; in ucol_createElements()
932 …uprv_memcpy(el.uchars, (tok->source & 0x00FFFFFF)+(tok->prefix>>24) + src->source, el.cSize*sizeof… in ucol_createElements()
938 … uprv_memcpy(el.uchars, (tok->source & 0x00FFFFFF) + src->source, el.cSize*sizeof(UChar)); in ucol_createElements()
987 el.cPoints = el.uchars; in _processUCACompleteIgnorables()
990 U16_APPEND_UNSAFE(el.uchars, el.cSize, start); in _processUCACompleteIgnorables()
1031 U16_APPEND_UNSAFE(el.uchars, el.cSize, u); in ucol_uprv_bld_copyRangeFromUCA()
1034 el.cPoints = el.uchars; in ucol_uprv_bld_copyRangeFromUCA()
1060 uprv_init_collIterate(src->UCA, el.uchars, el.cSize, &colIt, status); in ucol_uprv_bld_copyRangeFromUCA()
1235 elm.cPoints = el.uchars; in ucol_assembleTailoringTable()
1237 elm.uchars[0] = *conts; in ucol_assembleTailoringTable()
[all …]
Ducol_elm.h64 UChar uchars[128]; member
/external/icu/icu4c/source/common/unicode/
Ducharstrie.h106 State() { uchars=NULL; } in State()
110 const UChar *uchars; variable
123 state.uchars=uchars_; in saveState()
140 if(uchars_==state.uchars && uchars_!=NULL) { in resetToState()
Ducharstriebuilder.h180 UChar *uchars; variable
/external/chromium_org/third_party/icu/source/common/unicode/
Ducharstrie.h106 State() { uchars=NULL; } in State()
110 const UChar *uchars; variable
123 state.uchars=uchars_; in saveState()
140 if(uchars_==state.uchars && uchars_!=NULL) { in resetToState()
Ducharstriebuilder.h180 UChar *uchars; variable
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp614 UChar uchars[100]; in convsample_20_didSubstitute() local
634 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_20_didSubstitute()
637 printUChars("uch", uchars, len); in convsample_20_didSubstitute()
662 len2 = ucnv_fromUChars(conv, bytes, 100, uchars, len, &status); in convsample_20_didSubstitute()
708 UChar uchars[100]; in convsample_21_didSubstitute() local
735 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_21_didSubstitute()
738 printUChars("uch", uchars, len); in convsample_21_didSubstitute()
816 len2 = ucnv_fromUChars(cloneCnv, bytes, 100, uchars, len, &status); in convsample_21_didSubstitute()
/external/chromium_org/third_party/icu/source/samples/ucnv/
Dconvsamp.cpp614 UChar uchars[100]; in convsample_20_didSubstitute() local
634 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_20_didSubstitute()
637 printUChars("uch", uchars, len); in convsample_20_didSubstitute()
662 len2 = ucnv_fromUChars(conv, bytes, 100, uchars, len, &status); in convsample_20_didSubstitute()
708 UChar uchars[100]; in convsample_21_didSubstitute() local
735 len = ucnv_toUChars(conv, uchars, 100, source, strlen(source), &status); in convsample_21_didSubstitute()
738 printUChars("uch", uchars, len); in convsample_21_didSubstitute()
816 len2 = ucnv_fromUChars(cloneCnv, bytes, 100, uchars, len, &status); in convsample_21_didSubstitute()
/external/icu/icu4c/source/tools/makeconv/
Dgencnvex.c718 UChar *uchars; in generateFromUTable() local
729 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
730 low=uchars[unitIndex]; in generateFromUTable()
736 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
737 high=uchars[unitIndex]; in generateFromUTable()
762 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
763 high=uchars[unitIndex]; in generateFromUTable()
/external/chromium_org/third_party/icu/source/tools/makeconv/
Dgencnvex.c718 UChar *uchars; in generateFromUTable() local
729 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
730 low=uchars[unitIndex]; in generateFromUTable()
736 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
737 high=uchars[unitIndex]; in generateFromUTable()
762 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
763 high=uchars[unitIndex]; in generateFromUTable()
/external/icu/icu4c/source/test/intltest/
Dustrtest.cpp1937 static UnicodeString wrapUChars(const UChar *uchars) { in wrapUChars() argument
1938 return UnicodeString(TRUE, uchars, -1); in wrapUChars()
1943 UChar uchars[]={ 0x61, 0x62, 0 }; in TestReadOnlyAlias() local
1944 UnicodeString alias(TRUE, uchars, 2); in TestReadOnlyAlias()
1945 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
1950 if(alias.length()!=1 || alias.getBuffer()!=uchars) { in TestReadOnlyAlias()
1953 if(alias.getTerminatedBuffer()==uchars) { in TestReadOnlyAlias()
1957 if(uchars[1]!=0x62) { in TestReadOnlyAlias()
1966 alias.setTo(TRUE, uchars, 2); in TestReadOnlyAlias()
1967 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dustrtest.cpp1937 static UnicodeString wrapUChars(const UChar *uchars) { in wrapUChars() argument
1938 return UnicodeString(TRUE, uchars, -1); in wrapUChars()
1943 UChar uchars[]={ 0x61, 0x62, 0 }; in TestReadOnlyAlias() local
1944 UnicodeString alias(TRUE, uchars, 2); in TestReadOnlyAlias()
1945 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
1950 if(alias.length()!=1 || alias.getBuffer()!=uchars) { in TestReadOnlyAlias()
1953 if(alias.getTerminatedBuffer()==uchars) { in TestReadOnlyAlias()
1957 if(uchars[1]!=0x62) { in TestReadOnlyAlias()
1966 alias.setTo(TRUE, uchars, 2); in TestReadOnlyAlias()
1967 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
[all …]
/external/chromium_org/third_party/icu/source/samples/date/
Ddate.c226 static int32_t charsToUCharsDefault(UChar *uchars, int32_t ucharsSize, const char*chars, int32_t ch… in charsToUCharsDefault() argument
233 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status); in charsToUCharsDefault()
/external/icu/icu4c/source/samples/date/
Ddate.c226 static int32_t charsToUCharsDefault(UChar *uchars, int32_t ucharsSize, const char*chars, int32_t ch… in charsToUCharsDefault() argument
233 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status); in charsToUCharsDefault()
/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.c971 UChar uchars[]={0x61, 0x62, 0x63, 0x00}; in TestStringCopy() local
978 if(u_strcmp(temp, uchars) != 0) { in TestStringCopy()
979 …log_err("There is an error in u_uastrcpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp)… in TestStringCopy()
988 if(u_strncmp(uchars, temp, 3) != 0){ in TestStringCopy()
989 …log_err("There is an error in u_uastrncpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp… in TestStringCopy()
1010 …log_err("There is an error in u_austrncpy() Expected %s Got %s\n", austrdup(uchars), austrdup(temp… in TestStringCopy()
/external/chromium_org/third_party/icu/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()

12