Home
last modified time | relevance | path

Searched refs:U_SIZEOF_UCHAR (Results 1 – 25 of 52) sorted by relevance

123

/external/icu/icu4c/source/test/cintltst/
Dcstrcase.c56 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
62 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower()
78 uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
84 … uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseLower()
96 uprv_memcmp(lowerRoot, buffer, 2*U_SIZEOF_UCHAR)!=0 || in TestCaseLower()
102 … uprv_memcmp(lowerRoot, buffer, 2*U_SIZEOF_UCHAR)==0 && buffer[2]==0xabcd ? "yes" : "no"); in TestCaseLower()
154 uprv_memcmp(upperRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseUpper()
160 … uprv_memcmp(upperRoot, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseUpper()
172 uprv_memcmp(upperTurkish, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseUpper()
178 … uprv_memcmp(upperTurkish, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseUpper()
[all …]
Dcbiditst.c1027 }else if(memcmp(dest, visualOrder[i], destSize*U_SIZEOF_UCHAR)!=0){ in testReorderArabicMathSymbols()
2339 } else if(srcLength==visualLength && memcmp(src, visualDest, srcLength*U_SIZEOF_UCHAR)==0) { in _testInverseBidi()
2370 …ENGTHOF(reverseKeepCombining) || memcmp(reverse, reverseKeepCombining, length*U_SIZEOF_UCHAR)!=0) { in _testWriteReverse()
2375 memset(reverse, 0xa5, UPRV_LENGTHOF(reverse)*U_SIZEOF_UCHAR); in _testWriteReverse()
2381 …Mirror) || memcmp(reverse, reverseRemoveControlsKeepCombiningDoMirror, length*U_SIZEOF_UCHAR)!=0) { in _testWriteReverse()
2478 …URE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, en2an, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest()
2488 …_FAILURE(errorCode) || length!=u_strlen(source) || memcmp(dest, an2en, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest()
2498 …length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_lr, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest()
2508 …length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_al, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest()
2518 …length!=UPRV_LENGTHOF(source) || memcmp(dest, reverse_alen2an_init_lr, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest()
[all …]
Dnfsprep.c81 b1 = (UChar*) malloc(b1Len * U_SIZEOF_UCHAR); in nfs4_prepare()
97 b2 = (UChar*) malloc(b2Len * U_SIZEOF_UCHAR); in nfs4_prepare()
Didnatest.c89 tSrc =(UChar*) malloc( U_SIZEOF_UCHAR * tSrcLen ); in testAPI()
90 memcpy(tSrc,src,tSrcLen * U_SIZEOF_UCHAR); in testAPI()
593 memset(temp, 0, U_SIZEOF_UCHAR * MAX_DEST_SIZE); in TestCompare()
606 memset(buf+4, 0, (MAX_DEST_SIZE-4) * U_SIZEOF_UCHAR); in TestCompare()
/external/icu/icu4c/source/tools/gensprep/
Dstore.c143 U_SIZEOF_UCHAR,
168 U_SIZEOF_UCHAR,
258 mappingData = (uint16_t*) uprv_calloc(mappingDataCapacity, U_SIZEOF_UCHAR); in storeMappingData()
440 map = (UChar*) uprv_calloc(adjustedLen + 1, U_SIZEOF_UCHAR); in storeMapping()
575 size = sprepTrieSize + mappingDataCapacity*U_SIZEOF_UCHAR + sizeof(indexes); in generateData()
579 printf("size of mapping data array %5u bytes\n",(int)mappingDataCapacity * U_SIZEOF_UCHAR); in generateData()
599 indexes[_SPREP_INDEX_MAPPING_DATA_SIZE]=mappingDataCapacity*U_SIZEOF_UCHAR; in generateData()
/external/icu/icu4c/source/test/intltest/
Didnaref.cpp303 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
362 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
492 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
513 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
536 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
555 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
735 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
785 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
890 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
942 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToUnicode()
[all …]
Dtestidna.cpp433 transOut = (UChar*) malloc(U_SIZEOF_UCHAR * transOutLength); in debug()
441 prepOut = (UChar*) malloc(U_SIZEOF_UCHAR * prepOutLength); in debug()
470 tSrc =(UChar*) malloc( U_SIZEOF_UCHAR * tSrcLen ); in testAPI()
471 memcpy(tSrc,src,tSrcLen * U_SIZEOF_UCHAR); in testAPI()
919 memset(buf,0,U_SIZEOF_UCHAR*MAX_DEST_SIZE); in testErrorCases()
1017 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining()
1018 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining()
1054 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining()
1055 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining()
1092 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining()
[all …]
/external/icu/icu4c/source/common/
Dushape.cpp750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
859 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
908 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
916 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
970 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
978 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
1157 tempbuffer = (UChar *)uprv_malloc((destSize+1)*U_SIZEOF_UCHAR); in expandCompositChar()
1165 uprv_memset(tempbuffer, 0, (destSize+1)*U_SIZEOF_UCHAR); in expandCompositChar()
[all …]
Duidna.cpp233 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in _internal_toASCII()
261 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII()
343 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toASCII()
462 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
502 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
520 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
881 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in uidna_compare()
896 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in uidna_compare()
Ducnv.cpp275 … localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone()
523 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString()
534 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
540 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString()
880 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback()
969 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback()
1889 cnv->UCharErrorBufferLength*U_SIZEOF_UCHAR); in ucnv_getNextUChar()
1989 cnv->UCharErrorBufferLength*U_SIZEOF_UCHAR); in ucnv_getNextUChar()
2021 length*U_SIZEOF_UCHAR); in ucnv_getNextUChar()
Ducnvdisp.cpp70 u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR); in ucnv_getDisplayName()
Ducnv_bld.h225 UChar subUChars[UCNV_MAX_SUBCHAR_LEN/U_SIZEOF_UCHAR]; /* see subChars documentation */
Dunistr.cpp379 size_t numBytes = sizeof(int32_t) + (size_t)capacity * U_SIZEOF_UCHAR; in allocate()
390 fUnion.fFields.fCapacity = (int32_t)(numBytes / U_SIZEOF_UCHAR); in allocate()
525 getShortLength() * U_SIZEOF_UCHAR); in copyFrom()
592 getShortLength() * U_SIZEOF_UCHAR); in copyFieldsFrom()
662 return uprv_memcmp(getArrayStart(), text.getArrayStart(), len * U_SIZEOF_UCHAR) == 0; in doEquals()
/external/icu/icu4c/source/tools/gencfu/
Dgencfu.cpp93 U_SIZEOF_UCHAR,
116 U_SIZEOF_UCHAR,
/external/icu/icu4c/source/tools/genbrk/
Dgenbrk.cpp90 U_SIZEOF_UCHAR,
113 U_SIZEOF_UCHAR,
/external/icu/icu4c/source/common/unicode/
Dustring.h934 #elif U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2…
938 #elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY
Dumachine.h280 #define U_SIZEOF_UCHAR 2 macro
/external/icu/libandroidicu/include/unicode/
Dustring.h934 #elif U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2…
938 #elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY
Dumachine.h280 #define U_SIZEOF_UCHAR 2 macro
/external/icu/icu4c/source/test/perf/ustrperf/
Dstringperf.cpp101 memcpy(filelines_[i].name, filelines[i].name, len * U_SIZEOF_UCHAR); in StringPerformanceTest()
114 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR); in StringPerformanceTest()
Dstringperf.h196 memcpy(src_, source, sourceLen * U_SIZEOF_UCHAR); in StringPerfFunction()
218 memcpy(src_, source, sourceLen * U_SIZEOF_UCHAR); in StringPerfFunction()
/external/icu/icu4c/source/tools/ctestfw/
Duperf.cpp230 memcpy(lines[numLines].name, line, len * U_SIZEOF_UCHAR); in getLines()
256 buffer = (UChar*) uprv_malloc(U_SIZEOF_UCHAR * (len+1)); in getBuffer()
/external/icu/icu4c/source/tools/gendict/
Dgendict.cpp106 U_SIZEOF_UCHAR,
412 outDataSize = usp.length() * U_SIZEOF_UCHAR; in main()
/external/icu/icu4c/source/extra/uconv/
Duwmsg.c151 memcpy(result, msg, msgLen * U_SIZEOF_UCHAR); in u_wmsg()
/external/icu/icu4c/source/tools/toolutil/
Dunewdata.cpp175 U_SIZEOF_UCHAR,

123