1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 20:27:35 +00:00
serenity/Userland/Libraries/LibWeb/Infra
Timothy Flynn c3abb1396c LibJS+LibWeb: Convert string view PrimitiveString instances to String
First, this adds an overload of PrimitiveString::create for StringView.
This overload will throw an OOM completion if creating a String fails.
This is not only a bit more convenient, but it also ensures at compile
time that all PrimitiveString::create(string_view) invocations will be
handled as String and OOM-aware.

Next, this wraps all invocations to PrimitiveString::create(string_view)
with MUST_OR_THROW_OOM.

A small PrimitiveString::create(DeprecatedFlyString) overload also had
to be added to disambiguate between the StringView and DeprecatedString
overloads.
2023-02-09 17:13:33 +00:00
..
Base64.cpp LibWeb: Remove all whitespace from input in decode_forgiving_base64 2023-01-10 17:54:01 +00:00
Base64.h AK+LibWeb: Move decode forgiving base64 under Web::Infra namespace 2023-01-10 17:54:01 +00:00
ByteSequences.cpp LibWeb: Add 'byte-{lower,upper}case' operations from the Infra spec 2022-07-14 00:42:26 +01:00
ByteSequences.h LibWeb: Add 'byte-{lower,upper}case' operations from the Infra spec 2022-07-14 00:42:26 +01:00
CharacterTypes.h LibWeb: Replace incorrect uses of String::trim_whitespace() 2022-10-02 21:32:49 +02:00
JSON.cpp LibJS+LibWeb: Convert string view PrimitiveString instances to String 2023-02-09 17:13:33 +00:00
JSON.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Strings.cpp AK+Everywhere: Make UTF-8 and UTF-32 to UTF-16 converters fallible 2023-01-08 12:13:15 +01:00
Strings.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00