Lines Matching refs:name

121    Also the name should be in lower case and all spaces, dashes and underscores
125 const char *name;
207 /* This contains the resolved converter name. So no further alias lookup is needed again. */
271 const char * /*type*/, const char * /*name*/,
336 /*Takes an alias name gets an actual converter file name
352 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "load converter %s from package %s", pArgs->name, pArgs->pkg);
354 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, nullptr, err);
372 * If the pkg name is longer than the field, then either do not load the converter
405 result = uprv_strcmp(strippedName, cnvNameType[mid].name);
456 sanity = ucnv_getSharedConverterData (data->staticData->name);
459 UCNV_DEBUG_LOG("put:overwrite!",data->staticData->name,sanity);
461 UCNV_DEBUG_LOG("put:chk",data->staticData->name,sanity);
468 (void*) data->staticData->name, /* Okay to cast away const as long as
472 UCNV_DEBUG_LOG("put", data->staticData->name,data);
476 /* Look up a converter name in the shared data cache. */
479 * @param name The name of the shared data
483 ucnv_getSharedConverterData(const char *name)
494 rc = (UConverterSharedData*)uhash_get(SHARED_DATA_HASHTABLE, name);
495 UCNV_DEBUG_LOG("get",name,rc);
515 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "unload converter %s shared data %p", deadSharedData->staticData->name, deadSharedData);
555 mySharedConverterData = ucnv_getSharedConverterData(pArgs->name);
620 * The name without options will be copied to pPieces->cnvName.
635 pArgs->name=inName;
639 /* copy the converter name itself to cnvName */
642 *err = U_ILLEGAL_ARGUMENT_ERROR; /* bad name */
650 pArgs->name=pPieces->cnvName;
652 /* parse options. No more name copying should occur. */
670 *err=U_ILLEGAL_ARGUMENT_ERROR; /* bad name */
692 /* add processing for new options here with another } else if(uprv_strncmp(inName, "option-name=", XX)==0) { */
748 pArgs->name = converterName;
752 /* In case "name" is nullptr we want to open the default converter. */
755 pArgs->name = "UTF-8";
758 /* Call ucnv_getDefaultName first to query the name from the OS. */
759 pArgs->name = ucnv_getDefaultName();
760 if (pArgs->name == nullptr) {
767 /* the default converter name is already canonical */
772 pArgs->name = "UTF-8";
776 /* separate the converter name from the options */
779 /* Very bad name used. */
783 /* get the canonical converter name */
784 pArgs->name = ucnv_io_getConverterName(pArgs->name, &mayContainOption, &internalErrorCode);
785 if (U_FAILURE(internalErrorCode) || pArgs->name == nullptr) {
787 * set the input name in case the converter was added
790 pArgs->name = pPieces->cnvName;
796 /* separate the converter name from the options */
797 if(mayContainOption && pArgs->name != pPieces->cnvName) {
798 parseConverterOptions(pArgs->name, pPieces, pArgs, err);
803 mySharedConverterData = (UConverterSharedData *)getAlgorithmicTypeFromName(pArgs->name);
908 stackArgs.name = "";
942 /* Very bad name used. */
1083 UCNV_DEBUG_LOG("del",mySharedData->staticData->name,mySharedData);
1164 /* default converter name --------------------------------------------------- */
1168 Copy the canonical converter name.
1176 Since the name is a returned via ucnv_getDefaultName without copying,
1180 internalSetName(const char *name, UErrorCode *status) {
1183 int32_t length=(int32_t)(uprv_strlen(name));
1184 UBool containsOption = (UBool)(uprv_strchr(name, UCNV_OPTION_SEP_CHAR) != nullptr);
1187 stackArgs.name = name;
1192 parseConverterOptions(name, &stackPieces, &stackArgs, status);
1197 algorithmicSharedData = getAlgorithmicTypeFromName(stackArgs.name);
1203 uprv_memcpy(gDefaultConverterNameBuffer, name, length);
1223 * setting the name.
1233 const char *name;
1241 name = gDefaultConverterName;
1243 if(name==nullptr) {
1247 name = uprv_getDefaultCodepage();
1249 /* if the name is there, test it out and get the canonical name with options */
1250 if(name != nullptr) {
1251 cnv = ucnv_open(name, &errorCode);
1253 name = ucnv_getName(cnv, &errorCode);
1257 if(name == nullptr || name[0] == 0
1259 || uprv_strlen(name)>=sizeof(gDefaultConverterNameBuffer))
1263 name = "US-ASCII";
1266 name = "ibm-1047_P100-1995" UCNV_SWAP_LFNL_OPTION_STRING;
1268 name = "ibm-37_P100-1995";
1272 internalSetName(name, &errorCode);
1274 /* The close may make the current name go away. */
1278 return name;
1297 const char *name = nullptr;
1299 /* if the name is there, test it out and get the canonical name with options */
1302 name = ucnv_getName(cnv, &errorCode);
1305 if(U_SUCCESS(errorCode) && name!=nullptr) {
1306 internalSetName(name, &errorCode);
1310 /* The close may make the current name go away. */
1410 ds->swapInvChars(ds, inStaticData->name, (int32_t)uprv_strlen(inStaticData->name),
1411 outStaticData->name, pErrorCode);
1413 udata_printError(ds, "ucnv_swap(): error swapping converter name\n");
1547 * contains a base name instead of normal base table data
1550 /* swap the base name, between the header and the extension data */