Lines Matching defs:Converter
17 * converter name alias table to cnvalias.dat .
52 /* The combined tag and converter count can affect the number of lists
60 /* The maximum number of aliases that a standard tag/converter combination can have.
106 uint16_t converter; /* Index into stringStore */
108 } Converter;
110 static Converter converters[MAX_CONV_COUNT];
166 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName);
169 addConverter(const char *converter);
184 addTaggedAlias(uint16_t tag, const char *alias, uint16_t converter);*/
299 /* write the table of aliases based on a tag/converter name combination */
359 fprintf(stderr, "%s:%d: error: alias needs to start with a converter name\n", path, lineNum);
414 char *converter, *alias;
428 /* get the converter name */
435 /* store the converter name */
437 converter=allocString(&stringBlock, line+start, length);
439 /* add the converter to the converter table */
440 cnv=addConverter(converter);
468 /* add the converter as its own alias to the alias table */
469 alias = converter;
478 /* add the alias/converter pair to the alias table */
569 addTaggedAlias(uint16_t tag, const char *alias, uint16_t converter) {
570 tags[tag].aliases[converter] = alias;
655 addAlias(const char *alias, uint16_t standard, uint16_t converter, UBool defaultName) {
664 if(converter>=MAX_CONV_COUNT) {
665 fprintf(stderr, "%s:%d: error: too many converter names\n", path, lineNum);
668 aliasList = &tags[standard].aliasList[converter];
676 fprintf(stderr, "%s:%d: error: too many aliases for alias %s and converter %s\n", path,
677 lineNum, alias, GET_ALIAS_STR(converters[converter].converter));
682 if (standard == ALL_TAG_NUM && GET_ALIAS_STR(converters[converter].converter) != alias) {
684 be discarded when the alias is a default converter. Options should
685 only be on a converter and not an alias. */
706 if (idx == converter) {
708 * (alias, standard) duplicates are harmless if they map to the same converter.
713 fprintf(stderr, "%s:%d: warning: duplicate aliases %s and %s found for standard %s and converter %s\n", path,
716 GET_ALIAS_STR(converters[converter].converter));
719 fprintf(stderr, "%s:%d: warning: duplicate aliases %s and %s found for standard tag %s between converter %s and converter %s\n", path,
722 GET_ALIAS_STR(converters[converter].converter),
723 GET_ALIAS_STR(converters[idx].converter));
730 /* Check for duplicate default aliases for this converter on all tags */
734 if (tags[idx].aliasList[converter].aliases) {
735 uint16_t aliasNum = tags[idx].aliasList[converter].aliases[0];
739 fprintf(stderr, "%s:%d: warning: duplicate alias %s found for converter %s and standard tag %s\n", path,
740 lineNum, alias, GET_ALIAS_STR(converters[converter].converter), GET_TAG_STR(tags[standard].tag));
758 fprintf(stderr, "%s:%d: error: Alias %s and %s cannot both be the default alias for standard tag %s and converter %s\n", path,
763 GET_ALIAS_STR(converters[converter].converter));
770 /* aliasList->converter = converter;*/
772 converters[converter].totalAliasCount++; /* One more to the column */
779 addConverter(const char *converter) {
787 if (ucnv_compareNames(converter, GET_ALIAS_STR(converters[idx].converter)) == 0) {
788 fprintf(stderr, "%s:%d: error: duplicate converter %s found!\n", path, lineNum, converter);
794 converters[converterCount].converter = GET_ALIAS_NUM(converter);
867 GET_ALIAS_STR(converters[currConvNum].converter));
880 GET_ALIAS_STR(converters[oldConvNum].converter));
898 /*printf("%s -> %s\n", GET_ALIAS_STR(knownAliases[idx]), GET_ALIAS_STR(converters[currConvNum].converter));*/
900 if (uprv_strchr(GET_ALIAS_STR(converters[currConvNum].converter), UCNV_OPTION_SEP_CHAR) != NULL) {
908 createOneAliasList(uint16_t *aliasArrLists, uint32_t tag, uint32_t converter, uint16_t offset) {
910 AliasList *aliasList = &tags[tag].aliasList[converter];
913 aliasArrLists[tag*converterCount + converter] = 0;
919 aliasArrLists[tag*converterCount + converter] = aliasListsSize;
921 /* printf("tag %s converter %s\n",
923 GET_ALIAS_STR(converters[converter].converter));*/
936 GET_ALIAS_STR(converters[converter].converter));
1004 udata_write32(out, uniqueAliasesSize); /* The preresolved form of mapping an untagged the alias to a converter */
1016 udata_write16(out, (uint16_t)(converters[i].converter + aliasOffset));