Add tests for ucd::isspace.

This commit is contained in:
Reece H. Dunn
2012-12-24 15:26:36 +00:00
parent cc9abdff12
commit 3f9f6c0623
3 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -69,7 +69,8 @@ int main()
ucd::codepoint_t upper = ucd::toupper(c);
ucd::codepoint_t lower = ucd::tolower(c);
ucd::codepoint_t title = ucd::totitle(c);
printf("%06X %s %06X %06X %06X\n", c, category, upper, lower, title);
const char *whitespace = ucd::isspace(c) ? "White_Space" : "";
printf("%06X %s %06X %06X %06X %s\n", c, category, upper, lower, title, whitespace);
}
return 0;
}