feat(Unicode): add Unicode 17.0.0 manifest and strict/repair/streaming UTF codecs (S-UNICODE-01, S-UNICODE-02)

This commit is contained in:
faumaray committed 2026-11-24 03:38:53 +03:00
1 parent bfd6246d32
commit 4369fde867
8 files changed
+1634 -1

No files matched your search

+5
View File
@@ -101,6 +101,11 @@ if(_has_algorithms)
run_consumer(AlgorithmsOnly "${install_prefix}" "AlgorithmsOnly" ${_no_external_deps})
endif()
has_modules(_has_unicode Unicode Text Core)
if(_has_unicode)
run_consumer(UnicodeOnly "${install_prefix}" "UnicodeOnly" ${_no_external_deps})
endif()
# Foundation consumer with Core-formatting bridge and zero external packages.
has_modules(_has_foundation Math Text Time Functional Binary FunctionalCoreFormatting Memory Core)
if(_has_foundation)
+10
View File
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 4.0)
project(VoidUnicodeOnlyConsumer LANGUAGES CXX)
find_package(Void CONFIG REQUIRED COMPONENTS Unicode)
add_executable(void_unicode_only_consumer main.cpp)
target_link_libraries(void_unicode_only_consumer PRIVATE Void::Unicode)
enable_testing()
add_test(NAME VoidUnicodeOnlyConsumer COMMAND void_unicode_only_consumer)
+16
View File
@@ -0,0 +1,16 @@
#include <Void/Unicode/Utf.hpp>
#include <string_view>
int main()
{
if (Void::Unicode::data_version() != std::string_view{"17.0.0"}) {
return 1;
}
const auto u16 = Void::Unicode::utf8_to_utf16("hi \xF0\x9F\x9A\x80");
if (!u16.has_value()) {
return 1;
}
const auto u8 = Void::Unicode::utf16_to_utf8(*u16);
return (u8 && *u8 == "hi \xF0\x9F\x9A\x80") ? 0 : 1;
}