Entities.h 342 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/StringView.h>
  8. #include <AK/Vector.h>
  9. namespace Web::HTML {
  10. struct EntityMatch {
  11. Vector<u32, 2> code_points;
  12. StringView entity;
  13. };
  14. Optional<EntityMatch> code_points_from_entity(StringView);
  15. }