/external/chromium_org/third_party/icu/source/common/ |
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);
|
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...] |
ucnvlat1.c | 134 UConverter *cnv; local 146 cnv=pArgs->converter; 153 if(cnv->sharedData==&_Latin1Data) { 160 cp=cnv->fromUChar32; 284 cnv->fromUChar32=cp; 293 cnv->fromUChar32=cp; 417 _Latin1GetUnicodeSet(const UConverter *cnv, 553 UConverter *cnv=pArgs->converter; local 554 cnv->toUBytes[0]=c; 555 cnv->toULength=1 591 UConverter *cnv=pArgs->converter; 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_u32.c | 1046 UConverter *cnv=pArgs->converter; local [all...] |
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...] |
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...] |
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...] |
/external/icu4c/common/ |
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);
|
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...] |
ucnvlat1.c | 135 UConverter *cnv; local 147 cnv=pArgs->converter; 154 if(cnv->sharedData==&_Latin1Data) { 161 cp=cnv->fromUChar32; 285 cnv->fromUChar32=cp; 294 cnv->fromUChar32=cp; 418 _Latin1GetUnicodeSet(const UConverter *cnv, 554 UConverter *cnv=pArgs->converter; local 555 cnv->toUBytes[0]=c; 556 cnv->toULength=1 592 UConverter *cnv=pArgs->converter; 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_u32.c | 1047 UConverter *cnv=pArgs->converter; local [all...] |
ucnv_u7.c | 180 _UTF7Reset(UConverter *cnv, UConverterResetChoice choice) { 183 cnv->toUnicodeStatus=0x1000000; /* inDirectMode=TRUE */ 184 cnv->toULength=0; 188 cnv->fromUnicodeStatus=(cnv->fromUnicodeStatus&0xf0000000)|0x1000000; /* keep version, inDirectMode=TRUE */ 193 _UTF7Open(UConverter *cnv, 196 if(UCNV_GET_VERSION(cnv)<=1) { 197 /* TODO(markus): Should just use cnv->options rather than copying the version number. */ 198 cnv->fromUnicodeStatus=UCNV_GET_VERSION(cnv)<<28 208 UConverter *cnv; local 459 UConverter *cnv; local 890 UConverter *cnv; local 1158 UConverter *cnv; local [all...] |
ucnv_u8.c | 93 UConverter *cnv = args->converter; local 98 unsigned char *toUBytes = cnv->toUBytes; 99 UBool isCESU8 = (UBool)(cnv->sharedData == &_CESU8Data); 104 if (cnv->toUnicodeStatus && myTarget < targetLimit) 106 inBytes = cnv->mode; /* restore # of bytes to consume */ 107 i = cnv->toULength; /* restore # of bytes consumed */ 108 cnv->toULength = 0; 110 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ 111 cnv->toUnicodeStatus = 0; 147 cnv->toUnicodeStatus = ch 221 UConverter *cnv = args->converter; local 351 UConverter *cnv = args->converter; local 465 UConverter *cnv = args->converter; local 603 UConverter *cnv; local [all...] |
ucnvhz.c | 70 _HZOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ 80 cnv->toUnicodeStatus = 0; 81 cnv->fromUnicodeStatus= 0; 82 cnv->mode=0; 83 cnv->fromUChar32=0x0000; 84 cnv->extraInfo = uprv_calloc(1, sizeof(UConverterDataHZ)); 85 if(cnv->extraInfo != NULL){ 86 ((UConverterDataHZ*)cnv->extraInfo)->gbConverter = gbConverter; 96 _HZClose(UConverter *cnv){ 97 if(cnv->extraInfo != NULL) 501 UConverter *cnv = args->converter; local 531 UConverter cnv; member in struct:cloneHZStruct [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cstrtest.c | 236 UConverter *cnv; local 240 cnv=ucnv_open(NULL, &errorCode); 244 length=ucnv_fromUChars(cnv, cs, sizeof(cs), invariantUChars, -1, &errorCode); 252 length=ucnv_toUChars(cnv, us, LENGTHOF(us), invariantChars, -1, &errorCode); 259 ucnv_close(cnv);
|
tracetst.c | 190 static void psuedo_ucnv_close(UConverter * cnv) 193 UTRACE_DATA1(UTRACE_OPEN_CLOSE, "unload converter %p", cnv); 263 UConverter *cnv; local 272 cnv = ucnv_open(NULL, &status); 274 ucnv_close(cnv); 276 cnv = psuedo_ucnv_open(NULL, &status); 278 psuedo_ucnv_close(cnv);
|
ucsdetst.c | 51 static int32_t preflight(const UChar *src, int32_t length, UConverter *cnv) 62 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, &status); 72 UConverter *cnv = ucnv_open(codepage, &status); local 73 int32_t byteCount = preflight(src, length, cnv); 78 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, &status); 79 ucnv_close(cnv);
|
/external/icu4c/test/cintltst/ |
cstrtest.c | 236 UConverter *cnv; local 240 cnv=ucnv_open(NULL, &errorCode); 244 length=ucnv_fromUChars(cnv, cs, sizeof(cs), invariantUChars, -1, &errorCode); 252 length=ucnv_toUChars(cnv, us, LENGTHOF(us), invariantChars, -1, &errorCode); 259 ucnv_close(cnv);
|
tracetst.c | 190 static void psuedo_ucnv_close(UConverter * cnv) 193 UTRACE_DATA1(UTRACE_OPEN_CLOSE, "unload converter %p", cnv); 263 UConverter *cnv; local 272 cnv = ucnv_open(NULL, &status); 274 ucnv_close(cnv); 276 cnv = psuedo_ucnv_open(NULL, &status); 278 psuedo_ucnv_close(cnv);
|
ucsdetst.c | 51 static int32_t preflight(const UChar *src, int32_t length, UConverter *cnv) 62 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, &status); 72 UConverter *cnv = ucnv_open(codepage, &status); local 73 int32_t byteCount = preflight(src, length, cnv); 78 ucnv_fromUnicode(cnv, &dest, destLimit, &src, srcLimit, 0, TRUE, &status); 79 ucnv_close(cnv);
|
/external/icu4c/samples/date/ |
date.c | 50 UConverter *cnv = NULL; variable 169 ucnv_close(cnv); 229 if(cnv==NULL) { 230 cnv = ucnv_open(NULL, status); 232 if(cnv&&U_SUCCESS(*status)) { 233 len = ucnv_toUChars(cnv, uchars, ucharsSize, chars,charsSize, status);
|
/external/icu4c/samples/ustring/ |
ustring.cpp | 33 static UConverter *cnv=NULL; variable 47 ucnv_fromUChars(cnv, out, sizeof(out), s, length, &errorCode); 587 cnv=ucnv_open(NULL, &errorCode); 593 ucnv_setFromUCallBack(cnv, UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, NULL, NULL, &errorCode); 596 ucnv_close(cnv); 607 ucnv_close(cnv);
|
/external/chromium_org/third_party/icu/source/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...] |