AK+Everywhere: Rename Utf16View::to_utf8 to to_deprecated_string

A subsequent commit will add to_utf8 back to create an AK::String.
This commit is contained in:
Timothy Flynn
2023-01-08 18:46:02 -05:00
committed by Linus Groh
parent 2a70ea3ee7
commit d0403ec14f
8 changed files with 16 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ u32 Utf16View::decode_surrogate_pair(u16 high_surrogate, u16 low_surrogate)
return ((high_surrogate - high_surrogate_min) << 10) + (low_surrogate - low_surrogate_min) + first_supplementary_plane_code_point;
}
ErrorOr<DeprecatedString> Utf16View::to_utf8(AllowInvalidCodeUnits allow_invalid_code_units) const
ErrorOr<DeprecatedString> Utf16View::to_deprecated_string(AllowInvalidCodeUnits allow_invalid_code_units) const
{
StringBuilder builder;