Files
bun.sh/test/js/node
Meghan Denny ed339b367d improve Bun.stringWidth's algorithm (#9022)
* improve Bun.stringWidth's algorithm

* add a bunch more tests from string-width package

* make typescript happy

* undo typescript changes

* use better #define check for debug mode

* properly handle latin1 width tests

* support grapheme clusters

* fix trailing newline

* visibleUTF16WidthFn- add fast path for leading ascii

* add firstNonASCII16IgnoreMin

* fix firstNonASCII16CheckMin

* vectorize visibleUTF16WidthFn

* support emoji variation selector

* expose stringWidth in release mode too

* vectorize visibleLatin1Width

* support ambiguousIsNarrow option

* add typescript definition for stringWidth
2024-02-22 19:16:17 -08:00
..
2024-02-19 10:23:31 -08:00
2024-02-04 00:42:40 -08:00
2024-02-19 10:23:31 -08:00
2024-02-19 10:23:31 -08:00
2023-10-30 23:05:32 -07:00
2023-03-07 12:22:34 -08:00
2023-03-07 12:22:34 -08:00
2023-07-28 16:59:46 -07:00