libunicode 0.8.0

libunicode 0.8.0

17. února byl vydán 0.8.0 knihovny pro jazyk C++ (standard C++20) libunicode. Projekt vyvíjí tým vývojářů emulátoru terminálu Contour a je distribuován pod licencí Apache 2.0.

Možnosti knihovny:

  • podpora standardů Unicode 17.0:
  • API pro získání vlastností Unicode;
  • SIMD optimalizace některých funkcí (při použití std::simd nebo std::experimental::simd, pokud jsou k dispozici);
  • optimalizované převody UTF8 UTF32;
  • ekvivalent funkce wcwidth (int unicode::width(char32_t));
  • segmentace textu podle grafémů, znaků, emoji a písem;
  • převod velikosti písmen a porovnání řetězců;
  • vysokoúrovňové API pro segmentaci textu, vhodné pro implementaci tvarování textu.
  • pokrytí testy většiny funkcí knihovny (šířka znaku a segmentace).

Sada také obsahuje konzolovou utilitu unicode-query pro získání podrobných informací o řetězcích.

Seznam změn:

  • byly přidány funkce:

char32_t simple_uppercase(char32_t codepoint) char32_t simple_lowercase(char32_t codepoint) char32_t simple_titlecase(char32_t codepoint) char32_t simple_casefold(char32_t codepoint) case_mapping_result full_uppercase(char32_t codepoint) case_mapping_result full_lowercase(char32_t codepoint) case_mapping_result full_titlecase(char32_t codepoint) case_mapping_result full_casefold(char32_t codepoint) std::u32string to_uppercase(std::u32string_view text) std::u32string to_lowercase(std::u32string_view text) std::u32string to_titlecase(std::u32string_view text) std::u32string casefold(std::u32string_view text) std::string to_uppercase(std::string_view text) std::string to_lowercase(std::string_view text) std::string to_titlecase(std::string_view text) std::string casefold(std::string_view text) int casefold_compare(std::u32string_view a, std::u32string_view b) int casefold_compare(std::string_view a, std::string_view b) bool casefold_equals(std::u32string_view a, std::u32string_view b) bool casefold_equals(std::string_view a, std::string_view b) bool is_cased(char32_t codepoint) bool is_case_ignorable(char32_t codepoint) bool changes_when_uppercased(char32_t codepoint) bool changes_when_lowercased(char32_t codepoint) bool changes_when_titlecased(char32_t codepoint) bool changes_when_casefolded(char32_t codepoint)

  • byla přidána podpora Emscripten;
  • některým testovacím funkcím byl přidán prefix is_.

Zdroj: linux.org.ru

Koupit spolehlivý hosting pro webové stránky s ochranou proti DDoS, VPS VDS servery 🔥 Koupit spolehlivý hosting pro webové stránky s ochranou proti DDoS, VPS VDS servery | ProHoster