Lines Matching refs:alias

19 *   converter name alias table to cnvalias.dat .
45 /* TODO: Need to check alias name length is less than UCNV_MAX_CONVERTER_NAME_LENGTH */
74 #define DATA_TYPE "icu" /* ICU alias table */
171 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName);
180 addToKnownAliases(const char *alias);
189 addTaggedAlias(uint16_t tag, const char *alias, uint16_t converter);*/
251 "\t-v or --verbose prints out extra information about the alias table\n"
366 fprintf(stderr, "%s:%d: error: cannot start an alias with a space\n", path, lineNum-1);
370 fprintf(stderr, "%s:%d: error: alias needs to start with a converter name\n", path, lineNum);
380 fprintf(stderr, "%s:%d: error: alias table needs to start a list of standard tags\n", path, lineNum);
425 char *converter, *alias;
464 /* is there no more alias name on this line? */
469 /* get an alias name */
476 /* store the alias name */
479 /* add the converter as its own alias to the alias table */
480 alias = converter;
481 addAlias(alias, ALL_TAG_NUM, cnv, true);
484 alias=allocString(&stringBlock, line+start, length);
485 addAlias(alias, ALL_TAG_NUM, cnv, false);
487 addToKnownAliases(alias);
489 /* add the alias/converter pair to the alias table */
490 /* addAlias(alias, 0, cnv, false);*/
510 addAlias(alias, tag, cnv, (UBool)(line[limit-1] == '*'));
525 addAlias(alias, EMPTY_TAG_NUM, cnv, (UBool)(tags[0].aliasList[cnv].aliasCount == 0));
563 fprintf(stderr, "%s:%d: error: Tag \"%s\" is not declared at the beginning of the alias table.\n",
568 fprintf(stderr, "%s:%d: warning: Tag \"%s\" was added to the list of standards because it was not declared at beginning of the alias table.\n",
580 addTaggedAlias(uint16_t tag, const char *alias, uint16_t converter) {
581 tags[tag].aliases[converter] = alias;
629 addToKnownAliases(const char *alias) {
633 uint16_t num = GET_ALIAS_NUM(alias);
635 && uprv_strcmp(alias, GET_ALIAS_STR(knownAliases[idx])) == 0)
637 fprintf(stderr, "%s:%d: warning: duplicate alias %s and %s found\n", path,
638 lineNum, alias, GET_ALIAS_STR(knownAliases[idx]));
643 && ucnv_compareNames(alias, GET_ALIAS_STR(knownAliases[idx])) == 0)
646 fprintf(stderr, "%s:%d: information: duplicate alias %s and %s found\n", path,
647 lineNum, alias, GET_ALIAS_STR(knownAliases[idx]));
660 return knownAliases[knownAliasesCount++] = GET_ALIAS_NUM(alias);
667 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName) {
682 if (strchr(alias, '}')) {
688 fprintf(stderr, "%s:%d: error: too many aliases for alias %s and converter %s\n", path,
689 lineNum, alias, GET_ALIAS_STR(converters[converter].converter));
694 if (standard == ALL_TAG_NUM && GET_ALIAS_STR(converters[converter].converter) != alias) {
696 be discarded when the alias is a default converter. Options should
697 only be on a converter and not an alias. */
698 if (uprv_strchr(alias, UCNV_OPTION_SEP_CHAR) != 0)
700 fprintf(stderr, "warning(line %d): alias %s contains a \""UCNV_OPTION_SEP_STRING"\". Options are parsed at run-time and do not need to be in the alias table.\n",
701 lineNum, alias);
703 if (uprv_strchr(alias, UCNV_VALUE_SEP_CHAR) != 0)
705 fprintf(stderr, "warning(line %d): alias %s contains an \""UCNV_VALUE_SEP_STRING"\". Options are parsed at run-time and do not need to be in the alias table.\n",
706 lineNum, alias);
716 && ucnv_compareNames(alias, GET_ALIAS_STR(aliasNum)) == 0)
720 * (alias, standard) duplicates are harmless if they map to the same converter.
721 * Only print a warning in verbose mode, or if the alias is a precise duplicate,
724 if (verbose || 0 == uprv_strcmp(alias, GET_ALIAS_STR(aliasNum))) {
726 lineNum, alias, GET_ALIAS_STR(aliasNum),
732 lineNum, alias, GET_ALIAS_STR(aliasNum),
749 && ucnv_compareNames(alias, GET_ALIAS_STR(aliasNum)) == 0)
751 fprintf(stderr, "%s:%d: warning: duplicate alias %s found for converter %s and standard tag %s\n", path,
752 lineNum, alias, GET_ALIAS_STR(converters[converter].converter), GET_TAG_STR(tags[standard].tag));
770 fprintf(stderr, "%s:%d: error: Alias %s and %s cannot both be the default alias for standard tag %s and converter %s\n", path,
772 alias,
778 aliasList->aliases[0] = GET_ALIAS_NUM(alias);
780 aliasList->aliases[aliasList->aliasCount++] = GET_ALIAS_NUM(alias);
812 /* resolve this alias based on the prioritization of the standard tags. */
814 resolveAliasToConverter(uint16_t alias, uint16_t *tagNum, uint16_t *converterNum) {
821 if (aliasNum == alias) {
835 if (aliasNum == alias) {
844 fprintf(stderr, "%s: warning: alias %s not found\n",
846 GET_ALIAS_STR(alias));
882 printf(" (alias conflict)");
895 printf(" (alias conflict)");
947 fprintf(stderr, "%s: warning: tag %s does not have a default alias for %s\n",
955 fprintf(stderr, "%s: error: Too many alias lists\n", path);
1018 udata_write32(out, uniqueAliasesSize); /* The preresolved form of mapping an untagged the alias to a converter */
1059 /* Write any options for the alias table. */