ladybird/Userland/Libraries/LibUnicode/Forward.h
Timothy Flynn 9ae7ac4c87 LibUnicode: Generate complex Unicode locale alias matching
Most alias substitutions are "simple", meaning that alias matching is
done by examining a single locale subtag. However, there are a handful
of "complex" aliases where matching is done by examining multiple
subtags. For example, the variant subtag "lojban" causes the locale
"art-lojban" to be canonicalized to "jbo", but only when the language
subtag is "art" (i.e. this should not occur for the locale "en-lojban").

This generates a method to perform complex alias matching.
2021-09-01 14:14:47 +01:00

26 lines
449 B
C++

/*
* 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 : u8;
enum class GeneralCategory : u8;
enum class Language : u8;
enum class Locale : u16;
enum class Property : u8;
enum class Script : u8;
enum class Territory : u8;
enum class WordBreakProperty : u8;
struct LanguageID;
struct SpecialCasing;
struct UnicodeData;
}