check -> is_printable

This commit is contained in:
Victor Zverovich
2021-08-22 13:23:38 -07:00
parent a7f280765c
commit a76031e11d
2 changed files with 17 additions and 16 deletions

View File

@@ -180,14 +180,14 @@ inline auto is_printable(uint32_t cp) -> bool {\
print("""\
auto lower = static_cast<uint16_t>(cp);
if (cp < 0x10000) {
return check(lower, singletons0_upper,
sizeof(singletons0_upper) / sizeof(*singletons0_upper),
singletons0_lower, normal0, sizeof(normal0));
return is_printable(lower, singletons0_upper,
sizeof(singletons0_upper) / sizeof(*singletons0_upper),
singletons0_lower, normal0, sizeof(normal0));
}
if (cp < 0x20000) {
return check(lower, singletons1_upper,
sizeof(singletons1_upper) / sizeof(*singletons1_upper),
singletons1_lower, normal1, sizeof(normal1));
return is_printable(lower, singletons1_upper,
sizeof(singletons1_upper) / sizeof(*singletons1_upper),
singletons1_lower, normal1, sizeof(normal1));
}\
""")
for a, b in extra: