/external/icu4c/common/ |
D | ucnv_u16.c | 50 UConverter *cnv; in _UTF16BEFromUnicodeWithOffsets() local 66 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets() 69 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in _UTF16BEFromUnicodeWithOffsets() 71 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 76 cnv->fromUnicodeStatus=0; in _UTF16BEFromUnicodeWithOffsets() 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 108 cnv->fromUChar32=c=0; in _UTF16BEFromUnicodeWithOffsets() 228 cnv->fromUChar32=c; in _UTF16BEFromUnicodeWithOffsets() 233 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 254 UConverter *cnv; in _UTF16BEToUnicodeWithOffsets() local [all …]
|
D | ucnv.c | 152 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) in ucnv_safeClone() argument 186 if (!pBufferSize || !cnv){ in ucnv_safeClone() 193 ucnv_getName(cnv, status), cnv, stackBuffer); in ucnv_safeClone() 195 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 198 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone() 256 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone() 260 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone() 269 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 273 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 275 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone() [all …]
|
D | ucnv_ext.c | 233 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteToU() argument 242 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU() 249 cnv, in ucnv_extWriteToU() 267 #define UCNV_SISO_STATE(cnv) \ argument 268 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 269 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 275 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument 286 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU() 287 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU() 290 cnv->useFallback, flush); in ucnv_extInitialMatchToU() [all …]
|
D | ucnv_u7.c | 179 _UTF7Reset(UConverter *cnv, UConverterResetChoice choice) { in _UTF7Reset() argument 182 cnv->toUnicodeStatus=0x1000000; /* inDirectMode=TRUE */ in _UTF7Reset() 183 cnv->toULength=0; in _UTF7Reset() 187 …cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMod… in _UTF7Reset() 192 _UTF7Open(UConverter *cnv, in _UTF7Open() argument 195 if(UCNV_GET_VERSION(cnv)<=1) { in _UTF7Open() 197 cnv->fromUnicodeStatus=UCNV_GET_VERSION(cnv)<<28; in _UTF7Open() 198 _UTF7Reset(cnv, UCNV_RESET_BOTH); in _UTF7Open() 207 UConverter *cnv; in _UTF7ToUnicodeWithOffsets() local 229 cnv=pArgs->converter; in _UTF7ToUnicodeWithOffsets() [all …]
|
D | ucnv_u8.c | 90 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local 95 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8() 96 UBool isCESU8 = (UBool)(cnv->sharedData == &_CESU8Data); in ucnv_toUnicode_UTF8() 101 if (cnv->toUnicodeStatus && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 103 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 104 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 105 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 107 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8() 108 cnv->toUnicodeStatus = 0; in ucnv_toUnicode_UTF8() 144 cnv->toUnicodeStatus = ch; in ucnv_toUnicode_UTF8() [all …]
|
D | ucnvmbcs.c | 928 ucnv_MBCSGetUnicodeSet(const UConverter *cnv, in ucnv_MBCSGetUnicodeSet() argument 932 if(cnv->options&_MBCS_OPTION_GB18030) { in ucnv_MBCSGetUnicodeSet() 936 ucnv_MBCSGetUnicodeSetForUnicode(cnv->sharedData, sa, which, pErrorCode); in ucnv_MBCSGetUnicodeSet() 958 _extFromU(UConverter *cnv, const UConverterSharedData *sharedData, in _extFromU() argument 967 cnv->useSubChar1=FALSE; in _extFromU() 971 cnv, cx, in _extFromU() 982 if((cnv->options&_MBCS_OPTION_GB18030)!=0) { in _extFromU() 1006 ucnv_fromUWriteBytes(cnv, in _extFromU() 1025 _extToU(UConverter *cnv, const UConverterSharedData *sharedData, in _extToU() argument 1036 cnv, cx, in _extToU() [all …]
|
D | ucnvscsu.c | 156 _SCSUReset(UConverter *cnv, UConverterResetChoice choice) { in _SCSUReset() argument 157 SCSUData *scsu=(SCSUData *)cnv->extraInfo; in _SCSUReset() 168 cnv->toULength=0; in _SCSUReset() 187 cnv->fromUChar32=0; in _SCSUReset() 192 _SCSUOpen(UConverter *cnv, in _SCSUOpen() argument 199 cnv->extraInfo=uprv_malloc(sizeof(SCSUData)); in _SCSUOpen() 200 if(cnv->extraInfo!=NULL) { in _SCSUOpen() 202 ((SCSUData *)cnv->extraInfo)->locale=l_ja; in _SCSUOpen() 204 ((SCSUData *)cnv->extraInfo)->locale=lGeneric; in _SCSUOpen() 206 _SCSUReset(cnv, UCNV_RESET_BOTH); in _SCSUOpen() [all …]
|
D | ustr_cnv.c | 135 UConverter *cnv = u_getDefaultConverter(&err); in u_uastrncpy() local 136 if(U_SUCCESS(err) && cnv != NULL) { in u_uastrncpy() 137 ucnv_reset(cnv); in u_uastrncpy() 138 ucnv_toUnicode(cnv, in u_uastrncpy() 146 ucnv_reset(cnv); /* be good citizens */ in u_uastrncpy() 147 u_releaseDefaultConverter(cnv); in u_uastrncpy() 165 UConverter *cnv = u_getDefaultConverter(&err); in u_uastrcpy() local 166 if(U_SUCCESS(err) && cnv != NULL) { in u_uastrcpy() 167 ucnv_toUChars(cnv, in u_uastrcpy() 173 u_releaseDefaultConverter(cnv); in u_uastrcpy() [all …]
|
D | ucnvhz.c | 69 _HZOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ in _HZOpen() argument 79 cnv->toUnicodeStatus = 0; in _HZOpen() 80 cnv->fromUnicodeStatus= 0; in _HZOpen() 81 cnv->mode=0; in _HZOpen() 82 cnv->fromUChar32=0x0000; in _HZOpen() 83 cnv->extraInfo = uprv_malloc(sizeof(UConverterDataHZ)); in _HZOpen() 84 if(cnv->extraInfo != NULL){ in _HZOpen() 85 uprv_memset(cnv->extraInfo, 0, sizeof(UConverterDataHZ)); in _HZOpen() 86 ((UConverterDataHZ*)cnv->extraInfo)->gbConverter = gbConverter; in _HZOpen() 96 _HZClose(UConverter *cnv){ in _HZClose() argument [all …]
|
D | ucnv_cnv.c | 30 ucnv_getCompleteUnicodeSet(const UConverter *cnv, in ucnv_getCompleteUnicodeSet() argument 38 ucnv_getNonSurrogateUnicodeSet(const UConverter *cnv, in ucnv_getNonSurrogateUnicodeSet() argument 47 ucnv_fromUWriteBytes(UConverter *cnv, in ucnv_fromUWriteBytes() argument 75 if(cnv!=NULL) { in ucnv_fromUWriteBytes() 76 t=(char *)cnv->charErrorBuffer; in ucnv_fromUWriteBytes() 77 cnv->charErrorBufferLength=(int8_t)length; in ucnv_fromUWriteBytes() 87 ucnv_toUWriteUChars(UConverter *cnv, in ucnv_toUWriteUChars() argument 115 if(cnv!=NULL) { in ucnv_toUWriteUChars() 116 t=cnv->UCharErrorBuffer; in ucnv_toUWriteUChars() 117 cnv->UCharErrorBufferLength=(int8_t)length; in ucnv_toUWriteUChars() [all …]
|
D | ucnv_cnv.h | 64 typedef void (*UConverterOpen) (UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode); 65 typedef void (*UConverterClose) (UConverter *cnv); 73 typedef void (*UConverterReset) (UConverter *cnv, UConverterResetChoice choice); 155 typedef const char * (*UConverterGetName) (const UConverter *cnv); 175 typedef UConverter * (*UConverterSafeClone) (const UConverter *cnv, 204 typedef void (*UConverterGetUnicodeSet) (const UConverter *cnv, 266 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE argument 271 #define UCNV_FROM_U_USE_FALLBACK(cnv, c) FROM_U_USE_FALLBACK((cnv)->useFallback, c) argument 282 ucnv_getCompleteUnicodeSet(const UConverter *cnv, 288 ucnv_getNonSurrogateUnicodeSet(const UConverter *cnv, [all …]
|
D | ucnvbocu.c | 387 UConverter *cnv; in _Bocu1FromUnicodeWithOffsets() local 400 cnv=pArgs->converter; in _Bocu1FromUnicodeWithOffsets() 408 c=cnv->fromUChar32; in _Bocu1FromUnicodeWithOffsets() 409 prev=(int32_t)cnv->fromUnicodeStatus; in _Bocu1FromUnicodeWithOffsets() 575 charErrorBuffer=(uint8_t *)cnv->charErrorBuffer; in _Bocu1FromUnicodeWithOffsets() 588 cnv->charErrorBufferLength=(int8_t)length; in _Bocu1FromUnicodeWithOffsets() 622 cnv->fromUChar32= c<0 ? -c : 0; in _Bocu1FromUnicodeWithOffsets() 623 cnv->fromUnicodeStatus=(uint32_t)prev; in _Bocu1FromUnicodeWithOffsets() 641 UConverter *cnv; in _Bocu1FromUnicode() local 649 cnv=pArgs->converter; in _Bocu1FromUnicode() [all …]
|
D | unistr_cnv.cpp | 86 UConverter *cnv, in UnicodeString() argument 103 if(cnv!=0) { in UnicodeString() 105 ucnv_resetToUnicode(cnv); in UnicodeString() 106 doCodepageCreate(src, srcLength, cnv, errorCode); in UnicodeString() 109 cnv=u_getDefaultConverter(&errorCode); in UnicodeString() 110 doCodepageCreate(src, srcLength, cnv, errorCode); in UnicodeString() 111 u_releaseDefaultConverter(cnv); in UnicodeString() 216 UConverter *cnv, in extract() argument 235 if(cnv==0) { in extract() 237 cnv=u_getDefaultConverter(&errorCode); in extract() [all …]
|
D | ucnv2022.c | 374 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode); 383 _ISO2022getName(const UConverter* cnv); 389 _ISO_2022_SafeClone(const UConverter *cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *sta… 405 fromUWriteUInt8(UConverter *cnv, in fromUWriteUInt8() argument 413 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit, in fromUWriteUInt8() 422 UConverter *cnv = myConverterData->currentConverter; in setInitialStateToUnicodeKR() local 424 cnv->toUnicodeStatus=0; /* offset */ in setInitialStateToUnicodeKR() 425 cnv->mode=0; /* state */ in setInitialStateToUnicodeKR() 426 cnv->toULength=0; /* byteIndex */ in setInitialStateToUnicodeKR() 444 UConverter *cnv = myConverterData->currentConverter; in setInitialStateFromUnicodeKR() local [all …]
|
D | ucnv_set.c | 30 ucnv_getUnicodeSet(const UConverter *cnv, in ucnv_getUnicodeSet() argument 38 if(cnv==NULL || setFillIn==NULL || whichSet<UCNV_ROUNDTRIP_SET || UCNV_SET_COUNT<=whichSet) { in ucnv_getUnicodeSet() 44 if(cnv->sharedData->impl->getUnicodeSet==NULL) { in ucnv_getUnicodeSet() 64 cnv->sharedData->impl->getUnicodeSet(cnv, &sa, whichSet, pErrorCode); in ucnv_getUnicodeSet()
|
D | ucnvdisp.c | 34 ucnv_getDisplayName(const UConverter *cnv, in ucnv_getDisplayName() argument 48 if(cnv==NULL || displayNameCapacity<0 || (displayNameCapacity>0 && displayName==NULL)) { in ucnv_getDisplayName() 60 name=ures_getStringByKey(rb, cnv->sharedData->staticData->name, &length, &localStatus); in ucnv_getDisplayName() 71 length=(int32_t)uprv_strlen(cnv->sharedData->staticData->name); in ucnv_getDisplayName() 72 …u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapaci… in ucnv_getDisplayName()
|
/external/icu4c/test/cintltst/ |
D | nucnvtst.c | 28 static void TestNextUChar(UConverter* cnv, const char* source, const char* limit, const int32_t res… 29 static void TestNextUCharError(UConverter* cnv, const char* source, const char* limit, UErrorCode e… 113 static UConverter *my_ucnv_open(const char *cnv, UErrorCode *err); 124 static UConverter *my_ucnv_open(const char *cnv, UErrorCode *err) in my_ucnv_open() argument 126 if(cnv && cnv[0] == '@') { in my_ucnv_open() 127 return ucnv_openPackage(loadTestData(err), cnv+1, err); in my_ucnv_open() 129 return ucnv_open(cnv, err); in my_ucnv_open() 169 TestNextUChar(UConverter* cnv, const char* source, const char* limit, const int32_t results[], cons… in TestNextUChar() argument 179 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode); in TestNextUChar() 199 TestNextUCharError(UConverter* cnv, const char* source, const char* limit, UErrorCode expected, con… in TestNextUCharError() argument [all …]
|
D | ccapitst.c | 446 UConverter *cnv=NULL; in TestConvert() local 448 cnv=ucnv_open("ibm-949,Madhu", &err); in TestConvert() 452 ucnv_close(cnv); in TestConvert() 717 UConverter *cnv=ucnv_open("ISO_2022", &err); in TestConvert() local 721 c=ucnv_getNextUChar(cnv, &source, limit, &err); in TestConvert() 725 ucnv_reset(cnv); in TestConvert() 726 ucnv_close(cnv); in TestConvert() 1221 UConverter *cnv; in TestAlias() local 1229 cnv = ucnv_open(name, &status); in TestAlias() 1236 if (strcmp(ucnv_getName(cnv, &status), name) != 0 in TestAlias() [all …]
|
/external/icu4c/test/testdata/ |
D | testdata.mak | 31 …cnv" "$(TESTDATABLD)\test1bmp.cnv" "$(TESTDATABLD)\test3.cnv" "$(TESTDATABLD)\test4.cnv" "$(TESTDA… 56 test1.cnv 57 test1bmp.cnv 58 test3.cnv 59 test4.cnv 60 test4x.cnv 61 test5.cnv 62 ibm9027.cnv 128 "$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm" 132 "$(TESTDATABLD)\test1bmp.cnv": "$(TESTDATA)\test1bmp.ucm" [all …]
|
/external/icu4c/stubdata/ |
D | icudt46l-default.txt | 771 gsm-03.38-2000.cnv 772 ibm-1089_P100-1995.cnv 773 ibm-1383_P110-1999.cnv 774 ibm-5012_P100-1999.cnv 775 ibm-5346_P100-1998.cnv 776 ibm-5347_P100-1998.cnv 777 ibm-5348_P100-1997.cnv 778 ibm-5349_P100-1998.cnv 779 ibm-5350_P100-1998.cnv 780 ibm-5354_P100-1998.cnv [all …]
|
/external/icu4c/test/intltest/ |
D | convtest.cpp | 380 LocalUConverterPointer cnv; in TestGetUnicodeSet() local 451 cnv.adoptInstead(cnv_open(charset, errorCode)); in TestGetUnicodeSet() 459 … ucnv_getUnicodeSet(cnv.getAlias(), cnvSetPtr->toUSet(), (UConverterUnicodeSet)which, &errorCode); in TestGetUnicodeSet() 580 LocalUConverterPointer cnv; in TestGetUnicodeSet2() local 585 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); in TestGetUnicodeSet2() 591 … ucnv_setFromUCallBack(cnv.getAlias(), getUnicodeSetCallback, &expected, NULL, NULL, &errorCode); in TestGetUnicodeSet2() 599 ucnv_setFallback(cnv.getAlias(), TRUE); in TestGetUnicodeSet2() 607 …ucnv_fromUnicode(cnv.getAlias(), &t, buffer+sizeof(buffer), (const UChar **)&s, s0+s0Length, NULL,… in TestGetUnicodeSet2() 618 ucnv_getUnicodeSet(cnv.getAlias(), set.toUSet(), which, &errorCode); in TestGetUnicodeSet2() 783 stepToUnicode(ConversionCase &cc, UConverter *cnv, in stepToUnicode() argument [all …]
|
/external/icu4c/common/unicode/ |
D | ucnv.h | 500 ucnv_safeClone(const UConverter *cnv, 622 ucnv_setSubstString(UConverter *cnv, 949 ucnv_getUnicodeSet(const UConverter *cnv, 1197 ucnv_fromUChars(UConverter *cnv, 1229 ucnv_toUChars(UConverter *cnv, 1568 UConverter *cnv, 1619 ucnv_fromAlgorithmic(UConverter *cnv, 1861 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen); 1872 ucnv_isAmbiguous(const UConverter *cnv); 1890 ucnv_setFallback(UConverter *cnv, UBool usesFallback); [all …]
|
/external/icu4c/test/perf/utfperf/ |
D | utfperf.cpp | 126 cnv=ucnv_open(testcase.charset, &errorCode); in Command() 130 ucnv_setFromUCallBack(cnv, fromUCallback, NULL, NULL, NULL, &errorCode); in Command() 135 ucnv_close(cnv); in ~Command() 147 UConverter *cnv; member in Command 171 ucnv_reset(cnv); in call() 188 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); in call() 202 ucnv_toUnicode(cnv, &pOut, pOutLimit,&p, pInter,NULL, flush,pErrorCode); in call() 235 ucnv_resetFromUnicode(cnv); in call() 247 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); in call() 290 ucnv_resetFromUnicode(cnv); in call() [all …]
|
/external/webkit/Source/JavaScriptGlue/icu/unicode/ |
D | ucnv.h | 451 ucnv_safeClone(const UConverter *cnv, 829 ucnv_getUnicodeSet(const UConverter *cnv, 1077 ucnv_fromUChars(UConverter *cnv, 1109 ucnv_toUChars(UConverter *cnv, 1438 UConverter *cnv, 1489 ucnv_fromAlgorithmic(UConverter *cnv, 1719 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen); 1730 ucnv_isAmbiguous(const UConverter *cnv); 1740 ucnv_setFallback(UConverter *cnv, UBool usesFallback); 1749 ucnv_usesFallback(const UConverter *cnv);
|
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
D | ucnv.h | 451 ucnv_safeClone(const UConverter *cnv, 829 ucnv_getUnicodeSet(const UConverter *cnv, 1077 ucnv_fromUChars(UConverter *cnv, 1109 ucnv_toUChars(UConverter *cnv, 1438 UConverter *cnv, 1489 ucnv_fromAlgorithmic(UConverter *cnv, 1719 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen); 1730 ucnv_isAmbiguous(const UConverter *cnv); 1740 ucnv_setFallback(UConverter *cnv, UBool usesFallback); 1749 ucnv_usesFallback(const UConverter *cnv);
|