Make wcswidth useable in a streaming fashion

This commit is contained in:
Kovid Goyal
2020-09-21 13:31:24 +05:30
parent b5007ba276
commit 444080f320
6 changed files with 162 additions and 113 deletions

View File

@@ -512,7 +512,7 @@ def gen_wcwidth() -> None:
p('\t}')
p('\treturn 1;\n}')
p('static bool\nis_emoji_presentation_base(uint32_t code) {')
p('static inline bool\nis_emoji_presentation_base(uint32_t code) {')
p('\tswitch(code) {')
for spec in get_ranges(list(emoji_presentation_bases)):
write_case(spec, p)