1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibUnicode: Implement grammar validators for Unicode TR-35

ECMA-402 requires validating user input against the EBNF grammar for
Unicode locales described in TR-35: https://www.unicode.org/reports/tr35

This commit adds validators for that grammar, as well as other helper to
e.g. canonicalize a locale string.
This commit is contained in:
Timothy Flynn 2021-08-24 22:15:38 -04:00 committed by Linus Groh
parent 3127454642
commit b7a95cba65
4 changed files with 313 additions and 0 deletions

View file

@ -3,6 +3,7 @@ include(unicode_data.cmake)
SET(SOURCES
${UNICODE_DATA_SOURCES}
CharacterTypes.cpp
Locale.cpp
)
serenity_lib(LibUnicode unicode)