mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Everywhere: Remove all KERNEL #define
s
This commit is contained in:
parent
de99dd2c89
commit
5ca2f4dfd7
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/tcl3
Commit: 5ca2f4dfd7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/195
73 changed files with 116 additions and 808 deletions
|
@ -7,14 +7,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/Format.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#ifndef KERNEL
|
||||
# include <AK/ByteString.h>
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
class Utf8View;
|
||||
|
@ -71,14 +68,12 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
explicit Utf8View(ByteString& string)
|
||||
: m_string(string.view())
|
||||
{
|
||||
}
|
||||
|
||||
explicit Utf8View(ByteString&&) = delete;
|
||||
#endif
|
||||
|
||||
enum class AllowSurrogates {
|
||||
Yes,
|
||||
|
@ -238,7 +233,6 @@ private:
|
|||
mutable bool m_have_length { false };
|
||||
};
|
||||
|
||||
#ifndef KERNEL
|
||||
class DeprecatedStringCodePointIterator {
|
||||
public:
|
||||
Optional<u32> next()
|
||||
|
@ -272,7 +266,6 @@ private:
|
|||
ByteString m_string;
|
||||
Utf8CodePointIterator m_it;
|
||||
};
|
||||
#endif
|
||||
|
||||
template<>
|
||||
struct Formatter<Utf8View> : Formatter<StringView> {
|
||||
|
@ -282,9 +275,7 @@ struct Formatter<Utf8View> : Formatter<StringView> {
|
|||
}
|
||||
|
||||
#if USING_AK_GLOBALLY
|
||||
# ifndef KERNEL
|
||||
using AK::DeprecatedStringCodePointIterator;
|
||||
# endif
|
||||
using AK::Utf8CodePointIterator;
|
||||
using AK::Utf8View;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue