summaryrefslogtreecommitdiff
path: root/src/DisplayWidth.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-20Add c0 and c1 control width optionsGravatar Sam Atman1-5/+9
This allows a build of DisplayWidth to give characters in those classes a width, for cases where they'll be printed with a substitute in the final display. It also raises the size of possible characters from an i3 to an i4, to accommodate printing C1s as e.g. <80> or \u{80}.
2024-04-11DisplayWidth: explicitly set width to 2 when VS16 is foundGravatar Tim Culverhouse1-0/+4
Explicitly set the width of an emoji to two when the next codepoint is a VS16 selector. Add unit test for this case. This is essentially the same PR as https://codeberg.org/dude_the_builder/ziglyph/pulls/11
2024-03-27ScriptsData and made all Datas constGravatar Jose Colon Rodriguez1-5/+5
2024-03-27Rename DisplayWidthDataGravatar Jose Colon Rodriguez1-7/+7
2024-02-26Using separate data struct model.Gravatar Jose Colon Rodriguez1-107/+98
2024-02-18center, padLeft, padRight, and wrapGravatar Jose Colon Rodriguez1-45/+248
2024-02-18Testing Ghostty's Utf8Decoder. A bit slowerGravatar Jose Colon Rodriguez1-4/+3
2024-02-18Code point code is now a method not a field.Gravatar Jose Colon Rodriguez1-3/+4
2024-02-18Code point and grapheme are now namespaces.Gravatar Jose Colon Rodriguez1-2/+2
2024-02-17Fixed isAsciiOnly and CodePointIterator ASCII bugsGravatar Jose Colon Rodriguez1-4/+5
2024-02-17display_width tweaksGravatar Jose Colon Rodriguez1-12/+18
2024-02-17isAsciiOnly SIMD tweaksGravatar Jose Colon Rodriguez1-2/+6
2024-02-16SIMD strWidth ASCII optimizationGravatar Jose Colon Rodriguez1-1/+36
2024-02-16display_width with tableGravatar Jose Colon Rodriguez1-0/+111