libunicode 0.8.0

libunicode 0.8.0

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

Mundësitë e bibliotekës:

  • mbĂ«shtetje pĂ«r standartet Unicode 17.0:
  • API pĂ«r marrjen e vetive tĂ« Unicode;
  • optimizimi SIMD i disa funksioneve (duke pĂ«rdorur std::simd ose std::experimental::simd nĂ«se janĂ« tĂ« disponueshme);
  • konvertim optimizuar UTF8 UTF32;
  • ekvivalenti i funksionit wcwidth (int unicode::width(char32_t));
  • segmentimi i tekstit sipas grafemave, simboleve, emoji dhe shkrimeve;
  • transformimi i regjistrit dhe krahasimi i vargjeve;
  • API i nivelit tĂ« lartĂ« pĂ«r segmentimin e tekstit, i pĂ«rshtatshĂ«m pĂ«r realizimin e shenjimin tĂ« tekstit.
  • mbulimi me teste i shumicĂ«s sĂ« mundĂ«sive tĂ« bibliotekĂ«s (gjerĂ«sia e simbolit dhe segmentimi).

Në paketë gjithashtu përfshihet utilitari konsolles unicode-query për marrjen e informacionit të detajuar rreth vargjeve.

Lista e ndryshimeve:

  • shtuar funksionet:

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)

  • shtuar mbĂ«shtetje pĂ«r Emscripten;
  • disa funksione testimi morĂ«n prefiksin is_.

Burimi: linux.org.ru

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