summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Infra/ByteSequences.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-07-11 21:44:43 +0100
committerLinus Groh <mail@linusgroh.de>2022-07-14 00:42:26 +0100
commit1748362e05a520986039f25968880260067bf5f7 (patch)
tree29b8734e01b410b8130ab8f8c6cece273b849642 /Userland/Libraries/LibWeb/Infra/ByteSequences.h
parent3953004e609ca6099bdc09d0e118ff083cce2b34 (diff)
downloadserenity-1748362e05a520986039f25968880260067bf5f7.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Infra/ByteSequences.h')
-rw-r--r--Userland/Libraries/LibWeb/Infra/ByteSequences.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Infra/ByteSequences.h b/Userland/Libraries/LibWeb/Infra/ByteSequences.h
new file mode 100644
index 0000000000..aac82e314e
--- /dev/null
+++ b/Userland/Libraries/LibWeb/Infra/ByteSequences.h
@@ -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&);
+
+}