mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-7264 stderr output for STD3 status changes
X-SVN-Rev: 28563
This commit is contained in:
parent
4e91247beb
commit
00a996d08f
1 changed files with 6 additions and 3 deletions
|
@ -301,12 +301,14 @@ main(int argc, const char *argv[]) {
|
|||
nfkc_cf->normalize(cString, mapping, errorCode);
|
||||
} else if(ignoredSet.contains(c)) {
|
||||
status=IGNORED;
|
||||
} else if(disallowedSTD3Set.contains(c)) {
|
||||
status=DISALLOWED_STD3_VALID;
|
||||
} else if(validSet.contains(c)) {
|
||||
if( nfd->getDecomposition(c, nfdString) &&
|
||||
if(disallowedSTD3Set.contains(c)) {
|
||||
fprintf(stderr, "U+%04lX valid -> disallowed_STD3_valid: itself not STD3\n", (long)c);
|
||||
status=DISALLOWED_STD3_VALID;
|
||||
} else if( nfd->getDecomposition(c, nfdString) &&
|
||||
disallowedSTD3Set.containsSome(nfdString)
|
||||
) {
|
||||
fprintf(stderr, "U+%04lX valid -> disallowed_STD3_valid: NFD not wholly STD3\n", (long)c);
|
||||
status=DISALLOWED_STD3_VALID;
|
||||
} else {
|
||||
status=VALID;
|
||||
|
@ -315,6 +317,7 @@ main(int argc, const char *argv[]) {
|
|||
cString.setTo(c);
|
||||
nfkc_cf->normalize(cString, mapping, errorCode);
|
||||
if(disallowedSTD3Set.containsSome(mapping)) {
|
||||
fprintf(stderr, "U+%04lX mapped -> disallowed_STD3_mapped\n", (long)c);
|
||||
status=DISALLOWED_STD3_MAPPED;
|
||||
} else {
|
||||
status=MAPPED;
|
||||
|
|
Loading…
Add table
Reference in a new issue