libunicode 0.8.0

libunicode 0.8.0

17 shkurt u lëshua versioni 0.8.0 i bibliotekës për gjuhën C++ (standarti C++20) libunicode. Projekti po zhvillohet nga ekipi i zhvilluesve të emulatorit të terminalit Contour dhe shpërndahet nën licencën Apache 2.0.

Veçoritë e bibliotekës:

  • mbĂ«shtetje pĂ«r standartet Unicode 17.0:
  • API pĂ«r marrjen e pronave tĂ« Unicode;
  • optimizimi SIMD i disa funksioneve (duke pĂ«rdorur std::simd ose std::experimental::simd nĂ«se janĂ« tĂ« disponueshme);
  • konvertimi optimizuar UTF8 UTF32;
  • ekvivalent i funksionit wcwidth (int unicode::width(char32_t));
  • segmentimi i tekstit sipas grafemave, simboleve, emoji dhe skripteve;
  • shndĂ«rrimi i rasteve dhe krahasimi i rreshtave;
  • API i nivelit tĂ« lartĂ« pĂ«r segmentimin e tekstit, i pĂ«rshtatshĂ«m pĂ«r implementimin e formĂ«simit tĂ« tekstit.
  • mbulimi me teste i shumicĂ«s sĂ« funkcionaliteteve tĂ« bibliotekĂ«s (gjerĂ«sia e simbolit dhe segmentimi).

Në paketë përfshihet gjithashtu utilitari konsolë unicode-query për të marrë informacion të detajuar mbi rreshtat.

nöqtələri ilə

  • funkcionet e reja tĂ« shtuara:

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)

  • e shtuar mbĂ«shtetje pĂ«r Emscripten;
  • disa funksione testimi janĂ« pajisur me prefiksin is_.

Burimi: linux.org.ru

Blini hosting tĂ« besueshĂ«m pĂ«r faqe interneti me mbrojtje nga DDoS, serverĂ« VPS VDS đŸ”„ Blini hosting tĂ« besueshĂ«m pĂ«r faqe interneti me mbrojtje nga DDoS, serverĂ« VPS VDS | ProHoster