From 6af9bf1a1e7febccd6560d56531dc6a4e50489d4 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 25 Aug 2022 08:53:40 -0400 Subject: [PATCH] LibUnicode: Fix compilation when ENABLE_UNICODE_DATABASE_DOWNLOAD is OFF --- Userland/Libraries/LibUnicode/NumberFormat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibUnicode/NumberFormat.cpp b/Userland/Libraries/LibUnicode/NumberFormat.cpp index 38adf51c329..247494ebadd 100644 --- a/Userland/Libraries/LibUnicode/NumberFormat.cpp +++ b/Userland/Libraries/LibUnicode/NumberFormat.cpp @@ -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 augment_currency_format_pattern([[maybe_unused]] StringView currency_display, [[maybe_unused]] StringView base_pattern) @@ -106,7 +108,7 @@ Optional augment_currency_format_pattern([[maybe_unused]] StringView cur } // https://unicode.org/reports/tr35/tr35-numbers.html#83-range-pattern-processing -Optional augment_range_pattern(StringView range_separator, StringView lower, StringView upper) +Optional 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 = [&]() {