mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
AK+LibJS: Implement String.from{CharCode,CodePoint} using UTF-16 strings
Most of String.prototype and RegExp.prototype is implemented with UTF-16 so this is to prevent extra copying of the string data.
This commit is contained in:
parent
b6ff7f4fcc
commit
70080feab2
3 changed files with 31 additions and 18 deletions
|
@ -18,6 +18,7 @@ namespace AK {
|
|||
Vector<u16> utf8_to_utf16(StringView const&);
|
||||
Vector<u16> utf8_to_utf16(Utf8View const&);
|
||||
Vector<u16> utf32_to_utf16(Utf32View const&);
|
||||
void code_point_to_utf16(Vector<u16>&, u32);
|
||||
|
||||
class Utf16View;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue