1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Userland/Libraries
Timothy Flynn 48ce72e472 LibUnicode: Parse and generate regional hour cycles
Unlike most data in the CLDR, hour cycles are not stored on a per-locale
basis. Instead, they are keyed by a string that is usually a region, but
sometimes is a locale. Therefore, given a locale, to determine the hour
cycles for that locale, we:

    1. Check if the locale itself is assigned hour cycles.
    2. If the locale has a region, check if that region is assigned hour
       cycles.
    3. Otherwise, maximize that locale, and if the maximized locale has
       a region, check if that region is assigned hour cycles.
    4. If the above all fail, fallback to the "001" region.

Further, each locale's default hour cycle is the first assigned hour
cycle.
2021-11-29 22:48:46 +00:00
..
LibArchive LibArchive: Limit all Tar header fields to their buffer length 2021-11-24 19:09:00 +02:00
LibAudio LibAudio: Optimize sample moves in FlacLoader 2021-11-28 13:33:51 -08:00
LibC LibC: Make SIZE_MAX be understood by the preprocessor 2021-11-28 09:38:57 -08:00
LibCards AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibChess Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibCompress Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
LibConfig LibConfig: Add list methods for groups and keys 2021-11-18 09:08:51 +01:00
LibCore LibCore: Add syscall wrapper for dup() 2021-11-28 23:14:19 +01:00
LibCoredump LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibCpp LibCpp: Fix copy paste typo in Parser::match_secondary_expression 2021-11-29 14:19:31 -08:00
LibCrypt Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
LibCrypto AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibDebug LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibDesktop LibDesktop: Make allowlist APIs return ErrorOr<void> 2021-11-24 00:25:23 +01:00
LibDeviceTree Libraries: Add LibDeviceTree for manipulating OpenFirmware Device Trees 2021-10-21 19:20:03 -07:00
LibDiff Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibDl Toolchain+Userland: Enable TLS for x86_64 2021-07-04 01:07:28 +02:00
LibDSP LibDSP: Fix potential slicing issue in volume_from_envelope 2021-11-29 14:19:31 -08:00
LibELF Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibFileSystemAccessClient Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibGemini Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibGfx LibGfx: Link against LibIPC 2021-11-29 23:17:05 +03:30
LibGL LibGL: Mark SoftwareGLContext::gl_scissor as override 2021-11-29 23:17:05 +03:30
LibGUI LibGUI: Move GUI::SettingsWindow setup out of the constructor 2021-11-28 08:54:22 +01:00
LibHTTP LibWeb+LibHTTP: Support multiple Set-Cookie response headers 2021-11-19 13:54:35 +03:30
LibImageDecoderClient Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
LibIMAP Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibIPC LibIPC: Mark m_sockfd as maybe_unused on non Serenity platforms 2021-11-29 01:46:28 -08:00
LibJS LibJS+LibUnicode: Separate number formatting methods from Locale.h 2021-11-29 22:48:46 +00:00
LibKeyboard AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional) 2021-11-17 00:21:10 +01:00
LibLine Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibM Libraries: Fix typos 2021-10-01 01:06:40 +01:00
LibMain LibMain: Rename .arguments to .strings :^) 2021-11-22 22:13:22 +01:00
LibMarkdown Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibPCIDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibPDF AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibProtocol RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint 2021-09-28 22:32:31 +02:00
LibPthread LibPthread: Initialize conditions with realtime clock 2021-11-24 19:44:57 +01:00
LibRegex LibRegex: Avoid rewriting a+ as a* as part of atomic rewriting 2021-11-18 09:09:22 +01:00
LibSanitizer LibSanitizer+AK: Add float cast overflow handler 2021-08-08 10:55:36 +02:00
LibSQL AK: Make ByteBuffer::try_* functions return ErrorOr<void> 2021-11-10 21:58:58 +01:00
LibSymbolication LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibSyntax LibWeb: Implement first draft of CSS syntax highlighting :^) 2021-10-23 19:07:44 +02:00
LibSystem LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore 2021-11-23 11:33:36 +01:00
LibTest AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional) 2021-11-17 00:21:10 +01:00
LibTextCodec Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
LibThreading LibThreading: Remove redundant method 2021-11-02 11:07:26 +01:00
LibTLS Everywhere: Pass AK::ReadonlyBytes by value 2021-11-11 01:27:46 +01:00
LibUnicode LibUnicode: Parse and generate regional hour cycles 2021-11-29 22:48:46 +00:00
LibUSBDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibVideo LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibVT LibGUI+Everywhere: Make sync requests to Clipboard server more obvious 2021-11-21 11:49:06 +00:00
LibWasm AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibWeb LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
LibWebSocket Libraries: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
LibX86 LibX86: Take load base address into consideration during disassembly 2021-10-25 12:14:26 +02:00
CMakeLists.txt LibMain: Add a new library for more ergonomic userspace entry functions 2021-11-22 19:28:31 +01:00