mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibUnicode: Fix compilation when ENABLE_UNICODE_DATABASE_DOWNLOAD is OFF
This commit is contained in:
parent
f488726c82
commit
6af9bf1a1e
Notes:
sideshowbarker
2024-07-17 07:45:21 +09:00
Author: https://github.com/trflynn89
Commit: 6af9bf1a1e
Pull-request: https://github.com/SerenityOS/serenity/pull/15012
Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 1 deletions
|
@ -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 = [&]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue