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 |
|