1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_CUCHAR
11#define _LIBCPP_CUCHAR
12
13/*
14    cuchar synopsis // since C++11
15
16Macros:
17
18    __STDC_UTF_16__
19    __STDC_UTF_32__
20
21namespace std {
22
23Types:
24
25  mbstate_t
26  size_t
27
28size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps);
29size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps);
30size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps);
31size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps);
32
33} // std
34
35*/
36
37#include <__assert> // all public C++ headers provide the assertion handler
38#include <__config>
39#include <uchar.h>
40
41#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
42#  pragma GCC system_header
43#endif
44
45_LIBCPP_BEGIN_NAMESPACE_STD
46
47#if !defined(_LIBCPP_CXX03_LANG)
48
49using ::mbstate_t _LIBCPP_USING_IF_EXISTS;
50using ::size_t _LIBCPP_USING_IF_EXISTS;
51
52using ::mbrtoc16 _LIBCPP_USING_IF_EXISTS;
53using ::c16rtomb _LIBCPP_USING_IF_EXISTS;
54using ::mbrtoc32 _LIBCPP_USING_IF_EXISTS;
55using ::c32rtomb _LIBCPP_USING_IF_EXISTS;
56
57#endif // _LIBCPP_CXX03_LANG
58
59_LIBCPP_END_NAMESPACE_STD
60
61#endif  // _LIBCPP_CUCHAR
62