mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
In the UTF-8 implementation, this prevents out-of-bounds access of the underlying text data, as the ICU macro would essentially do something akin to `text[text.length()]`. The UTF-16 implementation already checks for out-of-bounds, but would previously return 0. We now return an empty Optional in both impls. This doesn't affect LibJS (the user of the UTF-16 impl), as it already does bounds checking before invoking LibUnicode APIs. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| TestDisplayNames.cpp | ||
| TestIDNA.cpp | ||
| TestLocale.cpp | ||
| TestSegmenter.cpp | ||
| TestTimeZone.cpp | ||
| TestUnicodeCharacterTypes.cpp | ||
| TestUnicodeNormalization.cpp | ||