/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 | 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 | 90 static UBool hasCESU8Data(const UConverter *cnv) 95 return (UBool)(cnv->sharedData == &_CESU8Data); 102 UConverter *cnv = args->converter; local 107 unsigned char *toUBytes = cnv->toUBytes; 108 UBool isCESU8 = hasCESU8Data(cnv); 113 if (cnv->toUnicodeStatus && myTarget < targetLimit) 115 inBytes = cnv->mode; /* restore # of bytes to consume */ 116 i = cnv->toULength; /* restore # of bytes consumed */ 117 cnv->toULength = 0; 119 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call* 230 UConverter *cnv = args->converter; local 360 UConverter *cnv = args->converter; local 474 UConverter *cnv = args->converter; local 612 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/icu/icu4c/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 | 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 | 191 static void psuedo_ucnv_close(UConverter * cnv) 194 UTRACE_DATA1(UTRACE_OPEN_CLOSE, "unload converter %p", cnv); 264 UConverter *cnv; local 273 cnv = ucnv_open(NULL, &status); 275 ucnv_close(cnv); 277 cnv = psuedo_ucnv_open(NULL, &status); 279 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/icu/icu4c/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);
|
/external/chromium_org/third_party/icu/source/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/chromium_org/third_party/icu/source/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/icu/icu4c/source/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/icu/icu4c/source/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...] |