Produce JS-visible string results as UTF-16 at their source, including numeric formatting, BigInt and BigFraction formatting, URI encoding, console formatting, parser errors, regular expression errors, Intl and Temporal records, LibUnicode locale boundaries, and LibWeb bindings. Handle fractional radix formatting through the UTF-16 builder view.
22 lines
436 B
C++
22 lines
436 B
C++
/*
|
|
* Copyright (c) 2024-2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Utf16String.h>
|
|
#include <AK/Utf16View.h>
|
|
|
|
namespace Unicode {
|
|
|
|
struct DigitalFormat {
|
|
Utf16String hours_minutes_separator { ":"_utf16 };
|
|
Utf16String minutes_seconds_separator { ":"_utf16 };
|
|
bool uses_two_digit_hours { false };
|
|
};
|
|
|
|
DigitalFormat digital_format(Utf16View locale);
|
|
|
|
}
|