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

LibUnicode: Add public methods to compare and lookup Unicode properties

Adds methods to retrieve a Unicode property from a string and to check
if a code point matches a Unicode property.

Also adds a <LibUnicode/Forward.h> header.
This commit is contained in:
Timothy Flynn 2021-07-28 21:45:09 -04:00 committed by Linus Groh
parent 3f80791ed5
commit f1809db994
4 changed files with 92 additions and 9 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace Unicode {
enum class Condition;
enum class GeneralCategory;
enum class Locale;
enum class Property : u64;
enum class WordBreakProperty;
struct SpecialCasing;
struct UnicodeData;
}