mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:48:12 +00:00
AK+LibJS+LibRegex: Define an alias for UTF-16 string data storage
Instead of writing out "Vector<u16, 1>" everywhere, let's have a name for it.
This commit is contained in:
parent
39bda0073e
commit
425c168ded
10 changed files with 37 additions and 34 deletions
|
@ -180,7 +180,7 @@ void PrimitiveString::resolve_rope_if_needed() const
|
|||
auto const& lhs_string = m_lhs->utf16_string();
|
||||
auto const& rhs_string = m_rhs->utf16_string();
|
||||
|
||||
Vector<u16, 1> combined;
|
||||
Utf16Data combined;
|
||||
combined.ensure_capacity(lhs_string.length_in_code_units() + rhs_string.length_in_code_units());
|
||||
combined.extend(lhs_string.string());
|
||||
combined.extend(rhs_string.string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue