libunicode 0.8.0

libunicode 0.8.0

Le 17 février, la version 0.8.0 de la bibliothèque pour le langage C++ (standard C++20) a été publiée. libunicode. Le projet est développé par l'équipe de développement de l'émulateur de terminal Contour et est distribué sous la licence Apache 2.0.

Fonctionnalités de la bibliothèque:

  • support des normes Unicode 17.0:
  • API pour obtenir les propriétés Unicode;
  • optimisation SIMD de certaines fonctions (en utilisant std::simd ou std::experimental::simd si disponibles);
  • conversion optimisée entre UTF8 UTF32;
  • équivalent de la fonction wcwidth (int unicode::width(char32_t));
  • segmentation du texte par graphèmes, caractères, emojis et scripts;
  • transformation de case et comparaison de chaînes;
  • API de haut niveau pour la segmentation de texte, adapté à l'implémentation du façonnage du texte.
  • couverture du test de la plupart des fonctionnalités de la bibliothèque (largeur de caractère et segmentation).

Le package comprend également l'outil en ligne de commande unicode-query pour obtenir des informations détaillées sur les chaînes.

Liste des changements :

  • ajout de fonctions :

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)

  • prise en charge d'Emscripten ajoutée;
  • un préfixe is_ a été ajouté à certaines fonctions de test.

Source : linux.org.ru

Acheter un hébergement fiable pour les sites avec protection DDoS, serveurs VPS VDS 🔥 Acheter un hébergement fiable pour les sites avec protection DDoS, serveurs VPS VDS | ProHoster