mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-2427 small improvement to parsing DerivedBidiClass.txt
X-SVN-Rev: 11469
This commit is contained in:
parent
9417adfb33
commit
216d68b82d
1 changed files with 8 additions and 5 deletions
|
@ -676,13 +676,16 @@ bidiClassLineFn(void *context,
|
|||
for(; start<limit; ++start) {
|
||||
props32=getProps(start);
|
||||
|
||||
/* ignore if this bidi class is already set */
|
||||
if(value==GET_BIDI_CLASS(props32)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* ignore old bidi class, set only for unassigned code points (Cn) */
|
||||
if(GET_CATEGORY(props32)!=0) {
|
||||
if(value!=GET_BIDI_CLASS(props32)) {
|
||||
fprintf(stderr, "genprops error: different bidi class in DerivedBidiClass.txt field 1 at %s\n", s);
|
||||
exit(U_PARSE_ERROR);
|
||||
}
|
||||
continue;
|
||||
/* error if this one contradicts what we parsed from UnicodeData.txt */
|
||||
fprintf(stderr, "genprops error: different bidi class in DerivedBidiClass.txt field 1 at %s\n", s);
|
||||
exit(U_PARSE_ERROR);
|
||||
}
|
||||
|
||||
/* remove whatever bidi class was set before */
|
||||
|
|
Loading…
Add table
Reference in a new issue