From 32c8486e1f0297393cb22ac0a0d26a6b17ad4d54 Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Tue, 26 Mar 2024 17:46:21 -0400 Subject: wpm : portable unicode tolower (#6305) Also use C locale for ispunct/isspace, and split unicode-data.cpp from unicode.cpp. --- unicode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unicode.h') diff --git a/unicode.h b/unicode.h index 6d14a5a3..6a0be393 100644 --- a/unicode.h +++ b/unicode.h @@ -24,3 +24,5 @@ int unicode_cpt_type(const std::string & utf8); std::string unicode_byte_to_utf8(uint8_t byte); uint8_t unicode_utf8_to_byte(const std::string & utf8); +// simple tolower that only implements one-to-one mapping, not one-to-many +char32_t unicode_tolower(char32_t cp); -- cgit v1.2.3