Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/icu/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 …]
Ducnvmbcs.c1412 UConverterLoadArgs *pArgs, in ucnv_MBCSLoad() argument
1458 if(pArgs->nestedLoads!=1) { in ucnv_MBCSLoad()
1475 args.onlyTestIsLoadable=pArgs->onlyTestIsLoadable; in ucnv_MBCSLoad()
1476 args.reserved=pArgs->reserved; in ucnv_MBCSLoad()
1477 args.options=pArgs->options; in ucnv_MBCSLoad()
1478 args.pkg=pArgs->pkg; in ucnv_MBCSLoad()
1491 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSLoad()
1615 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSLoad()
1755 UConverterLoadArgs *pArgs, in ucnv_MBCSOpen() argument
1762 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSOpen()
[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 …]
Ducnv_bld.cpp259 ucnv_data_unFlattenClone(UConverterLoadArgs *pArgs, UDataMemory *pData, UErrorCode *status) in ucnv_data_unFlattenClone() argument
316 data->impl->load(data, pArgs, raw + source->structSize, status); in ucnv_data_unFlattenClone()
330 static UConverterSharedData *createConverterFromFile(UConverterLoadArgs *pArgs, UErrorCode * err) in createConverterFromFile() argument
342 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "load converter %s from package %s", pArgs->name, pArgs->pkg); in createConverterFromFile()
344 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, NULL, err); in createConverterFromFile()
351 sharedData = ucnv_data_unFlattenClone(pArgs, data, err); in createConverterFromFile()
552 ucnv_load(UConverterLoadArgs *pArgs, UErrorCode *err) { in ucnv_load() argument
559 if(pArgs->pkg != NULL && *pArgs->pkg != 0) { in ucnv_load()
561 return createConverterFromFile(pArgs, err); in ucnv_load()
564 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…
/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 …]
Ducnvmbcs.c1412 UConverterLoadArgs *pArgs, in ucnv_MBCSLoad() argument
1458 if(pArgs->nestedLoads!=1) { in ucnv_MBCSLoad()
1475 args.onlyTestIsLoadable=pArgs->onlyTestIsLoadable; in ucnv_MBCSLoad()
1476 args.reserved=pArgs->reserved; in ucnv_MBCSLoad()
1477 args.options=pArgs->options; in ucnv_MBCSLoad()
1478 args.pkg=pArgs->pkg; in ucnv_MBCSLoad()
1491 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSLoad()
1615 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSLoad()
1755 UConverterLoadArgs *pArgs, in ucnv_MBCSOpen() argument
1762 if(pArgs->onlyTestIsLoadable) { in ucnv_MBCSOpen()
[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 …]
Ducnv_bld.cpp250 ucnv_data_unFlattenClone(UConverterLoadArgs *pArgs, UDataMemory *pData, UErrorCode *status) in ucnv_data_unFlattenClone() argument
307 data->impl->load(data, pArgs, raw + source->structSize, status); in ucnv_data_unFlattenClone()
321 static UConverterSharedData *createConverterFromFile(UConverterLoadArgs *pArgs, UErrorCode * err) in createConverterFromFile() argument
333 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "load converter %s from package %s", pArgs->name, pArgs->pkg); in createConverterFromFile()
335 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, NULL, err); in createConverterFromFile()
342 sharedData = ucnv_data_unFlattenClone(pArgs, data, err); in createConverterFromFile()
543 ucnv_load(UConverterLoadArgs *pArgs, UErrorCode *err) { in ucnv_load() argument
550 if(pArgs->pkg != NULL && *pArgs->pkg != 0) { in ucnv_load()
552 return createConverterFromFile(pArgs, err); in ucnv_load()
555 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,

12