mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 12:01:52 +00:00
AK+Everywhere: Change StringView case conversions to return String
There's a bit of a UTF-8 assumption with this change. But nearly every caller of these methods were immediately creating a String from the resulting ByteString anyways.
This commit is contained in:
parent
05627b6f45
commit
0a256b0a9a
Notes:
github-actions[bot]
2025-04-07 15:45:50 +00:00
Author: https://github.com/trflynn89
Commit: 0a256b0a9a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4253
15 changed files with 57 additions and 56 deletions
|
@ -32,7 +32,7 @@ WebIDL::ExceptionOr<GC::Ref<TextDecoder>> TextDecoder::construct_impl(JS::Realm&
|
|||
// 3. Set this’s encoding to encoding.
|
||||
// https://encoding.spec.whatwg.org/#dom-textdecoder-encoding
|
||||
// The encoding getter steps are to return this’s encoding’s name, ASCII lowercased.
|
||||
auto lowercase_encoding_name = MUST(String::from_byte_string(encoding.value().to_lowercase_string()));
|
||||
auto lowercase_encoding_name = encoding.value().to_ascii_lowercase_string();
|
||||
|
||||
// 4. If options["fatal"] is true, then set this’s error mode to "fatal".
|
||||
auto fatal = options.value_or({}).fatal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue