/external/icu/icu4c/source/common/ |
H A D | ucnv_set.c | 30 ucnv_getUnicodeSet(const UConverter *cnv, argument 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);
|
H A D | ucnvdisp.c | 34 ucnv_getDisplayName(const UConverter *cnv, argument 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));
|
H A D | 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);
|
H A D | ucnv_cnv.c | 30 ucnv_getCompleteUnicodeSet(const UConverter *cnv, argument 38 ucnv_getNonSurrogateUnicodeSet(const UConverter *cnv, argument 47 ucnv_fromUWriteBytes(UConverter *cnv, argument 75 if(cnv!=NULL) { 76 t=(char *)cnv->charErrorBuffer; 77 cnv->charErrorBufferLength=(int8_t)length; 87 ucnv_toUWriteUChars(UConverter *cnv, argument 115 if(cnv!=NULL) { 116 t=cnv->UCharErrorBuffer; 117 cnv 127 ucnv_toUWriteCodePoint(UConverter *cnv, UChar32 c, UChar **target, const UChar *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument [all...] |
H A D | ustr_cnv.cpp | 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...] |
H A D | unistr_cnv.cpp | 78 UConverter *cnv, 93 if(cnv!=0) { 95 ucnv_resetToUnicode(cnv); 96 doCodepageCreate(src, srcLength, cnv, errorCode); 99 cnv=u_getDefaultConverter(&errorCode); 100 doCodepageCreate(src, srcLength, cnv, errorCode); 101 u_releaseDefaultConverter(cnv); 206 UConverter *cnv, 225 if(cnv==0) { 227 cnv 77 UnicodeString(const char *src, int32_t srcLength, UConverter *cnv, UErrorCode &errorCode) argument 205 extract(char *dest, int32_t destCapacity, UConverter *cnv, UErrorCode &errorCode) const argument 248 doExtract(int32_t start, int32_t length, char *dest, int32_t destCapacity, UConverter *cnv, UErrorCode &errorCode) const argument [all...] |
H A D | 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 569 _UTF16BEReset(UConverter *cnv, UConverterResetChoice choice) argument 585 _UTF16BEOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode) argument 596 _UTF16BEGetName(const UConverter *cnv) argument 646 UConverter *cnv; local 850 UConverter *cnv; local 1165 _UTF16LEReset(UConverter *cnv, UConverterResetChoice choice) argument 1181 _UTF16LEOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode) argument 1192 _UTF16LEGetName(const UConverter *cnv) argument 1265 _UTF16Reset(UConverter *cnv, UConverterResetChoice choice) argument 1279 _UTF16Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode) argument 1300 _UTF16GetName(const UConverter *cnv) argument 1319 UConverter *cnv=pArgs->converter; local [all...] |
H A D | ucnv_u32.c | 1018 _UTF32Reset(UConverter *cnv, UConverterResetChoice choice) { argument 1021 cnv->mode=0; 1025 cnv->fromUnicodeStatus=UCNV_NEED_TO_WRITE_BOM; 1030 _UTF32Open(UConverter *cnv, argument 1033 _UTF32Reset(cnv, UCNV_RESET_BOTH); 1041 UConverter *cnv=pArgs->converter; local 1049 state=cnv->mode; 1176 cnv->mode=state;
|
H A D | ucnv_u7.c | 180 _UTF7Reset(UConverter *cnv, UConverterResetChoice choice) { argument 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, argument 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)<<2 208 UConverter *cnv; local 459 UConverter *cnv; local 733 _UTF7GetName(const UConverter *cnv) argument 887 UConverter *cnv; local 1155 UConverter *cnv; local [all...] |
H A D | 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, argument 551 UConverter *cnv=pArgs->converter; local 552 cnv->toUBytes[0]=c; 553 cnv 589 UConverter *cnv=pArgs->converter; local 692 _ASCIIGetUnicodeSet(const UConverter *cnv, const USetAdder *sa, UConverterUnicodeSet which, UErrorCode *pErrorCode) argument [all...] |
H A D | ucnv_u8.c | 90 static UBool hasCESU8Data(const UConverter *cnv) argument 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 230 UConverter *cnv = args->converter; local 360 UConverter *cnv = args->converter; local 474 UConverter *cnv = args->converter; local 612 UConverter *cnv; local [all...] |
H A D | ucnvbocu.cpp | 392 UConverter *cnv; local 403 cnv=pArgs->converter; 411 c=cnv->fromUChar32; 412 prev=(int32_t)cnv->fromUnicodeStatus; 578 charErrorBuffer=(uint8_t *)cnv->charErrorBuffer; 591 cnv->charErrorBufferLength=(int8_t)length; 625 cnv->fromUChar32= c<0 ? -c : 0; 626 cnv->fromUnicodeStatus=(uint32_t)prev; 644 UConverter *cnv; local 652 cnv 939 UConverter *cnv; local 1162 UConverter *cnv; local [all...] |
H A D | ucnvhz.c | 70 _HZOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ argument 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){ argument 97 if(cnv 107 _HZReset(UConverter *cnv, UConverterResetChoice choice) argument 499 UConverter *cnv = args->converter; local 529 UConverter cnv; member in struct:cloneHZStruct 537 _HZ_SafeClone(const UConverter *cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) argument 570 _HZ_GetUnicodeSet(const UConverter *cnv, const USetAdder *sa, UConverterUnicodeSet which, UErrorCode *pErrorCode) argument [all...] |
H A D | ucnv_ct.c | 167 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode); 176 _CompoundTextgetName(const UConverter* cnv); 259 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ argument 260 cnv->extraInfo = uprv_malloc (sizeof (UConverterDataCompoundText)); 261 if (cnv->extraInfo != NULL) { 262 UConverterDataCompoundText *myConverterData = (UConverterDataCompoundText *) cnv->extraInfo; 290 _CompoundTextClose(cnv); 323 _CompoundTextgetName(const UConverter* cnv){ argument 329 UConverter *cnv = args->converter; local 336 UBool useFallback = cnv 576 _CompoundText_GetUnicodeSet(const UConverter *cnv, const USetAdder *sa, UConverterUnicodeSet which, UErrorCode *pErrorCode) argument [all...] |
H A D | ucnv_ext.cpp | 234 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, argument 243 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), 250 cnv, 266 * cnv->mode==0 is equivalent to firstLength==1. 268 #define UCNV_SISO_STATE(cnv) \ 269 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 270 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 276 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, argument 287 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), 368 ucnv_extContinueMatchToU(UConverter *cnv, UConverterToUnicodeArgs *pArgs, int32_t srcIndex, UErrorCode *pErrorCode) argument 669 ucnv_extWriteFromU(UConverter *cnv, const int32_t *cx, uint32_t value, char **target, const char *targetLimit, int32_t **offsets, int32_t srcIndex, UErrorCode *pErrorCode) argument 744 ucnv_extInitialMatchFromU(UConverter *cnv, const int32_t *cx, UChar32 cp, const UChar **src, const UChar *srcLimit, char **target, const char *targetLimit, int32_t **offsets, int32_t srcIndex, UBool flush, UErrorCode *pErrorCode) argument 861 ucnv_extContinueMatchFromU(UConverter *cnv, UConverterFromUnicodeArgs *pArgs, int32_t srcIndex, UErrorCode *pErrorCode) argument [all...] |
/external/icu/icu4c/source/test/cintltst/ |
H A D | cstrtest.c | 234 UConverter *cnv; local 238 cnv=ucnv_open(NULL, &errorCode); 242 length=ucnv_fromUChars(cnv, cs, sizeof(cs), invariantUChars, -1, &errorCode); 250 length=ucnv_toUChars(cnv, us, UPRV_LENGTHOF(us), invariantChars, -1, &errorCode); 257 ucnv_close(cnv);
|
H A D | tracetst.c | 191 static void psuedo_ucnv_close(UConverter * cnv) argument 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);
|
H A D | cintltst.c | 92 UConverter *cnv; local 153 cnv = ucnv_open(TRY_CNV_2, &errorCode); 154 if(cnv != 0) { 156 ucnv_close(cnv);
|
H A D | ucsdetst.c | 51 static int32_t preflight(const UChar *src, int32_t length, UConverter *cnv) argument 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/samples/date/ |
H A D | 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/ |
H A D | ustring.cpp | 31 static UConverter *cnv=NULL; variable 45 ucnv_fromUChars(cnv, out, sizeof(out), s, length, &errorCode); 585 cnv=ucnv_open(NULL, &errorCode); 591 ucnv_setFromUCallBack(cnv, UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, NULL, NULL, &errorCode); 594 ucnv_close(cnv); 605 ucnv_close(cnv);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
H A D | CharsetDecoderICU.java | 451 * need not check cnv->preToULength==0 because a replay (<0) will cause 664 static final CoderResult toUWriteUChars( CharsetDecoderICU cnv, argument 687 cnv.charErrorBufferLength= 0; 690 cnv.charErrorBufferArray[cnv.charErrorBufferLength++]=ucharsArray[ucharsBegin++];
|
H A D | CharsetEncoderICU.java | 442 * need not check cnv.preFromULength==0 because a replay (<0) will cause 581 //agljport:todo U_ASSERT(cnv.preFromULength==0); 680 * @param cnv 689 static final CoderResult fromUWriteBytes(CharsetEncoderICU cnv, argument 715 cnv.errorBufferLength = bytesLimit - bytesBegin; 716 if (cnv.errorBufferLength > 0) { 719 cnv.errorBuffer[index++] = bytesArray[bytesBegin++];
|
/external/icu/icu4c/source/test/perf/utfperf/ |
H A D | utfperf.cpp | 125 cnv=ucnv_open(testcase.charset, &errorCode); 129 ucnv_setFromUCallBack(cnv, fromUCallback, NULL, NULL, NULL, &errorCode); 134 ucnv_close(cnv); 146 UConverter *cnv; member in class:Command 170 ucnv_reset(cnv); 187 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); 201 ucnv_toUnicode(cnv, &pOut, pOutLimit,&p, pInter,NULL, flush,pErrorCode); 234 ucnv_resetFromUnicode(cnv); 246 ucnv_fromUnicode(cnv, &pInter, pInterLimit, &pIn, pInLimit, NULL, TRUE, pErrorCode); 289 ucnv_resetFromUnicode(cnv); [all...] |
/external/icu/icu4c/source/tools/toolutil/ |
H A D | xmlparser.cpp | 168 UConverter *cnv; local 201 cnv=ucnv_open(charset, &errorCode); 204 cnv=ucnv_open("ISO-8859-1", &errorCode); 219 cnv, 224 ucnv_close(cnv); 225 cnv=NULL; 260 cnv=ucnv_open(charset, &errorCode); 288 cnv, &pu, buffer+src.getCapacity(), 317 ucnv_close(cnv);
|