Home
last modified time | relevance | path

Searched refs:uchars (Results 1 - 25 of 38) sorted by relevance

12

/third_party/skia/third_party/externals/icu/fuzzers/
H A Dfuzzer_utils.h44 std::vector<UChar32> uchars; in UnicodeStringFromUtf32() local
45 uchars.resize(size * sizeof(uint8_t) / (sizeof(UChar32))); in UnicodeStringFromUtf32()
46 memcpy(uchars.data(), data, uchars.size() * sizeof(UChar32)); in UnicodeStringFromUtf32()
47 for (size_t i = 0; i < uchars.size(); ++i) { in UnicodeStringFromUtf32()
51 uchars[i] = uchars[i] % (UCHAR_MAX_VALUE + 2); in UnicodeStringFromUtf32()
54 return icu::UnicodeString::fromUTF32(uchars.data(), uchars.size()); in UnicodeStringFromUtf32()
/third_party/icu/icu4c/source/common/
H A 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 in buildUChars()
[all...]
H A Ducnv_cnv.cpp96 const UChar *uchars, int32_t length, in ucnv_toUWriteUChars()
107 *t++=*uchars++; in ucnv_toUWriteUChars()
113 *t++=*uchars++; in ucnv_toUWriteUChars()
127 *t++=*uchars++; in ucnv_toUWriteUChars()
95 ucnv_toUWriteUChars(UConverter *cnv, const UChar *uchars, int32_t length, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) ucnv_toUWriteUChars() argument
H A Dcharstr.cpp203 CharString &CharString::appendInvariantChars(const UChar* uchars, int32_t ucharsLen, UErrorCode &errorCode) { in appendInvariantChars() argument
207 if (!uprv_isInvariantUString(uchars, ucharsLen)) { in appendInvariantChars()
212 u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen); in appendInvariantChars()
H A Dcharstr.h159 CharString &appendInvariantChars(const UChar* uchars, int32_t ucharsLen, UErrorCode& errorCode);
/third_party/node/deps/icu-small/source/common/
H A Ducharstriebuilder.cpp90 uchars(nullptr), ucharsCapacity(0), ucharsLength(0) {} in UCharsTrieBuilder()
94 uprv_free(uchars); in ~UCharsTrieBuilder()
150 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
154 uchars=nullptr; // The new trie now owns the array. in build()
166 result.setTo(false, uchars+(ucharsCapacity-ucharsLength), ucharsLength); in buildUnicodeString()
176 if(uchars!=nullptr && ucharsLength>0) { in buildUChars()
214 uprv_free(uchars); in buildUChars()
215 uchars=static_cast<char16_t *>(uprv_malloc(capacity*2)); in buildUChars()
216 if(uchars in buildUChars()
[all...]
H A Ducnv_cnv.cpp96 const char16_t *uchars, int32_t length, in ucnv_toUWriteUChars()
107 *t++=*uchars++; in ucnv_toUWriteUChars()
113 *t++=*uchars++; in ucnv_toUWriteUChars()
127 *t++=*uchars++; in ucnv_toUWriteUChars()
95 ucnv_toUWriteUChars(UConverter *cnv, const char16_t *uchars, int32_t length, char16_t **target, const char16_t *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) ucnv_toUWriteUChars() argument
H A Dcharstr.cpp203 CharString &CharString::appendInvariantChars(const char16_t* uchars, int32_t ucharsLen, UErrorCode &errorCode) { in appendInvariantChars() argument
207 if (!uprv_isInvariantUString(uchars, ucharsLen)) { in appendInvariantChars()
212 u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen); in appendInvariantChars()
/third_party/skia/third_party/externals/icu/source/common/
H A 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 in buildUChars()
[all...]
H A Ducnv_cnv.cpp96 const UChar *uchars, int32_t length, in ucnv_toUWriteUChars()
107 *t++=*uchars++; in ucnv_toUWriteUChars()
113 *t++=*uchars++; in ucnv_toUWriteUChars()
127 *t++=*uchars++; in ucnv_toUWriteUChars()
95 ucnv_toUWriteUChars(UConverter *cnv, const UChar *uchars, int32_t length, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) ucnv_toUWriteUChars() argument
H A Dcharstr.cpp203 CharString &CharString::appendInvariantChars(const UChar* uchars, int32_t ucharsLen, UErrorCode &errorCode) { in appendInvariantChars() argument
207 if (!uprv_isInvariantUString(uchars, ucharsLen)) { in appendInvariantChars()
212 u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen); in appendInvariantChars()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
H A DTestBidiTransform.java293 char[] uchars = text.toCharArray(); in pseudoScript()
294 for (int i = uchars.length; i-- > 0;) { in pseudoScript()
295 char uch = uchars[i]; in pseudoScript()
298 uchars[i] = substituteChar(uch, MIN_HEB_LETTER, 'K', 'Z'); in pseudoScript()
302 uchars[i] = substituteChar(uch, MIN_SHAPED_LETTER, 'F', 'J'); in pseudoScript()
304 uchars[i] = substituteChar(uch, MIN_ARAB_LETTER, 'A', 'E'); in pseudoScript()
308 uchars[i] = substituteChar(uch, ARAB_ZERO, '5', '9'); in pseudoScript()
314 return new String(uchars); in pseudoScript()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/bidi/
H A DTestBidiTransform.java296 char[] uchars = text.toCharArray(); in pseudoScript()
297 for (int i = uchars.length; i-- > 0;) { in pseudoScript()
298 char uch = uchars[i]; in pseudoScript()
301 uchars[i] = substituteChar(uch, MIN_HEB_LETTER, 'K', 'Z'); in pseudoScript()
305 uchars[i] = substituteChar(uch, MIN_SHAPED_LETTER, 'F', 'J'); in pseudoScript()
307 uchars[i] = substituteChar(uch, MIN_ARAB_LETTER, 'A', 'E'); in pseudoScript()
311 uchars[i] = substituteChar(uch, ARAB_ZERO, '5', '9'); in pseudoScript()
317 return new String(uchars); in pseudoScript()
/third_party/icu/icu4c/source/samples/ucnv/
H A Dconvsamp.cpp612 printf("src=%d bytes, dst=%d uchars\n", srcCount, dstCount); in convsample_13()
623 UChar uchars[100]; in convsample_20_didSubstitute() local
643 len = ucnv_toUChars(conv, uchars, 100, source, static_cast<int32_t>(strlen(source)), &status); in convsample_20_didSubstitute()
646 printUChars("uch", uchars, len); in convsample_20_didSubstitute()
671 len2 = ucnv_fromUChars(conv, bytes, 100, uchars, len, &status); in convsample_20_didSubstitute()
717 UChar uchars[100]; in convsample_21_didSubstitute() local
743 len = ucnv_toUChars(conv, uchars, 100, source, static_cast<int32_t>(strlen(source)), &status); in convsample_21_didSubstitute()
746 printUChars("uch", uchars, len); in convsample_21_didSubstitute()
824 len2 = ucnv_fromUChars(cloneCnv, bytes, 100, uchars, len, &status); in convsample_21_didSubstitute()
/third_party/skia/third_party/externals/icu/source/samples/ucnv/
H A Dconvsamp.cpp612 printf("src=%d bytes, dst=%d uchars\n", srcCount, dstCount); in convsample_13()
623 UChar uchars[100]; in convsample_20_didSubstitute() local
643 len = ucnv_toUChars(conv, uchars, 100, source, static_cast<int32_t>(strlen(source)), &status); in convsample_20_didSubstitute()
646 printUChars("uch", uchars, len); in convsample_20_didSubstitute()
671 len2 = ucnv_fromUChars(conv, bytes, 100, uchars, len, &status); in convsample_20_didSubstitute()
717 UChar uchars[100]; in convsample_21_didSubstitute() local
743 len = ucnv_toUChars(conv, uchars, 100, source, static_cast<int32_t>(strlen(source)), &status); in convsample_21_didSubstitute()
746 printUChars("uch", uchars, len); in convsample_21_didSubstitute()
824 len2 = ucnv_fromUChars(cloneCnv, bytes, 100, uchars, len, &status); in convsample_21_didSubstitute()
/third_party/icu/icu4c/source/common/unicode/
H A Ducharstrie.h144 State() { uchars=NULL; } in State()
148 const char16_t *uchars; member in UCharsTrie::State
161 state.uchars=uchars_; in saveState()
178 if(uchars_==state.uchars && uchars_!=NULL) { in resetToState()
/third_party/node/deps/icu-small/source/common/unicode/
H A Ducharstrie.h144 State() { uchars=nullptr; } in State()
148 const char16_t *uchars; member in UCharsTrie::State
161 state.uchars=uchars_; in saveState()
178 if(uchars_==state.uchars && uchars_!=nullptr) { in resetToState()
/third_party/icu/icu4c/source/tools/gennorm2/
H A Dgennorm2.cpp299 UChar uchars[Normalizer2Impl::MAPPING_LENGTH_MASK]; in parseFile() local
300 int32_t length=u_parseString(delimiter+1, uchars, UPRV_LENGTHOF(uchars), NULL, errorCode); in parseFile()
305 UnicodeString mapping(false, uchars, length); in parseFile()
/third_party/skia/third_party/externals/icu/source/tools/gennorm2/
H A Dgennorm2.cpp299 UChar uchars[Normalizer2Impl::MAPPING_LENGTH_MASK]; in parseFile() local
300 int32_t length=u_parseString(delimiter+1, uchars, UPRV_LENGTHOF(uchars), NULL, errorCode); in parseFile()
305 UnicodeString mapping(FALSE, uchars, length); in parseFile()
/third_party/skia/third_party/externals/icu/source/common/unicode/
H A Ducharstrie.h144 State() { uchars=NULL; } in State()
148 const char16_t *uchars; member in UCharsTrie::State
161 state.uchars=uchars_; in saveState()
178 if(uchars_==state.uchars && uchars_!=NULL) { in resetToState()
/third_party/icu/icu4c/source/tools/makeconv/
H A Dgencnvex.c723 UChar *uchars; in generateFromUTable() local
734 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
735 low=uchars[unitIndex]; in generateFromUTable()
741 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
742 high=uchars[unitIndex]; in generateFromUTable()
767 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
768 high=uchars[unitIndex]; in generateFromUTable()
/third_party/skia/third_party/externals/icu/source/tools/makeconv/
H A Dgencnvex.c722 UChar *uchars; in generateFromUTable() local
733 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
734 low=uchars[unitIndex]; in generateFromUTable()
740 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
741 high=uchars[unitIndex]; in generateFromUTable()
766 uchars=(UChar *)UCM_GET_CODE_POINTS(table, m); in generateFromUTable()
767 high=uchars[unitIndex]; in generateFromUTable()
/third_party/icu/icu4c/source/test/intltest/
H A Dustrtest.cpp1952 static UnicodeString wrapUChars(const UChar *uchars) { in wrapUChars() argument
1953 return UnicodeString(true, uchars, -1); in wrapUChars()
1958 UChar uchars[]={ 0x61, 0x62, 0 }; in TestReadOnlyAlias() local
1959 UnicodeString alias(true, uchars, 2); in TestReadOnlyAlias()
1960 if(alias.length()!=2 || alias.getBuffer()!=uchars || alias.getTerminatedBuffer()!=uchars) { in TestReadOnlyAlias()
1965 if(alias.length()!=1 || alias.getBuffer()!=uchars) { in TestReadOnlyAlias()
1968 if(alias.getTerminatedBuffer()==uchars) { in TestReadOnlyAlias()
1972 if(uchars[1]!=0x62) { in TestReadOnlyAlias()
1981 alias.setTo(true, uchars, in TestReadOnlyAlias()
[all...]
/third_party/icu/icu4c/source/samples/date/
H A Ddate.c239 static int32_t charsToUCharsDefault(UChar *uchars, int32_t ucharsSize, const char*chars, int32_t charsSize, UErrorCode *status) { in charsToUCharsDefault() argument
246 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status); in charsToUCharsDefault()
/third_party/skia/third_party/externals/icu/source/samples/date/
H A Ddate.c239 static int32_t charsToUCharsDefault(UChar *uchars, int32_t ucharsSize, const char*chars, int32_t charsSize, UErrorCode *status) { in charsToUCharsDefault() argument
246 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status); in charsToUCharsDefault()

Completed in 21 milliseconds

12