mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-322 Skip the MIME tag for the canonical names...
X-SVN-Rev: 2118
This commit is contained in:
parent
cd35abcaaa
commit
1a9b1ef2ee
1 changed files with 16 additions and 12 deletions
|
@ -237,18 +237,6 @@ parseLine(const char *line) {
|
|||
}
|
||||
limit=pos;
|
||||
|
||||
if (line[pos] == '{') { /* skip over tags */
|
||||
++pos;
|
||||
while (line[pos] && line[pos] != '}' && line[pos] != '#') {
|
||||
++pos;
|
||||
}
|
||||
if (line[pos] == '}') {
|
||||
++pos;
|
||||
} else {
|
||||
fprintf(stderr, "unterminated tag list: %s\n", line);
|
||||
exit(U_PARSE_ERROR);
|
||||
}
|
||||
}
|
||||
/* store the converter name */
|
||||
length=limit-start;
|
||||
converter=allocString(length+1);
|
||||
|
@ -261,6 +249,22 @@ parseLine(const char *line) {
|
|||
/* add the converter as its own alias to the alias table */
|
||||
addAlias(converter, cnv);
|
||||
|
||||
/* skip white space */
|
||||
while(line[pos]!=0 && isspace((unsigned char)line[pos])) {
|
||||
++pos;
|
||||
}
|
||||
if (line[pos] == '{') { /* skip over tags */
|
||||
++pos;
|
||||
while (line[pos] && line[pos] != '}' && line[pos] != '#') {
|
||||
++pos;
|
||||
}
|
||||
if (line[pos] == '}') {
|
||||
++pos;
|
||||
} else {
|
||||
fprintf(stderr, "unterminated tag list: %s\n", line);
|
||||
exit(U_PARSE_ERROR);
|
||||
}
|
||||
}
|
||||
/* get all the real aliases */
|
||||
for(;;) {
|
||||
/* skip white space */
|
||||
|
|
Loading…
Add table
Reference in a new issue