mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
LibUnicode: Port Intl.PluralRules to UTF-16 strings
This commit is contained in:
parent
6fe0e13474
commit
abcb2d42bc
Notes:
github-actions[bot]
2025-07-24 08:41:14 +00:00
Author: https://github.com/trflynn89
Commit: abcb2d42bc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5581
5 changed files with 17 additions and 9 deletions
|
@ -169,6 +169,11 @@ Utf16String icu_string_to_utf16_string(UChar const* string, i32 length)
|
|||
return Utf16String::from_utf16_without_validation({ string, static_cast<size_t>(length) });
|
||||
}
|
||||
|
||||
Utf16View icu_string_to_utf16_view(icu::UnicodeString const& string)
|
||||
{
|
||||
return { string.getBuffer(), static_cast<size_t>(string.length()) };
|
||||
}
|
||||
|
||||
UCharIterator icu_string_iterator(Utf16View const& string)
|
||||
{
|
||||
UCharIterator iterator;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue