[libcxx-commits] [libcxx] Implement P1885R12: `<text_encoding>` header (PR #141312)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 24 12:19:42 PDT 2025


================
@@ -0,0 +1,73 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <text_encoding>
+
+// REQUIRES: std-at-least-c++26
+
+// UNSUPPORTED: no-localization
+
+// class text_encoding
+
+// text_encoding::text_encoding(string_view) noexcept
+
+#include "test_macros.h"
+#include "test_text_encoding.h"
+#include <cassert>
+#include <cstring>
+#include <string_view>
+#include <text_encoding>
+#include <type_traits>
----------------
Zingam wrote:

```suggestion
#include <cassert>
#include <cstring>
#include <string_view>
#include <text_encoding>
#include <type_traits>

#include "test_macros.h"
#include "test_text_encoding.h"
```

Same as above.

https://github.com/llvm/llvm-project/pull/141312


More information about the libcxx-commits mailing list