/external/icu4c/common/ |
ucnv_set.c | 30 ucnv_getUnicodeSet(const UConverter *cnv, 38 if(cnv==NULL || setFillIn==NULL || whichSet<UCNV_ROUNDTRIP_SET || UCNV_SET_COUNT<=whichSet) { 44 if(cnv->sharedData->impl->getUnicodeSet==NULL) { 64 cnv->sharedData->impl->getUnicodeSet(cnv, &sa, whichSet, pErrorCode);
|
ustr_cnv.c | 135 UConverter *cnv = u_getDefaultConverter(&err); local 136 if(U_SUCCESS(err) && cnv != NULL) { 137 ucnv_reset(cnv); 138 ucnv_toUnicode(cnv, 146 ucnv_reset(cnv); /* be good citizens */ 147 u_releaseDefaultConverter(cnv); 165 UConverter *cnv = u_getDefaultConverter(&err); local 166 if(U_SUCCESS(err) && cnv != NULL) { 167 ucnv_toUChars(cnv, 173 u_releaseDefaultConverter(cnv); 207 UConverter *cnv = u_getDefaultConverter(&err); local 237 UConverter *cnv = u_getDefaultConverter(&err); local [all...] |
ucnv_u16.c | 50 UConverter *cnv; local 66 cnv=pArgs->converter; 69 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { 71 ucnv_fromUWriteBytes(cnv, 76 cnv->fromUnicodeStatus=0; 91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { 108 cnv->fromUChar32=c=0; 228 cnv->fromUChar32=c; 233 ucnv_fromUWriteBytes(cnv, 254 UConverter *cnv; local 649 UConverter *cnv; local 853 UConverter *cnv; local 1325 UConverter *cnv=pArgs->converter; local [all...] |
ucnv.c | 152 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) 186 if (!pBufferSize || !cnv){ 193 ucnv_getName(cnv, status), cnv, stackBuffer); 195 if (cnv->sharedData->impl->safeClone != NULL) { 198 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); 256 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); 260 if (cnv->subChars == (uint8_t *)cnv->subUChars) 826 UConverter *cnv; local 1271 UConverter *cnv; local [all...] |
ucnvhz.c | 69 _HZOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ 79 cnv->toUnicodeStatus = 0; 80 cnv->fromUnicodeStatus= 0; 81 cnv->mode=0; 82 cnv->fromUChar32=0x0000; 83 cnv->extraInfo = uprv_malloc(sizeof(UConverterDataHZ)); 84 if(cnv->extraInfo != NULL){ 85 uprv_memset(cnv->extraInfo, 0, sizeof(UConverterDataHZ)); 86 ((UConverterDataHZ*)cnv->extraInfo)->gbConverter = gbConverter; 96 _HZClose(UConverter *cnv){ 501 UConverter *cnv = args->converter; local 531 UConverter cnv; member in struct:cloneHZStruct [all...] |
ucnv_cnv.c | 30 ucnv_getCompleteUnicodeSet(const UConverter *cnv, 38 ucnv_getNonSurrogateUnicodeSet(const UConverter *cnv, 47 ucnv_fromUWriteBytes(UConverter *cnv, 75 if(cnv!=NULL) { 76 t=(char *)cnv->charErrorBuffer; 77 cnv->charErrorBufferLength=(int8_t)length; 87 ucnv_toUWriteUChars(UConverter *cnv, 115 if(cnv!=NULL) { 116 t=cnv->UCharErrorBuffer; 117 cnv->UCharErrorBufferLength=(int8_t)length [all...] |
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 268 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-use code points */ 271 #define UCNV_FROM_U_USE_FALLBACK(cnv, c) FROM_U_USE_FALLBACK((cnv)->useFallback, c [all...] |
ucnv_ext.c | 233 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, 242 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), 249 cnv, 265 * cnv->mode==0 is equivalent to firstLength==1. 267 #define UCNV_SISO_STATE(cnv) \ 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, 286 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), [all...] |
ucnvdisp.c | 34 ucnv_getDisplayName(const UConverter *cnv, 48 if(cnv==NULL || displayNameCapacity<0 || (displayNameCapacity>0 && displayName==NULL)) { 60 name=ures_getStringByKey(rb, cnv->sharedData->staticData->name, &length, &localStatus); 71 length=(int32_t)uprv_strlen(cnv->sharedData->staticData->name); 72 u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapacity));
|
ucnv_u7.c | 179 _UTF7Reset(UConverter *cnv, UConverterResetChoice choice) { 182 cnv->toUnicodeStatus=0x1000000; /* inDirectMode=TRUE */ 183 cnv->toULength=0; 187 cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMode=TRUE */ 192 _UTF7Open(UConverter *cnv, 195 if(UCNV_GET_VERSION(cnv)<=1) { 196 /* TODO(markus): Should just use cnv->options rather than copying the version number. */ 197 cnv->fromUnicodeStatus=UCNV_GET_VERSION(cnv)<<28 207 UConverter *cnv; local 446 UConverter *cnv; local 864 UConverter *cnv; local 1132 UConverter *cnv; local [all...] |
ures_cnv.c | 56 UConverter *cnv=u_getDefaultConverter(status); local 57 length=ucnv_fromUChars(cnv, path, (int32_t)sizeof(pathBuffer), myPath, length, status); 58 u_releaseDefaultConverter(cnv);
|
ucnvmbcs.c | 114 * - Added an optional extension table structure at the end of the .cnv file. 1885 UConverter *cnv; local 2037 UConverter *cnv; local 2317 UConverter *cnv; local 2734 UConverter *cnv; local 2819 UConverter *cnv; local 3258 UConverter *cnv; local 3490 UConverter *cnv; local 3666 UConverter *cnv; local 3923 UConverter *cnv; local 4862 UConverter *utf8, *cnv; local 5165 UConverter *utf8, *cnv; local 5504 UConverter *cnv=pArgs->converter; local [all...] |
unistr_cnv.cpp | 86 UConverter *cnv, 103 if(cnv!=0) { 105 ucnv_resetToUnicode(cnv); 106 doCodepageCreate(src, srcLength, cnv, errorCode); 109 cnv=u_getDefaultConverter(&errorCode); 110 doCodepageCreate(src, srcLength, cnv, errorCode); 111 u_releaseDefaultConverter(cnv); 216 UConverter *cnv, 235 if(cnv==0) { 237 cnv=u_getDefaultConverter(&errorCode) [all...] |
ucnv_u8.c | 90 UConverter *cnv = args->converter; local 95 unsigned char *toUBytes = cnv->toUBytes; 96 UBool isCESU8 = (UBool)(cnv->sharedData == &_CESU8Data); 101 if (cnv->toUnicodeStatus && myTarget < targetLimit) 103 inBytes = cnv->mode; /* restore # of bytes to consume */ 104 i = cnv->toULength; /* restore # of bytes consumed */ 105 cnv->toULength = 0; 107 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ 108 cnv->toUnicodeStatus = 0; 144 cnv->toUnicodeStatus = ch 218 UConverter *cnv = args->converter; local 348 UConverter *cnv = args->converter; local 462 UConverter *cnv = args->converter; local 600 UConverter *cnv; local 752 UConverter *utf8, *cnv; local [all...] |
ucnvscsu.c | 156 _SCSUReset(UConverter *cnv, UConverterResetChoice choice) { 157 SCSUData *scsu=(SCSUData *)cnv->extraInfo; 168 cnv->toULength=0; 187 cnv->fromUChar32=0; 192 _SCSUOpen(UConverter *cnv, 199 cnv->extraInfo=uprv_malloc(sizeof(SCSUData)); 200 if(cnv->extraInfo!=NULL) { 202 ((SCSUData *)cnv->extraInfo)->locale=l_ja; 204 ((SCSUData *)cnv->extraInfo)->locale=lGeneric; 206 _SCSUReset(cnv, UCNV_RESET_BOTH) 231 UConverter *cnv; local 585 UConverter *cnv; local 1010 UConverter *cnv; local 1503 UConverter *cnv; local 1938 UConverter cnv; member in struct:cloneSCSUStruct [all...] |
ucnvbocu.c | 387 UConverter *cnv; local 400 cnv=pArgs->converter; 408 c=cnv->fromUChar32; 409 prev=(int32_t)cnv->fromUnicodeStatus; 575 charErrorBuffer=(uint8_t *)cnv->charErrorBuffer; 588 cnv->charErrorBufferLength=(int8_t)length; 622 cnv->fromUChar32= c<0 ? -c : 0; 623 cnv->fromUnicodeStatus=(uint32_t)prev; 641 UConverter *cnv; local 649 cnv=pArgs->converter 936 UConverter *cnv; local 1159 UConverter *cnv; local [all...] |
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 *status); 405 fromUWriteUInt8(UConverter *cnv, 413 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit, 422 UConverter *cnv = myConverterData->currentConverter; local 424 cnv->toUnicodeStatus=0; /* offset */ 425 cnv->mode=0; /* state */ 426 cnv->toULength=0; /* byteIndex */ 444 UConverter *cnv = myConverterData->currentConverter local 1631 UConverter *cnv = args->converter; local 2883 UConverter *cnv = args->converter; local 3329 UConverterSharedData *cnv; local 3433 UConverter *cnv = args->converter; local 3548 UConverter cnv; member in struct:cloneStruct [all...] |
/libcore/luni/src/main/native/ |
libcore_icu_NativeConverter.cpp | 76 UConverter* cnv = ucnv_open(converterNameChars.c_str(), &status); local 78 return reinterpret_cast<uintptr_t>(cnv); 89 UConverter* cnv = toUConverter(address); local 90 if (cnv == NULL) { 114 ucnv_fromUnicode(cnv , &cTarget, cTargetLimit, &mySource, mySourceLimit, NULL, (UBool) flush, &errorCode); 123 ucnv_getInvalidUChars(cnv, invalidUChars, &invalidUCharCount, &minorErrorCode); 135 UConverter* cnv = toUConverter(address); local 136 if (cnv == NULL) { 160 ucnv_toUnicode(cnv, &cTarget, cTargetLimit, &mySource, mySourceLimit, NULL, flush, &errorCode); 169 ucnv_getInvalidChars(cnv, invalidBytes, &invalidByteCount, &minorErrorCode) 179 UConverter* cnv = toUConverter(address); local 186 UConverter* cnv = toUConverter(address); local 193 UConverter* cnv = toUConverter(address); local 198 UConverter* cnv = toUConverter(address); local 203 UConverter* cnv = toUConverter(address); local 209 UConverter* cnv = toUConverter(address); local 392 UConverter* cnv = toUConverter(address); local 474 UConverter* cnv = toUConverter(address); local 509 UConverter* cnv = toUConverter(address); local [all...] |
/external/icu4c/test/testdata/ |
testdata.mak | 31 "$(TESTDATAOUT)\testdata.dat" : $(TEST_RES_FILES) "$(TESTDATABLD)\casing.res" "$(TESTDATABLD)\conversion.res" "$(TESTDATABLD)\icuio.res" "$(TESTDATABLD)\mc.res" "$(TESTDATABLD)\structLocale.res" "$(TESTDATABLD)\root.res" "$(TESTDATABLD)\sh.res" "$(TESTDATABLD)\sh_YU.res" "$(TESTDATABLD)\te.res" "$(TESTDATABLD)\te_IN.res" "$(TESTDATABLD)\te_IN_REVISED.res" "$(TESTDATABLD)\testaliases.res" "$(TESTDATABLD)\testtypes.res" "$(TESTDATABLD)\testempty.res" "$(TESTDATABLD)\iscii.res" "$(TESTDATABLD)\idna_rules.res" "$(TESTDATABLD)\DataDrivenCollationTest.res" "$(TESTDATABLD)\test.icu" "$(TESTDATABLD)\testtable32.res" "$(TESTDATABLD)\test1.cnv" "$(TESTDATABLD)\test1bmp.cnv" "$(TESTDATABLD)\test3.cnv" "$(TESTDATABLD)\test4.cnv" "$(TESTDATABLD)\test4x.cnv" "$(TESTDATABLD)\test5.cnv" "$(TESTDATABLD)\ibm9027.cnv" "$(TESTDATABLD)\nfscsi.spp" "$(TESTDATABLD)\nfscss.spp" "$(TESTDATABLD)\nfscis.spp" "$(TESTDATABLD)\nfsmxs.spp" "$(TESTDATABLD)\nfsmxp.spp" "$(TESTDATABLD)\testnorm.nrm" 56 test1.cnv 57 test1bmp.cnv 58 test3.cnv [all...] |
/external/icu4c/test/intltest/ |
convtest.cpp | 380 LocalUConverterPointer cnv; local 451 cnv.adoptInstead(cnv_open(charset, errorCode)); 459 ucnv_getUnicodeSet(cnv.getAlias(), cnvSetPtr->toUSet(), (UConverterUnicodeSet)which, &errorCode); 580 LocalUConverterPointer cnv; local 585 cnv.adoptInstead(cnv_open(cnvNames[i], errorCode)); 591 ucnv_setFromUCallBack(cnv.getAlias(), getUnicodeSetCallback, &expected, NULL, NULL, &errorCode); 599 ucnv_setFallback(cnv.getAlias(), TRUE); 607 ucnv_fromUnicode(cnv.getAlias(), &t, buffer+sizeof(buffer), (const UChar **)&s, s0+s0Length, NULL, flush, &errorCode); 618 ucnv_getUnicodeSet(cnv.getAlias(), set.toUSet(), which, &errorCode); 783 stepToUnicode(ConversionCase &cc, UConverter *cnv, 1378 UConverter *cnv; local [all...] |
convtest.h | 85 checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, 91 checkFromUnicode(ConversionCase &cc, UConverter *cnv, const char *name,
|
/external/icu4c/test/cintltst/ |
nucnvtst.c | 28 static void TestNextUChar(UConverter* cnv, const char* source, const char* limit, const int32_t results[], const char* message); 29 static void TestNextUCharError(UConverter* cnv, const char* source, const char* limit, UErrorCode expected, const char* message); 113 static UConverter *my_ucnv_open(const char *cnv, UErrorCode *err); 124 static UConverter *my_ucnv_open(const char *cnv, UErrorCode *err) 126 if(cnv && cnv[0] == '@') { 127 return ucnv_openPackage(loadTestData(err), cnv+1, err); 129 return ucnv_open(cnv, err); 169 TestNextUChar(UConverter* cnv, const char* source, const char* limit, const int32_t results[], const char* message) 179 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode) 1520 UConverter *ascii_cnv = 0, *sjis_cnv = 0, *cnv; local 1850 UConverter *cnv=ucnv_open("UTF-7", &errorCode); local 1893 UConverter *cnv=ucnv_open("IMAP-mailbox-name", &errorCode); local 1955 UConverter *cnv=ucnv_open("UTF-8", &errorCode); local 2026 UConverter *cnv=ucnv_open("CESU-8", &errorCode); local 2078 UConverter *cnv=ucnv_open("UTF-16", &errorCode); local 2126 UConverter *cnv=ucnv_open("utf-16be", &errorCode); local 2180 UConverter *cnv=ucnv_open("utf-16le", &errorCode); local 2246 UConverter *cnv=ucnv_open("UTF-32", &errorCode); local 2322 UConverter *cnv=ucnv_open("UTF-32BE", &errorCode); local 2393 UConverter *cnv=ucnv_open("UTF-32LE", &errorCode); local 2526 UConverter *cnv=ucnv_open("LATIN_1", &errorCode); local 2557 UConverter *cnv=ucnv_open("x-mac-turkish", &errorCode); local 2600 UConverter *cnv=my_ucnv_open("@ibm9027", &errorCode); local 2651 UConverter *cnv=ucnv_open("ibm-1363", &errorCode); local 2686 UConverter *cnv=ucnv_open(cnvName, &status); local 2760 UConverter *cnv; local 3111 UConverter *cnv; local 3153 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 3330 UConverter *cnv; local 3373 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 3396 UConverter *cnv; local 3862 UConverter *cnv; local 3909 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 3951 UConverter *cnv; local 3992 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 4028 UConverter *cnv; local 4069 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 4107 UConverter *cnv; local 4149 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 4512 UConverter *cnv; local 4556 TestSmallSourceBuffer(in,(const UChar*)in + (sizeof(in)\/sizeof(in[0])),cnv); local 4613 UConverter * cnv = ucnv_open(testPtr->converterName, &err); local 4674 UConverter *cnv=ucnv_open("ibm-930", &errorCode); local 4750 UConverter *cnv=ucnv_open("gb18030", &errorCode); local 4840 UConverter *cnv; local 5328 UConverter *cnv = 0; local 5359 UConverter *cnv = 0; local [all...] |
ccapitst.c | 446 UConverter *cnv=NULL; local 448 cnv=ucnv_open("ibm-949,Madhu", &err); 452 ucnv_close(cnv); 717 UConverter *cnv=ucnv_open("ISO_2022", &err); local 721 c=ucnv_getNextUChar(cnv, &source, limit, &err); 725 ucnv_reset(cnv); 726 ucnv_close(cnv); 763 log_err("ucnv_getDisplayName(NULL) with cnv == NULL is supposed to return 0\n"); 1221 UConverter *cnv; local 1734 UConverter * cnv, *cnv2; local 1933 UConverter *cnv; local 2656 UConverter *utf8Cnv, *cnv; local 2699 UConverter *utf8Cnv, *cnv; local 2800 UConverter *cnv; local 2952 UConverter *cnv = cnv_open(converter[idx].name, &status); local 2972 UConverter *cnv; local 3079 UConverter *cnv, *swapCnv; local 3234 UConverter* cnv = ucnv_openPackage(loadTestData(&status), "test3", &status); local 3339 UConverter* cnv = ucnv_openPackage(loadTestData(&status), "test3", &status); local 3437 UConverter *cnv; local 3540 UConverter *cnv; local 3626 UConverter *cnv; local 3690 UConverter *cnv = ucnv_open(names[i], &errorCode); local 3733 UConverter *cnv = ucnv_open(names[i], &errorCode); local [all...] |
/external/icu4c/common/unicode/ |
ucnv.h | 389 * cnv=ucnv_open(name, &errorCode); 398 * cnv=ucnv_open(name, &errorCode); 405 * cnv=ucnv_open(name, &errorCode); 433 * <code> udata_open( packageName, "cnv", converterName, err) </code> or equivalent. 446 * <code>cnv = ucnv_openPackage("myapp", "myconverter", &err);</code> 485 * @param cnv converter to be cloned 500 ucnv_safeClone(const UConverter *cnv, 609 * @param cnv The UConverter object. 622 ucnv_setSubstString(UConverter *cnv, [all...] |
/external/icu4c/test/perf/utfperf/ |
utfperf.cpp | 126 cnv=ucnv_open(testcase.charset, &errorCode); 130 ucnv_setFromUCallBack(cnv, fromUCallback, NULL, NULL, NULL, &errorCode); 135 ucnv_close(cnv); 147 UConverter *cnv; member in class:Command 171 ucnv_reset(cnv); 188 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); 202 ucnv_toUnicode(cnv, &pOut, pOutLimit,&p, pInter,NULL, flush,pErrorCode); 235 ucnv_resetFromUnicode(cnv); 247 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); 290 ucnv_resetFromUnicode(cnv); [all...] |