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