Lines Matching full:alias
222 const char *alias;
223 alias = ucnv_getAlias("utf-8", 0, &err);
226 } else if(strcmp("UTF-8", alias) != 0) {
227 log_err("FAILURE! ucnv_getAlias(\"utf-8\", 0) -> %s instead of UTF-8\n", alias);
231 alias = ucnv_getAlias("utf-8", aliasNum, &err);
234 } else if(strlen(alias) > 20) {
236 log_err("FAILURE! ucnv_getAlias(\"utf-8\", %d) -> alias %s insanely long, corrupt?!\n", aliasNum, alias);
238 log_verbose("alias %d for utf-8: %s\n", aliasNum, alias);
252 alias = ucnv_getAlias("utf-8", aliasNum, &err);
255 } else if(aliases[aliasNum] != alias) {
1169 * Test the converter alias API, specifically the fuzzy matching of
1170 * alias names and the alias table integrity. Make sure each
1171 * converter has at least one alias (itself), and that its listed
1194 const char *alias;
1240 const char *alias;
1241 /* Make sure each alias maps back to the the same list of
1242 aliases. Assume that if alias 0 is the same, the whole
1247 alias = ucnv_getAlias(name, j, &status);
1252 if (alias == NULL) {
1254 "alias[%d]=NULL\n",
1259 mapBack = ucnv_getAlias(alias, 0, &status);
1263 "alias[%d]=\"%s\" -> "
1264 "alias[0]=NULL, exp. \"%s\"\n",
1265 name, j, alias, alias0);
1274 an ambiguous alias, and the other converter has this alias too. */
1276 if (strcmp(ucnv_getAlias(mapBack, (uint16_t)idx, &status), alias) == 0) {
1286 "alias[%d]=\"%s\" -> "
1287 "alias[0]=\"%s\", exp. \"%s\"\n",
1288 name, j, alias, mapBack, alias0);
1300 log_data_err("Couldn't get alias for %s. You probably have no data\n", ISO_2022_NAMES[i]);
1313 log_data_err("Couldn't get alias for %s. You probably have no data\n", UTF8_NAMES[i]);
1328 const char* mapBack = ucnv_getAlias(CONVERTERS_NAMES[i].alias, 0, &status);
1330 log_data_err("Couldn't get alias for %s. You probably have no data\n", CONVERTERS_NAMES[i].name);
1335 CONVERTERS_NAMES[i].alias, mapBack, CONVERTERS_NAMES[i].name);
1342 const char *alias;
1346 alias = ucnv_getStandardName("Shift_JIS", "IBM", &status);
1347 if (alias == NULL || strcmp(alias, "ibm-943") != 0 || status != U_AMBIGUOUS_ALIAS_WARNING) {
1348 log_data_err("FAIL: Didn't get ibm-943 for Shift_JIS {IBM}. Got %s\n", alias);
1351 alias = ucnv_getStandardName("ibm-943", "IANA", &status);
1352 if (alias == NULL || strcmp(alias, "Shift_JIS") != 0 || status != U_AMBIGUOUS_ALIAS_WARNING) {
1353 log_data_err("FAIL: Didn't get Shift_JIS for ibm-943 {IANA}. Got %s\n", alias);
1356 alias = ucnv_getStandardName("ibm-943_P130-2000", "IANA", &status);
1357 if (alias != NULL || status == U_AMBIGUOUS_ALIAS_WARNING) {
1358 log_data_err("FAIL: Didn't get NULL for ibm-943 {IANA}. Got %s\n", alias);