mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibRegex+LibUnicode: Add unicode string properties
This commit is contained in:
parent
8c8961171c
commit
7ce4abe330
Notes:
github-actions[bot]
2025-10-24 17:26:08 +00:00
Author: https://github.com/aplefull
Commit: 7ce4abe330
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6545
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
6 changed files with 139 additions and 40 deletions
|
|
@ -304,6 +304,23 @@ bool is_ecma262_property(Property property)
|
|||
}
|
||||
}
|
||||
|
||||
// https://tc39.es/ecma262/#table-binary-unicode-properties-of-strings
|
||||
bool is_ecma262_string_property(Property property)
|
||||
{
|
||||
switch (property.value()) {
|
||||
case UCHAR_BASIC_EMOJI:
|
||||
case UCHAR_EMOJI_KEYCAP_SEQUENCE:
|
||||
case UCHAR_RGI_EMOJI:
|
||||
case UCHAR_RGI_EMOJI_FLAG_SEQUENCE:
|
||||
case UCHAR_RGI_EMOJI_TAG_SEQUENCE:
|
||||
case UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE:
|
||||
case UCHAR_RGI_EMOJI_ZWJ_SEQUENCE:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Optional<Script> script_from_string(StringView script)
|
||||
{
|
||||
static auto script_names = []() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue