2020-05-28 06:44:19 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-05-28 06:44:19 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
|
|
|
|
|
namespace Web {
|
|
|
|
|
namespace HTML {
|
|
|
|
|
|
|
|
|
|
struct EntityMatch {
|
2020-08-05 17:31:20 -03:00
|
|
|
Vector<u32, 2> code_points;
|
2020-05-28 06:44:19 -03:00
|
|
|
StringView entity;
|
|
|
|
|
};
|
|
|
|
|
|
2020-08-05 17:31:20 -03:00
|
|
|
Optional<EntityMatch> code_points_from_entity(const StringView&);
|
2020-05-28 06:44:19 -03:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|