Home
last modified time | relevance | path

Searched refs:pArgs (Results 1 – 20 of 20) sorted by relevance

/external/icu/icu4c/source/common/
Ducnv_u16.c35 _UTF16ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
48 _UTF16BEFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _UTF16BEFromUnicodeWithOffsets() argument
59 source=pArgs->source; in _UTF16BEFromUnicodeWithOffsets()
60 length=(int32_t)(pArgs->sourceLimit-source); in _UTF16BEFromUnicodeWithOffsets()
66 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets()
73 &pArgs->target, pArgs->targetLimit, in _UTF16BEFromUnicodeWithOffsets()
74 &pArgs->offsets, -1, in _UTF16BEFromUnicodeWithOffsets()
79 target=pArgs->target; in _UTF16BEFromUnicodeWithOffsets()
80 if(target >= pArgs->targetLimit) { in _UTF16BEFromUnicodeWithOffsets()
85 targetCapacity=(uint32_t)(pArgs->targetLimit-target); in _UTF16BEFromUnicodeWithOffsets()
[all …]
Ducnvlat1.c32 _Latin1ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _Latin1ToUnicodeWithOffsets() argument
42 source=(const uint8_t *)pArgs->source; in _Latin1ToUnicodeWithOffsets()
43 target=pArgs->target; in _Latin1ToUnicodeWithOffsets()
44 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Latin1ToUnicodeWithOffsets()
45 offsets=pArgs->offsets; in _Latin1ToUnicodeWithOffsets()
53 length=(int32_t)((const uint8_t *)pArgs->sourceLimit-source); in _Latin1ToUnicodeWithOffsets()
103 pArgs->source=(const char *)source; in _Latin1ToUnicodeWithOffsets()
104 pArgs->target=target; in _Latin1ToUnicodeWithOffsets()
112 pArgs->offsets=offsets; in _Latin1ToUnicodeWithOffsets()
118 _Latin1GetNextUChar(UConverterToUnicodeArgs *pArgs, in _Latin1GetNextUChar() argument
[all …]
Ducnvbocu.cpp390 _Bocu1FromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs, in _Bocu1FromUnicodeWithOffsets() argument
405 cnv=pArgs->converter; in _Bocu1FromUnicodeWithOffsets()
406 source=pArgs->source; in _Bocu1FromUnicodeWithOffsets()
407 sourceLimit=pArgs->sourceLimit; in _Bocu1FromUnicodeWithOffsets()
408 target=(uint8_t *)pArgs->target; in _Bocu1FromUnicodeWithOffsets()
409 targetCapacity=(int32_t)(pArgs->targetLimit-pArgs->target); in _Bocu1FromUnicodeWithOffsets()
410 offsets=pArgs->offsets; in _Bocu1FromUnicodeWithOffsets()
458 targetCapacity=(int32_t)((const uint8_t *)pArgs->targetLimit-target); in _Bocu1FromUnicodeWithOffsets()
631 pArgs->source=source; in _Bocu1FromUnicodeWithOffsets()
632 pArgs->target=(char *)target; in _Bocu1FromUnicodeWithOffsets()
[all …]
Ducnv_u7.c194 UConverterLoadArgs *pArgs, in _UTF7Open() argument
206 _UTF7ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF7ToUnicodeWithOffsets() argument
230 cnv=pArgs->converter; in _UTF7ToUnicodeWithOffsets()
232 source=(const uint8_t *)pArgs->source; in _UTF7ToUnicodeWithOffsets()
233 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _UTF7ToUnicodeWithOffsets()
234 target=pArgs->target; in _UTF7ToUnicodeWithOffsets()
235 targetLimit=pArgs->targetLimit; in _UTF7ToUnicodeWithOffsets()
236 offsets=pArgs->offsets; in _UTF7ToUnicodeWithOffsets()
435 if(U_SUCCESS(*pErrorCode) && pArgs->flush && source==sourceLimit && bits==0) { in _UTF7ToUnicodeWithOffsets()
450 pArgs->source=(const char *)source; in _UTF7ToUnicodeWithOffsets()
[all …]
Ducnv_u32.c1037 UConverterLoadArgs *pArgs, in _UTF32Open() argument
1045 _UTF32ToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _UTF32ToUnicodeWithOffsets() argument
1047 UConverter *cnv=pArgs->converter; in _UTF32ToUnicodeWithOffsets()
1048 const char *source=pArgs->source; in _UTF32ToUnicodeWithOffsets()
1049 const char *sourceLimit=pArgs->sourceLimit; in _UTF32ToUnicodeWithOffsets()
1050 int32_t *offsets=pArgs->offsets; in _UTF32ToUnicodeWithOffsets()
1089 offsetDelta=(int32_t)(source-pArgs->source); in _UTF32ToUnicodeWithOffsets()
1092 offsetDelta=(int32_t)(source-pArgs->source); in _UTF32ToUnicodeWithOffsets()
1096 … int32_t count=(int32_t)(source-pArgs->source); /* number of bytes from this buffer */ in _UTF32ToUnicodeWithOffsets()
1099 source=pArgs->source; in _UTF32ToUnicodeWithOffsets()
[all …]
Ducnvmbcs.cpp380 UConverterLoadArgs *pArgs,
389 UConverterLoadArgs *pArgs,
393 ucnv_MBCSGetNextUChar(UConverterToUnicodeArgs *pArgs,
405 ucnv_MBCSWriteSub(UConverterFromUnicodeArgs *pArgs,
410 ucnv_MBCSGetNextUChar(UConverterToUnicodeArgs *pArgs,
1549 UConverterLoadArgs *pArgs, in ucnv_MBCSLoad() argument
1595 if(pArgs->nestedLoads!=1) { in ucnv_MBCSLoad()
1612 args.onlyTestIsLoadable=pArgs->onlyTestIsLoadable; in ucnv_MBCSLoad()
1613 args.reserved=pArgs->reserved; in ucnv_MBCSLoad()
1614 args.options=pArgs->options; in ucnv_MBCSLoad()
[all …]
Ducnv_bld.cpp282 ucnv_data_unFlattenClone(UConverterLoadArgs *pArgs, UDataMemory *pData, UErrorCode *status) in ucnv_data_unFlattenClone() argument
339 data->impl->load(data, pArgs, raw + source->structSize, status); in ucnv_data_unFlattenClone()
353 static UConverterSharedData *createConverterFromFile(UConverterLoadArgs *pArgs, UErrorCode * err) in createConverterFromFile() argument
365 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "load converter %s from package %s", pArgs->name, pArgs->pkg); in createConverterFromFile()
367 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, NULL, err); in createConverterFromFile()
374 sharedData = ucnv_data_unFlattenClone(pArgs, data, err); in createConverterFromFile()
575 ucnv_load(UConverterLoadArgs *pArgs, UErrorCode *err) { in ucnv_load() argument
582 if(pArgs->pkg != NULL && *pArgs->pkg != 0) { in ucnv_load()
584 return createConverterFromFile(pArgs, err); in ucnv_load()
587 mySharedConverterData = ucnv_getSharedConverterData(pArgs->name); in ucnv_load()
[all …]
Ducnv.c834 _fromUnicodeWithCallback(UConverterFromUnicodeArgs *pArgs, UErrorCode *err) { in _fromUnicodeWithCallback() argument
850 cnv=pArgs->converter; in _fromUnicodeWithCallback()
851 s=pArgs->source; in _fromUnicodeWithCallback()
852 t=pArgs->target; in _fromUnicodeWithCallback()
853 offsets=pArgs->offsets; in _fromUnicodeWithCallback()
883 realSource=pArgs->source; in _fromUnicodeWithCallback()
884 realSourceLimit=pArgs->sourceLimit; in _fromUnicodeWithCallback()
885 realFlush=pArgs->flush; in _fromUnicodeWithCallback()
889 pArgs->source=replay; in _fromUnicodeWithCallback()
890 pArgs->sourceLimit=replay-cnv->preFromULength; in _fromUnicodeWithCallback()
[all …]
Ducnvscsu.c194 UConverterLoadArgs *pArgs, in _SCSUOpen() argument
196 const char *locale=pArgs->locale; in _SCSUOpen()
197 if(pArgs->onlyTestIsLoadable) { in _SCSUOpen()
230 _SCSUToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs, in _SCSUToUnicodeWithOffsets() argument
247 cnv=pArgs->converter; in _SCSUToUnicodeWithOffsets()
250 source=(const uint8_t *)pArgs->source; in _SCSUToUnicodeWithOffsets()
251 sourceLimit=(const uint8_t *)pArgs->sourceLimit; in _SCSUToUnicodeWithOffsets()
252 target=pArgs->target; in _SCSUToUnicodeWithOffsets()
253 targetLimit=pArgs->targetLimit; in _SCSUToUnicodeWithOffsets()
254 offsets=pArgs->offsets; in _SCSUToUnicodeWithOffsets()
[all …]
Ducnv_ext.cpp369 UConverterToUnicodeArgs *pArgs, int32_t srcIndex, in ucnv_extContinueMatchToU() argument
376 pArgs->source, (int32_t)(pArgs->sourceLimit-pArgs->source), in ucnv_extContinueMatchToU()
378 cnv->useFallback, pArgs->flush); in ucnv_extContinueMatchToU()
382 pArgs->source+=match-cnv->preToULength; in ucnv_extContinueMatchToU()
394 &pArgs->target, pArgs->targetLimit, in ucnv_extContinueMatchToU()
395 &pArgs->offsets, srcIndex, in ucnv_extContinueMatchToU()
403 s=pArgs->source; in ucnv_extContinueMatchToU()
408 pArgs->source=s; /* same as *src=srcLimit; because we reached the end of input */ in ucnv_extContinueMatchToU()
862 UConverterFromUnicodeArgs *pArgs, int32_t srcIndex, in ucnv_extContinueMatchFromU() argument
870 pArgs->source, (int32_t)(pArgs->sourceLimit-pArgs->source), in ucnv_extContinueMatchFromU()
[all …]
Ducnv_imp.h88 UConverterLoadArgs *pArgs,
112 UConverterLoadArgs *pArgs,
Ducnv_cnv.h63 UConverterLoadArgs *pArgs,
67 typedef void (*UConverterOpen) (UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *pErrorCode);
167 typedef void (*UConverterWriteSub) (UConverterFromUnicodeArgs *pArgs, int32_t offsetIndex, UErrorCo…
Ducnv_ext.h366 UConverterToUnicodeArgs *pArgs, int32_t srcIndex,
386 UConverterFromUnicodeArgs *pArgs, int32_t srcIndex,
Ducnv_lmb.c621 _LMBCSOpen##n(UConverter* _this, UConverterLoadArgs* pArgs, UErrorCode* err) \
622 { _LMBCSOpenWorker(_this, pArgs, err, n); }
629 UConverterLoadArgs *pArgs, in _LMBCSOpenWorker() argument
643 stackArgs.onlyTestIsLoadable = pArgs->onlyTestIsLoadable; in _LMBCSOpenWorker()
652 if(U_FAILURE(*err) || pArgs->onlyTestIsLoadable) { in _LMBCSOpenWorker()
657 extraInfo->localeConverterIndex = FindLMBCSLocale(pArgs->locale); in _LMBCSOpenWorker()
Ducnvmbcs.h568 ucnv_MBCSFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs,
571 ucnv_MBCSToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
Ducnvisci.c188 static void _ISCIIOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode) { in _ISCIIOpen() argument
189 if(pArgs->onlyTestIsLoadable) { in _ISCIIOpen()
204 if ((pArgs->options & UCNV_OPTIONS_VERSION_MASK) < 9) { in _ISCIIOpen()
208 …= converterData->defDeltaToUnicode = (uint16_t)(lookupInitialData[pArgs->options & UCNV_OPTIONS_VE… in _ISCIIOpen()
212 …= converterData->defMaskToUnicode = lookupInitialData[pArgs->options & UCNV_OPTIONS_VERSION_MASK].… in _ISCIIOpen()
217 converterData->name[len]= (char)((pArgs->options & UCNV_OPTIONS_VERSION_MASK) + '0'); in _ISCIIOpen()
Ducnv_ct.c167 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
259 _CompoundTextOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ in _CompoundTextOpen() argument
289 if (U_FAILURE(*errorCode) || pArgs->onlyTestIsLoadable) { in _CompoundTextOpen()
Ducnv_bld.h265 ucnv_load(UConverterLoadArgs *pArgs, UErrorCode *err);
Ducnvhz.c70 _HZOpen(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ in _HZOpen() argument
72 if(pArgs->onlyTestIsLoadable) { in _HZOpen()
Ducnv2022.cpp387 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
472 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){ in _ISO2022Open() argument
483 stackArgs.onlyTestIsLoadable = pArgs->onlyTestIsLoadable; in _ISO2022Open()
488 if(pArgs->locale){ in _ISO2022Open()
489 uprv_strncpy(myLocale, pArgs->locale, sizeof(myLocale)); in _ISO2022Open()
491 version = pArgs->options & UCNV_OPTIONS_VERSION_MASK; in _ISO2022Open()
576 if(pArgs->onlyTestIsLoadable) { in _ISO2022Open()
668 if(U_FAILURE(*errorCode) || pArgs->onlyTestIsLoadable) { in _ISO2022Open()