LibUnicode: Fix compilation when ENABLE_UNICODE_DATABASE_DOWNLOAD is OFF

This commit is contained in:
Timothy Flynn 2022-08-25 08:53:40 -04:00 committed by Linus Groh
parent f488726c82
commit 6af9bf1a1e
Notes: sideshowbarker 2024-07-17 07:45:21 +09:00

View File

@ -50,6 +50,7 @@ String replace_digits_for_number_system(StringView system, StringView number)
return builder.build();
}
#if ENABLE_UNICODE_DATA
static u32 last_code_point(StringView string)
{
Utf8View utf8_string { string };
@ -60,6 +61,7 @@ static u32 last_code_point(StringView string)
return code_point;
}
#endif
// https://www.unicode.org/reports/tr35/tr35-numbers.html#Currencies
Optional<String> augment_currency_format_pattern([[maybe_unused]] StringView currency_display, [[maybe_unused]] StringView base_pattern)
@ -106,7 +108,7 @@ Optional<String> augment_currency_format_pattern([[maybe_unused]] StringView cur
}
// https://unicode.org/reports/tr35/tr35-numbers.html#83-range-pattern-processing
Optional<String> augment_range_pattern(StringView range_separator, StringView lower, StringView upper)
Optional<String> augment_range_pattern([[maybe_unused]] StringView range_separator, [[maybe_unused]] StringView lower, [[maybe_unused]] StringView upper)
{
#if ENABLE_UNICODE_DATA
auto range_pattern_with_spacing = [&]() {