mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
AK: Completely remove endianness from Utf16View APIs
These were mostly removed in 7628ddfaf7
.
This removes the few remaining cases, as no callers are providing any
non-host endianness. This is just to prevent weird API dissymmetry
between Utf16View and an upcoming Utf16String.
This commit is contained in:
parent
a0eb47e2fc
commit
c17b067e1d
Notes:
github-actions[bot]
2025-07-03 13:53:29 +00:00
Author: https://github.com/trflynn89
Commit: c17b067e1d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5228
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/shannonbooth
2 changed files with 15 additions and 49 deletions
|
@ -7,7 +7,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/Endian.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/Format.h>
|
||||
#include <AK/Forward.h>
|
||||
|
@ -28,9 +27,9 @@ struct Utf16ConversionResult {
|
|||
Utf16Data data;
|
||||
size_t code_point_count;
|
||||
};
|
||||
ErrorOr<Utf16ConversionResult> utf8_to_utf16(StringView, Endianness = Endianness::Host);
|
||||
ErrorOr<Utf16ConversionResult> utf8_to_utf16(Utf8View const&, Endianness = Endianness::Host);
|
||||
ErrorOr<Utf16ConversionResult> utf32_to_utf16(Utf32View const&, Endianness = Endianness::Host);
|
||||
ErrorOr<Utf16ConversionResult> utf8_to_utf16(StringView);
|
||||
ErrorOr<Utf16ConversionResult> utf8_to_utf16(Utf8View const&);
|
||||
ErrorOr<Utf16ConversionResult> utf32_to_utf16(Utf32View const&);
|
||||
|
||||
[[nodiscard]] bool validate_utf16_le(ReadonlyBytes);
|
||||
[[nodiscard]] bool validate_utf16_be(ReadonlyBytes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue