mirror of
https://github.com/RGBCube/serenity
synced 2026-01-12 23:11:00 +00:00
LibUnicode: Parse and generate relative-time format patterns
Relative-time format patterns are of one of two forms:
* Tensed - refer to the past or the future, e.g. "N years ago" or
"in N years".
* Numbered - refer to a specific numeric value, e.g. "in 1 year"
becomes "next year" and "in 0 years" becomes "this year".
In ECMA-402, tensed and numbered refer to the numeric formatting options
of "always" and "auto", respectively.
This commit is contained in:
parent
27eda77c97
commit
789f093b2e
4 changed files with 295 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ set(SOURCES
|
|||
DateTimeFormat.cpp
|
||||
Locale.cpp
|
||||
NumberFormat.cpp
|
||||
RelativeTimeFormat.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibUnicode unicode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue