1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:28:11 +00:00

LibWeb: Move Token and Tokenizer into Parser namespace

This commit is contained in:
Sam Atkins 2022-04-12 15:10:08 +01:00 committed by Andreas Kling
parent 7272997b1b
commit bf786d66b1
8 changed files with 52 additions and 51 deletions

View file

@ -13,6 +13,8 @@
#include <LibWeb/CSS/Parser/Tokenizer.h>
#include <math.h>
namespace Web::CSS::Parser {
// U+FFFD REPLACEMENT CHARACTER (<28>)
#define REPLACEMENT_CHARACTER 0xFFFD
static constexpr u32 TOKENIZER_EOF = 0xFFFFFFFF;
@ -190,8 +192,6 @@ static inline bool is_E(u32 code_point)
return code_point == 0x45;
}
namespace Web::CSS {
Tokenizer::Tokenizer(StringView input, String const& encoding)
{
auto* decoder = TextCodec::decoder_for(encoding);