2020-05-28 11:44:19 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
|
2020-05-28 11:44:19 +02:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-05-28 11:44:19 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
|
2023-07-11 13:49:08 -04:00
|
|
|
namespace Web::HTML {
|
2020-05-28 11:44:19 +02:00
|
|
|
|
|
|
|
|
struct EntityMatch {
|
2020-08-05 16:31:20 -04:00
|
|
|
Vector<u32, 2> code_points;
|
2020-05-28 11:44:19 +02:00
|
|
|
StringView entity;
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-11 00:55:02 +01:00
|
|
|
Optional<EntityMatch> code_points_from_entity(StringView);
|
2020-05-28 11:44:19 +02:00
|
|
|
|
|
|
|
|
}
|