mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
Keep the primitive string that segment() creates alongside the UTF-16 buffer used by LibUnicode. Segment data objects can then return lazy Substring instances for "segment" and reuse the original PrimitiveString for "input" instead of copying both strings. Add a rope-backed UTF-16 segmenter test that exercises both containing() and iterator results.
4.7 KiB
4.7 KiB