mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
LibWeb: Add 'byte-{lower,upper}case' operations from the Infra spec
Usually operations that mirror AOs from the Infra spec are simply part of the underlying data structures in AK directly, but these don't seem generally useful enough to add them as ByteBuffer methods.
This commit is contained in:
parent
3953004e60
commit
1748362e05
3 changed files with 45 additions and 0 deletions
16
Userland/Libraries/LibWeb/Infra/ByteSequences.h
Normal file
16
Userland/Libraries/LibWeb/Infra/ByteSequences.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
|
||||
namespace Web::Infra {
|
||||
|
||||
void byte_lowercase(ByteBuffer&);
|
||||
void byte_uppercase(ByteBuffer&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue