From 18cbe0d653e31cc7528b3839dbda1e1dbaef686a Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Mon, 30 Jun 2025 16:00:13 +0200 Subject: [PATCH] Fix README.md Wrong API desc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ce4c7b..fe8dd40 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ std::string utf8::narrow (const char32_t* s, size_t nch=0); std::string utf8::narrow (const std::u32string& s); ``` -The `widen()` function converts from UTF-16: +The `widen()` function converts UTF-8 to UTF-16: ```C++ std::wstring utf8::widen (const char* s, size_t nch); std::wstring utf8::widen (const std::string& s); ``` -The `runes()` function converts from UTF-32: +The `runes()` function converts UTF-8 to UTF-32: ```C++ std::u32string runes (const char* s, size_t nch = 0); std::u32string utf8::runes (const std::string& s);