1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:24:57 +00:00

LibJS+LibUnicode: Make static const Utf8View variables constexpr

This commit is contained in:
Idan Horowitz 2022-01-16 20:34:09 +02:00 committed by Linus Groh
parent 4774bed589
commit 877ae85017
2 changed files with 2 additions and 2 deletions

View file

@ -308,7 +308,7 @@ static ErrorOr<void> parse_number_system_digits(String core_supplemental_path, U
static String parse_identifiers(String pattern, StringView replacement, UnicodeLocaleData& locale_data, NumberFormat& format)
{
static Utf8View whitespace { "\u0020\u00a0\u200f"sv };
static constexpr Utf8View whitespace { "\u0020\u00a0\u200f"sv };
while (true) {
Utf8View utf8_pattern { pattern };