HomeSort by relevance Sort by last modified time
    Searched defs:cnv (Results 1 - 25 of 34) sorted by null

1 2

  /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 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
458 UConverter *cnv; local
888 UConverter *cnv; local
1156 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...]
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...]
ucnv_bld.c 156 static UMTX cnvCacheMutex = NULL; /* Mutex for synchronizing cnv cache access. */
182 static const char DATA_TYPE[] = "cnv";
887 UConverter *cnv; local
916 cnv = ucnv_createConverterFromSharedData(
920 UTRACE_EXIT_PTR_STATUS(cnv, *err);
921 return cnv;
1306 UConverter *cnv = NULL; local
    [all...]
ucnv_ct.c 168 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
177 _CompoundTextgetName(const UConverter* cnv);
260 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
261 cnv->extraInfo = uprv_malloc (sizeof (UConverterDataCompoundText));
262 if (cnv->extraInfo != NULL) {
263 UConverterDataCompoundText *myConverterData = (UConverterDataCompoundText *) cnv->extraInfo;
291 _CompoundTextClose(cnv);
324 _CompoundTextgetName(const UConverter* cnv){
330 UConverter *cnv = args->converter; local
337 UBool useFallback = cnv->useFallback
    [all...]
ucnv_lmb.c 688 UConverter cnv; member in struct:LMBCSClone
693 _LMBCSSafeClone(const UConverter *cnv,
706 extraInfo=(UConverterDataLMBCS *)cnv->extraInfo;
720 newLMBCS->cnv.extraInfo = &newLMBCS->lmbcs;
721 newLMBCS->cnv.isExtraLocal = TRUE;
722 return &newLMBCS->cnv;
1150 UConverterSharedData *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...]
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...]
ucnvisci.c 174 static void _ISCIIOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode) {
182 cnv->extraInfo = uprv_malloc(sizeof(UConverterDataISCII));
184 if (cnv->extraInfo != NULL) {
187 (UConverterDataISCII *) cnv->extraInfo;
189 cnv->toUnicodeStatus = missingCharMarker;
211 uprv_free(cnv->extraInfo);
212 cnv->extraInfo = NULL;
221 static void _ISCIIClose(UConverter *cnv) {
222 if (cnv->extraInfo!=NULL) {
223 if (!cnv->isExtraLocal)
1489 UConverter *cnv = args->converter; local
1515 UConverter cnv; member in struct:cloneISCIIStruct
    [all...]
  /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);
cintltst.c 81 UConverter *cnv; local
142 cnv = ucnv_open(TRY_CNV_2, &errorCode);
143 if(cnv != 0) {
145 ucnv_close(cnv);
cbiapts.c 84 UConverter *cnv; local
91 cnv = ucnv_open(NULL, &status);
92 if(U_FAILURE(status) || cnv == NULL) {
95 ucnv_reset(cnv);
96 numUChars = ucnv_toUChars(cnv,
106 ucnv_toUChars(cnv, dest->str, numUChars+1, src, -1, &status);
115 ucnv_reset(cnv); /* be good citizens */
116 ucnv_close(cnv);
  /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/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...]
  /external/icu4c/tools/toolutil/
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);
  /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...]
  /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);
97 UConverter* cnv = toUConverter(address); local
98 if (cnv == NULL) {
126 ucnv_fromUnicode(cnv , &cTarget, cTargetLimit, &mySource, mySourceLimit, NULL, (UBool) flush, &errorCode);
135 ucnv_getInvalidUChars(cnv, invalidUChars, &invalidUCharCount, &minorErrorCode);
152 UConverter* cnv = toUConverter(address); local
153 if (cnv == NULL) {
181 ucnv_toUnicode(cnv, &cTarget, cTargetLimit, &mySource, mySourceLimit, NULL, flush, &errorCode);
190 ucnv_getInvalidChars(cnv, invalidBytes, &invalidByteCount, &minorErrorCode)
204 UConverter* cnv = toUConverter(address); local
211 UConverter* cnv = toUConverter(address); local
218 UConverter* cnv = toUConverter(address); local
223 UConverter* cnv = toUConverter(address); local
228 UConverter* cnv = toUConverter(address); local
234 UConverter* cnv = toUConverter(address); local
417 UConverter* cnv = toUConverter(address); local
501 UConverter* cnv = toUConverter(address); local
538 UConverter* cnv = toUConverter(address); local
    [all...]

Completed in 548 milliseconds

1 2