Warning, /include/c++/v1/cuchar is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP_CUCHAR
0011 #define _LIBCPP_CUCHAR
0012
0013 /*
0014 cuchar synopsis // since C++11
0015
0016 Macros:
0017
0018 __STDC_UTF_16__
0019 __STDC_UTF_32__
0020
0021 namespace std {
0022
0023 Types:
0024
0025 mbstate_t
0026 size_t
0027
0028 size_t mbrtoc8(char8_t* pc8, const char* s, size_t n, mbstate_t* ps); // since C++20
0029 size_t c8rtomb(char* s, char8_t c8, mbstate_t* ps); // since C++20
0030 size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps);
0031 size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps);
0032 size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps);
0033 size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps);
0034
0035 } // std
0036
0037 */
0038
0039 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0040 # include <__cxx03/cuchar>
0041 #else
0042 # include <__config>
0043 # include <__cstddef/size_t.h>
0044
0045 # include <uchar.h>
0046
0047 # ifndef _LIBCPP_UCHAR_H
0048 # error <cuchar> tried including <uchar.h> but didn't find libc++'s <uchar.h> header. \
0049 This usually means that your header search paths are not configured properly. \
0050 The header search paths should contain the C++ Standard Library headers before \
0051 any C Standard Library, and you are probably using compiler flags that make that \
0052 not be the case.
0053 # endif
0054
0055 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0056 # pragma GCC system_header
0057 # endif
0058
0059 _LIBCPP_BEGIN_NAMESPACE_STD
0060
0061 # if !defined(_LIBCPP_CXX03_LANG)
0062
0063 using ::mbstate_t _LIBCPP_USING_IF_EXISTS;
0064
0065 # if _LIBCPP_HAS_C8RTOMB_MBRTOC8
0066 using ::mbrtoc8 _LIBCPP_USING_IF_EXISTS;
0067 using ::c8rtomb _LIBCPP_USING_IF_EXISTS;
0068 # endif
0069 using ::mbrtoc16 _LIBCPP_USING_IF_EXISTS;
0070 using ::c16rtomb _LIBCPP_USING_IF_EXISTS;
0071 using ::mbrtoc32 _LIBCPP_USING_IF_EXISTS;
0072 using ::c32rtomb _LIBCPP_USING_IF_EXISTS;
0073
0074 # endif // _LIBCPP_CXX03_LANG
0075
0076 _LIBCPP_END_NAMESPACE_STD
0077
0078 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0079
0080 #endif // _LIBCPP_CUCHAR