/external/icu/icu4c/source/test/cintltst/ |
D | cstrcase.c | 47 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower() 48 beforeLower, sizeof(beforeLower)/U_SIZEOF_UCHAR, in TestCaseLower() 52 length!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || in TestCaseLower() 53 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower() 59 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && in TestCaseLower() 67 buffer[sizeof(beforeLower)/U_SIZEOF_UCHAR]=0; in TestCaseLower() 69 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in TestCaseLower() 74 length!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) || in TestCaseLower() 75 uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)!=0 || in TestCaseLower() 81 … uprv_memcmp(lowerTurkish, buffer, length*U_SIZEOF_UCHAR)==0 && buffer[length]==0 ? "yes" : "no"); in TestCaseLower() [all …]
|
D | utf16tst.c | 150 for(offset=0; offset<sizeof(input)/U_SIZEOF_UCHAR; offset++) { in TestGetChar() 151 if(0<offset && offset<sizeof(input)/U_SIZEOF_UCHAR-1){ in TestGetChar() 163 UTF16_GET_CHAR_SAFE(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c, FALSE); in TestGetChar() 168 U16_GET(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c); in TestGetChar() 173 UTF16_GET_CHAR_SAFE(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c, TRUE); in TestGetChar() 220 for(offset=0; offset<sizeof(input)/U_SIZEOF_UCHAR; offset++){ in TestNextPrevChar() 242 UTF16_NEXT_CHAR_SAFE(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c, FALSE); in TestNextPrevChar() 252 U16_NEXT(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c); in TestNextPrevChar() 262 UTF16_NEXT_CHAR_SAFE(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c, TRUE); in TestNextPrevChar() 274 for(offset=(uint16_t)sizeof(input)/U_SIZEOF_UCHAR; offset > 0; --offset){ in TestNextPrevChar() [all …]
|
D | cnormtst.c | 903 output, sizeof(output)/U_SIZEOF_UCHAR, in TestNormCoverage() 943 output, sizeof(output)/U_SIZEOF_UCHAR, in TestNormCoverage() 1058 buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in _testIter() 1083 buffer, sizeof(buffer)/U_SIZEOF_UCHAR, in _testIter() 1188 uiter_setString(&iter, src, sizeof(src)/U_SIZEOF_UCHAR); in TestNextPrevious() 1192 …_testIter(src, sizeof(src)/U_SIZEOF_UCHAR, &iter, UNORM_NFD, TRUE, nfd, sizeof(nfd)/U_SIZEOF_UCHAR… in TestNextPrevious() 1194 …_testIter(src, sizeof(src)/U_SIZEOF_UCHAR, &iter, UNORM_NFKD, TRUE, nfkd, sizeof(nfkd)/U_SIZEOF_UC… in TestNextPrevious() 1196 …_testIter(src, sizeof(src)/U_SIZEOF_UCHAR, &iter, UNORM_NFC, TRUE, nfc, sizeof(nfc)/U_SIZEOF_UCHAR… in TestNextPrevious() 1198 …_testIter(src, sizeof(src)/U_SIZEOF_UCHAR, &iter, UNORM_NFKC, TRUE, nfkc, sizeof(nfkc)/U_SIZEOF_UC… in TestNextPrevious() 1200 …_testIter(src, sizeof(src)/U_SIZEOF_UCHAR, &iter, UNORM_FCD, TRUE, fcd, sizeof(fcd)/U_SIZEOF_UCHAR… in TestNextPrevious() [all …]
|
D | cbiditst.c | 1020 }else if(memcmp(dest, visualOrder[i], destSize*U_SIZEOF_UCHAR)!=0){ in testReorderArabicMathSymbols() 2332 } else if(srcLength==visualLength && memcmp(src, visualDest, srcLength*U_SIZEOF_UCHAR)==0) { in _testInverseBidi() 2363 …ENGTHOF(reverseKeepCombining) || memcmp(reverse, reverseKeepCombining, length*U_SIZEOF_UCHAR)!=0) { in _testWriteReverse() 2368 memset(reverse, 0xa5, UPRV_LENGTHOF(reverse)*U_SIZEOF_UCHAR); in _testWriteReverse() 2374 …Mirror) || memcmp(reverse, reverseRemoveControlsKeepCombiningDoMirror, length*U_SIZEOF_UCHAR)!=0) { in _testWriteReverse() 2471 …URE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, en2an, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest() 2481 …_FAILURE(errorCode) || length!=u_strlen(source) || memcmp(dest, an2en, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest() 2491 …length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_lr, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest() 2501 …length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_al, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest() 2511 …length!=UPRV_LENGTHOF(source) || memcmp(dest, reverse_alen2an_init_lr, length*U_SIZEOF_UCHAR)!=0) { in doArabicShapingTest() [all …]
|
D | nfsprep.c | 79 b1 = (UChar*) malloc(b1Len * U_SIZEOF_UCHAR); in nfs4_prepare() 95 b2 = (UChar*) malloc(b2Len * U_SIZEOF_UCHAR); in nfs4_prepare()
|
D | nccbtst.c | 206 if(!testConvertFromUnicode(fromU, sizeof(fromU)/U_SIZEOF_UCHAR, in TestSkip() 227 if(!testConvertFromUnicode(usasciiFromU, sizeof(usasciiFromU)/U_SIZEOF_UCHAR, in TestSkip() 238 if(!testConvertFromUnicode(usasciiFromU, sizeof(usasciiFromU)/U_SIZEOF_UCHAR, in TestSkip() 249 if(!testConvertFromUnicode(latin1FromU, sizeof(latin1FromU)/U_SIZEOF_UCHAR, in TestSkip() 260 if(!testConvertFromUnicode(latin1FromU, sizeof(latin1FromU)/U_SIZEOF_UCHAR, in TestSkip() 701 usasciiToU, sizeof(usasciiToU)/U_SIZEOF_UCHAR, in TestSkip() 712 usasciiToU, sizeof(usasciiToU)/U_SIZEOF_UCHAR, in TestSkip() 723 latin1ToU, sizeof(latin1ToU)/U_SIZEOF_UCHAR, in TestSkip() 734 latin1ToU, sizeof(latin1ToU)/U_SIZEOF_UCHAR, in TestSkip()
|
/external/icu/icu4c/source/test/intltest/ |
D | idnaref.cpp | 301 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 342 uprv_memmove(dest, b1, b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 360 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 383 uprv_memcpy(dest,ACE_PREFIX,ACE_PREFIX_LENGTH * U_SIZEOF_UCHAR); in idnaref_toASCII() 385 uprv_memcpy(dest+ACE_PREFIX_LENGTH, b2, b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 490 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 508 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode() 511 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode() 516 uprv_memmove(b1,src, srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode() 534 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() [all …]
|
D | strcase.cpp | 141 s=UnicodeString(FALSE, beforeLower, (int32_t)(sizeof(beforeLower)/U_SIZEOF_UCHAR)); in TestCaseConversion() 143 if( s.length()!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || in TestCaseConversion() 146 …xpected \"" + UnicodeString(FALSE, lowerRoot, (int32_t)(sizeof(lowerRoot)/U_SIZEOF_UCHAR)) + "\""); in TestCaseConversion() 150 s=UnicodeString(FALSE, beforeLower, (int32_t)(sizeof(beforeLower)/U_SIZEOF_UCHAR)); in TestCaseConversion() 152 if( s.length()!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) || in TestCaseConversion() 155 …d \"" + UnicodeString(FALSE, lowerTurkish, (int32_t)(sizeof(lowerTurkish)/U_SIZEOF_UCHAR)) + "\""); in TestCaseConversion() 159 s=UnicodeString(FALSE, beforeUpper, (int32_t)(sizeof(beforeUpper)/U_SIZEOF_UCHAR)); in TestCaseConversion() 161 if( s.length()!=(sizeof(upperRoot)/U_SIZEOF_UCHAR) || in TestCaseConversion() 164 …xpected \"" + UnicodeString(FALSE, upperRoot, (int32_t)(sizeof(upperRoot)/U_SIZEOF_UCHAR)) + "\""); in TestCaseConversion() 168 s=UnicodeString(FALSE, beforeUpper, (int32_t)(sizeof(beforeUpper)/U_SIZEOF_UCHAR)); in TestCaseConversion() [all …]
|
D | testidna.cpp | 429 transOut = (UChar*) malloc(U_SIZEOF_UCHAR * transOutLength); in debug() 437 prepOut = (UChar*) malloc(U_SIZEOF_UCHAR * prepOutLength); in debug() 466 tSrc =(UChar*) malloc( U_SIZEOF_UCHAR * tSrcLen ); in testAPI() 467 memcpy(tSrc,src,tSrcLen * U_SIZEOF_UCHAR); in testAPI() 911 memset(buf,0,U_SIZEOF_UCHAR*MAX_DEST_SIZE); in testErrorCases() 1009 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining() 1010 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining() 1046 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining() 1047 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining() 1084 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR); in testChaining() [all …]
|
D | nptrans.cpp | 175 uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR); in map() 267 uprv_memmove(dest,b1, b1Len*U_SIZEOF_UCHAR); in process()
|
/external/icu/icu4c/source/common/ |
D | ushape.cpp | 750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 780 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 838 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 859 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 880 uprv_memcpy(dest,tempbuffer, sourceLength*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() 944 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in expandCompositCharAtBegin() [all …]
|
D | uidna.cpp | 231 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in _internal_toASCII() 259 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII() 319 uprv_memmove(dest, b1, b1Len * U_SIZEOF_UCHAR); in _internal_toASCII() 341 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toASCII() 365 uprv_memcpy(dest,ACE_PREFIX,ACE_PREFIX_LENGTH * U_SIZEOF_UCHAR); in _internal_toASCII() 367 uprv_memcpy(dest+ACE_PREFIX_LENGTH, b2, b2Len * U_SIZEOF_UCHAR); in _internal_toASCII() 460 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 500 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 518 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 544 uprv_memmove(dest, b2, b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode() [all …]
|
D | ucnv.c | 273 … localConverter->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 279 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 531 length8 = length * U_SIZEOF_UCHAR; in ucnv_setSubstString() 542 cnv->subChars = (uint8_t *)uprv_malloc(UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString() 548 uprv_memset(cnv->subChars, 0, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_setSubstString() 888 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback() 977 uprv_memcpy(replay, cnv->preFromU, -cnv->preFromULength*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback() 1074 uprv_memcpy(cnv->preFromU, pArgs->source, length*U_SIZEOF_UCHAR); in _fromUnicodeWithCallback() 1830 destLimit=buffer+sizeof(buffer)/U_SIZEOF_UCHAR; in ucnv_toUChars() 1905 cnv->UCharErrorBufferLength*U_SIZEOF_UCHAR); in ucnv_getNextUChar() [all …]
|
D | ucnvdisp.c | 68 u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR); in ucnv_getDisplayName()
|
D | ustrcase.cpp | 239 uprv_memcpy(dest+destIndex, src+prev, length*U_SIZEOF_UCHAR); in ustrcase_internalToTitle() 277 uprv_memcpy(dest+destIndex, src+titleLimit, length*U_SIZEOF_UCHAR); in ustrcase_internalToTitle() 406 temp=(UChar *)uprv_malloc(destCapacity*U_SIZEOF_UCHAR); in ustrcase_map() 422 uprv_memmove(dest, temp, copyLength*U_SIZEOF_UCHAR); in ustrcase_map()
|
D | ustr_wcs.cpp | 255 uprv_memcpy(dest,src,srcLength*U_SIZEOF_UCHAR); in u_strToWCS() 510 uprv_memcpy(dest,src,srcLength*U_SIZEOF_UCHAR); in u_strFromWCS()
|
D | unistr.cpp | 347 … int32_t words = (int32_t)(((sizeof(int32_t) + (capacity + 1) * U_SIZEOF_UCHAR + 15) & ~15) >> 2); in allocate() 355 fUnion.fFields.fCapacity = (int32_t)((words - 1) * (sizeof(int32_t) / U_SIZEOF_UCHAR)); in allocate() 459 getShortLength() * U_SIZEOF_UCHAR); in copyFrom() 489 uprv_memcpy(getArrayStart(), src.getArrayStart(), srcLength * U_SIZEOF_UCHAR); in copyFrom() 546 return uprv_memcmp(getArrayStart(), text.getArrayStart(), len * U_SIZEOF_UCHAR) == 0; in doEquals() 769 uprv_memcpy(dest, array, len*U_SIZEOF_UCHAR); in extract()
|
D | ucnv_bld.h | 218 UChar subUChars[UCNV_MAX_SUBCHAR_LEN/U_SIZEOF_UCHAR]; /* see subChars documentation */
|
/external/icu/icu4c/source/tools/gensprep/ |
D | store.c | 141 U_SIZEOF_UCHAR, 166 U_SIZEOF_UCHAR, 256 mappingData = (uint16_t*) uprv_calloc(mappingDataCapacity, U_SIZEOF_UCHAR); in storeMappingData() 329 … uprv_memmove(mappingData+currentIndex, value->mapping, value->length*U_SIZEOF_UCHAR); in storeMappingData() 438 map = (UChar*) uprv_calloc(adjustedLen + 1, U_SIZEOF_UCHAR); in storeMapping() 573 size = sprepTrieSize + mappingDataCapacity*U_SIZEOF_UCHAR + sizeof(indexes); in generateData() 577 printf("size of mapping data array %5u bytes\n",(int)mappingDataCapacity * U_SIZEOF_UCHAR); in generateData() 597 indexes[_SPREP_INDEX_MAPPING_DATA_SIZE]=mappingDataCapacity*U_SIZEOF_UCHAR; in generateData()
|
/external/icu/icu4c/source/extra/uconv/ |
D | uwmsg.c | 146 resultLength = sizeof(gNoFormatting) / U_SIZEOF_UCHAR; in u_wmsg() 148 memcpy(result, msg, msgLen * U_SIZEOF_UCHAR); in u_wmsg()
|
/external/icu/icu4c/source/tools/genbrk/ |
D | genbrk.cpp | 86 U_SIZEOF_UCHAR, 109 U_SIZEOF_UCHAR,
|
/external/icu/icu4c/source/tools/gencfu/ |
D | gencfu.cpp | 86 U_SIZEOF_UCHAR, 109 U_SIZEOF_UCHAR,
|
/external/icu/icu4c/source/common/unicode/ |
D | ustring.h | 945 #elif U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2… 949 #elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY
|
D | umachine.h | 289 #define U_SIZEOF_UCHAR 2 macro
|
/external/icu/icu4c/source/test/perf/ustrperf/ |
D | stringperf.cpp | 96 memcpy(filelines_[i].name, filelines[i].name, len * U_SIZEOF_UCHAR); in StringPerformanceTest() 109 memcpy(StrBuffer, src, srcLen * U_SIZEOF_UCHAR); in StringPerformanceTest()
|