/external/chromium_org/third_party/icu/source/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...] |
/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 | 154 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) 188 if (!pBufferSize || !cnv){ 195 ucnv_getName(cnv, status), cnv, stackBuffer); 197 if (cnv->sharedData->impl->safeClone != NULL) { 200 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); 258 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); 262 if (cnv->subChars == (uint8_t *)cnv->subUChars) 828 UConverter *cnv; local 1273 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...] |
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 | 67 typedef void (*UConverterOpen) (UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode); 68 typedef void (*UConverterClose) (UConverter *cnv); 76 typedef void (*UConverterReset) (UConverter *cnv, UConverterResetChoice choice); 158 typedef const char * (*UConverterGetName) (const UConverter *cnv); 178 typedef UConverter * (*UConverterSafeClone) (const UConverter *cnv, 207 typedef void (*UConverterGetUnicodeSet) (const UConverter *cnv, 269 #define UCNV_TO_U_USE_FALLBACK(cnv) TRUE 271 /** Use fallbacks from Unicode to codepage when cnv->useFallback or for private-use code points */ 274 #define UCNV_FROM_U_USE_FALLBACK(cnv, c) FROM_U_USE_FALLBACK((cnv)->useFallback, c [all...] |
ucnv_ext.cpp | 234 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, 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, 287 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), [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...] |
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));
|
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 | 116 * - Added an optional extension table structure at the end of the .cnv file. 1887 UConverter *cnv; local 2039 UConverter *cnv; local 2319 UConverter *cnv; local 2736 UConverter *cnv; local 2821 UConverter *cnv; local 3260 UConverter *cnv; local 3492 UConverter *cnv; local 3668 UConverter *cnv; local 3925 UConverter *cnv; local 4865 UConverter *utf8, *cnv; local 5171 UConverter *utf8, *cnv; local 5506 UConverter *cnv=pArgs->converter; local [all...] |