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

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 25 04:32:48 PDT 2025


================
@@ -0,0 +1,49 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#  pragma GCC system_header
+#endif
+
+#include <__locale_dir/locale_base_api.h>
+
+#include <text_encoding>
+
+#if __has_include(<langinfo.h>)
+#  include <langinfo.h>
+#endif
+
+#if _LIBCPP_STD_VER >= 26
----------------
Zingam wrote:

@smallp-o-p You can check my attempt at `<debugging>`: https://github.com/llvm/llvm-project/pull/81447/files It is unfinished but it may give you some ideas and it builds. I think you also need to implement the AVAILABILITY macros.

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


More information about the libcxx-commits mailing list