On February 17, version 0.8.0 of the library for C++ (C++20 standard) was released. libunicode. The project is being developed by a team of terminal emulator developers. Contour and is distributed under the Apache 2.0 license.
- support for standards Unicode 17.0:
- API for obtaining Unicode properties;
- SIMD optimization of certain functions (using std::simd or std::experimental::simd if available);
- optimized conversion UTF8 UTF32;
- equivalent to the wcwidth function (int unicode::width(char32_t));
- text segmentation by graphemes, characters, emojis, and scripts;
- case conversion and string comparison;
- high-level text segmentation API suitable for implementing text shaping.
- test coverage for most capabilities of the library (character width and segmentation).
Also included is the console utility unicode-query for detailed information about strings.
Change log:
- added functions:
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)
- support for Emscripten added;
- the prefix is_ added to some testing functions.
Source: linux.org.ru
