mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09: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. |
||
---|---|---|
.. | ||
CharacterTypes.cpp | ||
CharacterTypes.h | ||
CMakeLists.txt | ||
Collator.cpp | ||
Collator.h | ||
CurrencyCode.cpp | ||
CurrencyCode.h | ||
DateTimeFormat.cpp | ||
DateTimeFormat.h | ||
DisplayNames.cpp | ||
DisplayNames.h | ||
DurationFormat.cpp | ||
DurationFormat.h | ||
Forward.h | ||
ICU.cpp | ||
ICU.h | ||
IDNA.cpp | ||
IDNA.h | ||
ListFormat.cpp | ||
ListFormat.h | ||
Locale.cpp | ||
Locale.h | ||
Normalize.cpp | ||
Normalize.h | ||
NumberFormat.cpp | ||
NumberFormat.h | ||
PartitionRange.h | ||
PluralRules.cpp | ||
PluralRules.h | ||
RelativeTimeFormat.cpp | ||
RelativeTimeFormat.h | ||
Segmenter.cpp | ||
Segmenter.h | ||
String.cpp | ||
TimeZone.cpp | ||
TimeZone.h | ||
UnicodeKeywords.cpp | ||
UnicodeKeywords.h |