Lines Matching refs:pArgs
240 ucnv_data_unFlattenClone(UConverterLoadArgs *pArgs, UDataMemory *pData, UErrorCode *status)
297 data->impl->load(data, pArgs, raw + source->structSize, status);
311 static UConverterSharedData *createConverterFromFile(UConverterLoadArgs *pArgs, UErrorCode * err)
323 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "load converter %s from package %s", pArgs->name, pArgs->pkg);
325 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, NULL, err);
332 sharedData = ucnv_data_unFlattenClone(pArgs, data, err);
533 ucnv_load(UConverterLoadArgs *pArgs, UErrorCode *err) {
540 if(pArgs->pkg != NULL && *pArgs->pkg != 0) {
542 return createConverterFromFile(pArgs, err);
545 mySharedConverterData = ucnv_getSharedConverterData(pArgs->name);
549 mySharedConverterData = createConverterFromFile(pArgs, err);
554 else if (!pArgs->onlyTestIsLoadable)
623 * *pArgs will be set to the pPieces values.
628 UConverterLoadArgs *pArgs,
635 pArgs->name=inName;
636 pArgs->locale=pPieces->locale;
637 pArgs->options=pPieces->options;
650 pArgs->name=pPieces->cnvName;
683 pArgs->options=(pPieces->options&=~UCNV_OPTION_VERSION);
686 pArgs->options=pPieces->options=(pPieces->options&~UCNV_OPTION_VERSION)|(uint32_t)(c-'0');
691 pArgs->options=(pPieces->options|=UCNV_OPTION_SWAP_LFNL);
714 UConverterLoadArgs *pArgs,
728 if(pArgs != NULL) {
730 * Bad: We may set pArgs pointers to stackPieces fields
738 if(pArgs == NULL) {
741 pArgs = &stackArgs;
748 pArgs->name = converterName;
749 pArgs->locale = pPieces->locale;
750 pArgs->options = pPieces->options;
755 pArgs->name = "UTF-8";
759 pArgs->name = ucnv_getDefaultName();
760 if (pArgs->name == NULL) {
772 pArgs->name = "UTF-8";
777 parseConverterOptions(converterName, pPieces, pArgs, err);
784 pArgs->name = ucnv_io_getConverterName(pArgs->name, &mayContainOption, &internalErrorCode);
785 if (U_FAILURE(internalErrorCode) || pArgs->name == NULL) {
790 pArgs->name = pPieces->cnvName;
795 if(mayContainOption && pArgs->name != pPieces->cnvName) {
796 parseConverterOptions(pArgs->name, pPieces, pArgs, err);
801 mySharedConverterData = (UConverterSharedData *)getAlgorithmicTypeFromName(pArgs->name);
810 pArgs->nestedLoads=1;
811 pArgs->pkg=NULL;
814 mySharedConverterData = ucnv_load(pArgs, err);
977 UConverterLoadArgs *pArgs,
1005 myUConverter->options = pArgs->options;
1006 if(!pArgs->onlyTestIsLoadable) {
1020 mySharedConverterData->impl->open(myUConverter, pArgs, err);
1021 if(U_FAILURE(*err) && !pArgs->onlyTestIsLoadable) {