Use the new multi-stage unicode table for wcwidth

This commit is contained in:
Kovid Goyal
2025-03-24 14:20:40 +05:30
parent 7697a1650d
commit 3d0e45ace8
12 changed files with 34 additions and 6719 deletions

View File

@@ -52,3 +52,4 @@ values: consonant {extend|linker}* linker {extend|linker}* */
CharProps char_props_for(char_type ch);
void grapheme_segmentation_reset(GraphemeSegmentationState *s);
bool grapheme_segmentation_step(GraphemeSegmentationState *s, CharProps ch);
static inline int wcwidth_std(CharProps ch) { return (int)ch.shifted_width - 4/*=width_shift*/; }