From 5aee98f532d8913d1b9427013908bde95cf61c82 Mon Sep 17 00:00:00 2001 From: HUMANIAM Date: Sun, 25 May 2025 10:27:23 +0300 Subject: [PATCH] fix char32_t and char16_t section where they character representation with UTF-16 and UTF-32 and not UTF-8 --- CPP11.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CPP11.md b/CPP11.md index 0d92bc1..69e5cf2 100644 --- a/CPP11.md +++ b/CPP11.md @@ -692,10 +692,10 @@ void g() noexcept { ``` ### char32_t and char16_t -Provides standard types for representing UTF-8 strings. +Provides standard types for representing UTF-32 and UTF-16 strings. ```c++ -char32_t utf8_str[] = U"\u0123"; -char16_t utf8_str[] = u"\u0123"; +char32_t utf32_str[] = U"\u0123"; +char16_t utf16_str[] = u"\u0123"; ``` ### Raw string literals