summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibLocale
AgeCommit message (Collapse)Author
2023-05-24LibTimeZone+Userland: Change timezone functions to use UnixDateTimekleines Filmröllchen
This incurs a whole host of changes in, among others, JavaScript Intl and Date.
2023-05-24AK: Rename Time to Durationkleines Filmröllchen
That's what this class really is; in fact that's what the first line of the comment says it is. This commit does not rename the main files, since those will contain other time-related classes in a little bit.
2023-02-08Everywhere: Use ReadonlySpan<T> instead of Span<T const>MacDue
2023-02-08LibJS+LibLocale: Propagate OOM from CLDR RelativeTime Vector operationsTimothy Flynn
2023-02-08LibLocale: Propagate OOM from CLDR DateTime Vector and String operationsTimothy Flynn
2023-02-08LibJS+LibLocale: Propagate OOM from CLDR NumberFormat Vector operationsTimothy Flynn
2023-01-28LibLocale: Remove last use of DeprecatedString from LibLocaleTimothy Flynn
2023-01-27AK: Remove StringBuilder::build() in favor of to_deprecated_string()Linus Groh
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
2023-01-27LibJS+LibLocale: Propagate errors from find_regional_values_for_localeTimothy Flynn
This had quite the footprint.
2023-01-27LibJS+LibLocale: Port Intl.DateTimeFormat to StringTimothy Flynn
2023-01-27LibLocale: Remove "else" after "if" statements that always returnTimothy Flynn
Mostly just to keep clangd quiet.
2023-01-24LibJS+LibLocale: Port Intl.NumberFormat to StringTimothy Flynn
2023-01-22LibJS+LibLocale: Port remaining locale APIs to StringTimothy Flynn
2023-01-19LibLocale: Remove now-unused [LanguageID,LocaleID]::to_deprecated_stringTimothy Flynn
2023-01-19LibLocale+LibJS: Port locale parsing and processing to StringTimothy Flynn
In order to prevent this commit from having to refactor almost all of Intl, the goal here is to update the internal parsing/canonicalization of locales within LibLocale only. Call sites which are already equiped to handle String and OOM errors do so, however.
2023-01-19LibLocale: Add a method to convert LocaleID to a StringTimothy Flynn
2023-01-16LibLocale: Add a method to convert LanguageID to a StringTimothy Flynn
2022-12-06Everywhere: Rename to_{string => deprecated_string}() where applicableLinus Groh
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-01Everywhere: Mark dependencies of most targets as PRIVATETim Schumacher
Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
2022-10-17Lagom+CMake: Propagate dependencies for generated custom targetsAndrew Kaster
We have logic for serenity_generated_sources which works well for source files that are specified in GENERATED_SOURCES prior to calling serenity_lib or serenity_bin. However, code generated with invoke_generator, and the LibWeb generators do not always follow the pattern of the IDL and GML files. For the LibWeb generators, we can just add_dependencies to LibWeb at the time we declare the generate_Foo custom target. However for LibLocale, LibTimeZone, and LibUnicode, we don't have the name of the target available, so export the name in a variable to set into GENERATED_SOURCES. To make this work for Lagom, we need to make sure that lagom_lib and serenity_bin in Lagom/CMakeLists.txt call serenity_generated_sources on the target. This enables the Xcode generator on macOS hosts, at least for Lagom.
2022-10-16CMake+Userland: Use CMakeLists from Userland to build Lagom LibrariesAndrew Kaster
Also do this for Shell. This greatly simplifies the CMakeLists in Lagom, replacing many glob patterns with a big list of libraries. There are still a few special libraries that need some help to conform to the pattern, like LibELF and LibWebView. It also lets us remove essentially all of the Serenity or Lagom binary directory detection logic from code generators, as now both projects directories enter the generator logic from the same place.
2022-09-05LibLocale: Move locale source files to the LibLocale libraryTimothy Flynn
Everything is now setup to create the LibLocale library and link it where needed.
2022-09-05LibLocale: Move locale source files to the LibLocale folderTimothy Flynn
These are still included in LibUnicode, but this updates their location and the include paths of other files which include them.
2022-09-05LibLocale+LibUnicode: Move generated CLDR data files to LibLocale folderTimothy Flynn
They are still included into LibUnicode, but this moves their generated location to be under LibLocale.