printdata: add the properties to the primary data map

This commit is contained in:
Reece H. Dunn
2017-02-12 08:16:23 +00:00
parent a2193799e4
commit ceda811b12
4 changed files with 9 additions and 22 deletions
+2 -6
View File
@@ -175,10 +175,6 @@ void uprintf(FILE *out, ucd::codepoint_t c, const char *format)
case 'U': // uppercase
uprintf_codepoint(out, ucd::toupper(c), *++format);
break;
case 'W': // whitespace
if (ucd::isspace(c))
fputs("White_Space", out);
break;
}
++format;
break;
@@ -215,7 +211,7 @@ void print_file(FILE *in, const char *format)
{
ucd::codepoint_t c = 0;
while (fget_utf8c(in, c))
uprintf(stdout, c, format ? format : "%pc\t%pH\t%s\t%c\t%Uc\t%Lc\t%Tc\t%W\n");
uprintf(stdout, c, format ? format : "%pc\t%pH\t%s\t%c\t%Uc\t%Lc\t%Tc\t%is\n");
}
int main(int argc, char **argv)
@@ -247,7 +243,7 @@ int main(int argc, char **argv)
else
{
for (ucd::codepoint_t c = 0; c <= 0x10FFFF; ++c)
uprintf(stdout, c, format ? format : "%pH %s %C %c %UH %LH %TH %W\n");
uprintf(stdout, c, format ? format : "%pH %s %C %c %UH %LH %TH %is\n");
}
return 0;
}