mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibWeb/Infra: Rename to_ascii_{{lower,upper}_case => {lower,upper}case}
This commit is contained in:
parent
85507b34d7
commit
f65cbeef5c
5 changed files with 12 additions and 12 deletions
|
@ -169,7 +169,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Blob>> Blob::create(JS::Realm& realm, Optio
|
|||
|
||||
// 2. Convert every character in t to ASCII lowercase.
|
||||
if (!type.is_empty())
|
||||
type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lower_case(type));
|
||||
type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lowercase(type));
|
||||
}
|
||||
|
||||
// 4. Return a Blob object referring to bytes as its associated byte sequence, with its size set to the length of bytes, and its type set to the value of t from the substeps above.
|
||||
|
@ -233,7 +233,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Blob>> Blob::slice(Optional<i64> start, Opt
|
|||
// FIXME: 1. If relativeContentType contains any characters outside the range of U+0020 to U+007E, then set relativeContentType to the empty string and return from these substeps.
|
||||
|
||||
// 2. Convert every character in relativeContentType to ASCII lowercase.
|
||||
relative_content_type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lower_case(content_type.value()));
|
||||
relative_content_type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lowercase(content_type.value()));
|
||||
}
|
||||
|
||||
// 4. Let span be max((relativeEnd - relativeStart), 0).
|
||||
|
|
|
@ -55,7 +55,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<File>> File::create(JS::Realm& realm, Vecto
|
|||
|
||||
// 2. Convert every character in t to ASCII lowercase.
|
||||
if (!type.is_empty())
|
||||
type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lower_case(type));
|
||||
type = TRY_OR_THROW_OOM(vm, Infra::to_ascii_lowercase(type));
|
||||
|
||||
// 3. If the lastModified member is provided, let d be set to the lastModified dictionary member. If it is not provided, set d to the current date and time represented as the number of milliseconds since the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).
|
||||
// Note: Since ECMA-262 Date objects convert to long long values representing the number of milliseconds since the Unix Epoch, the lastModified member could be a Date object [ECMA-262].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue