AuroraRuntime/Include/Aurora/Locale
Jamie Reece Wilson 83f34b0c47 [*] I was right. String views are [mostly] pointless (*)
03:28:55:638  17>2 of 53388 functions (<0.1%) were compiled, the rest were copied from previous compilation.
03:28:55:638  17>  0 functions were new in current compilation
03:28:55:638  17>  65 functions had inline decision re-evaluated but remain unchanged
03:28:56:749  17>Finished generating code

the header of const AuString & is the same as std::string_view therefore nothing changes. in fact, we still need to alloc strings a bunch of times for a zero terminated string. worse, <c++20 always allocs each time we want to access a hashmap with o(1) lookup, making small hashmaps kinda pointless when we always have to alloc+copy (thx std)

perhaps this will help some language binders
2024-04-19 05:58:08 +01:00
..
Encoding [+] Missing external class if iterative/codepoint length locale apis 2022-08-13 06:03:24 +01:00
ECodePage.hpp [*/+/-] MEGA COMMIT. ~2 weeks compressed. 2022-02-17 00:11:40 +00:00
Locale.hpp [*] I was right. String views are [mostly] pointless (*) 2024-04-19 05:58:08 +01:00
LocaleStrings.hpp [*] ConvertMSToTimescale: refactor arg to u64 2023-05-12 17:49:34 +01:00
README.md [+] NS readmes 2022-06-12 18:28:51 +01:00

AuLocale

Example Usage: HelloAurora/master/Tests/Public/8. Hello Locale/Main.cpp

Features

  • Pulls system country, language, and codepage
  • Built-in UTF8 (up to 6 bytes), 16, 32 encoding/decoding
  • NULL == out based counting of valid codepoints and input bytes in a given memory view, backed by various codecs
  • Abstraction on top of platform specific iconv, nsl, and similar api sets to provide shift-jis, utf*, gbk (and frens) conversion to/from UTF8