mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
This patch implements a Unicode-safe substring method, which can be used when offset and length should be specified in actual characters instead of bytes. This can be used to mitigate issues where a string is split in the middle of a UTF-8 multi-byte character, which leads to invalid UTF-8. Furthermore, it implements to common shorthands for substring methods which take only an offset and return the substring until the end of the string.
5.9 KiB
5.9 KiB