ReactOS 0.4.16-dev-1260-g901af6a
uchar.h
Go to the documentation of this file.
1//
2// uchar.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6
7#pragma once
8#ifndef _UCHAR // include guard for 3rd party interop
9#define _UCHAR
10
11#include <corecrt.h>
12
13#pragma warning(push)
14#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
16
18
19#ifndef __STDC_UTF_16__
20 #define __STDC_UTF_16__ 1
21#endif
22
23#ifndef __STDC_UTF_32__
24 #define __STDC_UTF_32__ 1
25#endif
26
27typedef unsigned short _Char16_t;
28typedef unsigned int _Char32_t;
29
30#if !defined __cplusplus || (defined _MSC_VER && _MSC_VER < 1900)
31 typedef unsigned short char16_t;
32 typedef unsigned int char32_t;
33#endif
34
35
36_Check_return_ _ACRTIMP size_t __cdecl mbrtoc16(_Out_opt_ char16_t *_Pc16, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps);
38
39_Check_return_ _ACRTIMP size_t __cdecl mbrtoc32(_Out_opt_ char32_t *_Pc32, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps);
41
44#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
45
46/*
47 * Copyright (c) 1992-2013 by P.J. Plauger. ALL RIGHTS RESERVED.
48 * Consult your license regarding permissions and restrictions.
49 V6.40:0009 */
50 #endif // _UCHAR
#define __cdecl
Definition: accygwin.h:79
_N
Definition: wchar.h:2530
#define _In_reads_or_z_opt_(size)
Definition: ms_sal.h:326
#define _Out_opt_
Definition: no_sal2.h:214
#define _Inout_
Definition: no_sal2.h:162
#define _Out_writes_opt_(s)
Definition: no_sal2.h:226
#define _Check_return_
Definition: no_sal2.h:60
#define _In_
Definition: no_sal2.h:158
unsigned int _Char32_t
Definition: uchar.h:28
unsigned short _Char16_t
Definition: uchar.h:27
_Check_return_ _ACRTIMP size_t __cdecl mbrtoc32(_Out_opt_ char32_t *_Pc32, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps)
_Check_return_ _ACRTIMP size_t __cdecl c16rtomb(_Out_writes_opt_(4) char *_S, _In_ char16_t _C16, _Inout_ mbstate_t *_Ps)
unsigned int char32_t
Definition: uchar.h:32
_Check_return_ _ACRTIMP size_t __cdecl c32rtomb(_Out_writes_opt_(4) char *_S, _In_ char32_t _C32, _Inout_ mbstate_t *_Ps)
_Check_return_ _ACRTIMP size_t __cdecl mbrtoc16(_Out_opt_ char16_t *_Pc16, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps)
unsigned short char16_t
Definition: uchar.h:31
#define _ACRTIMP
Definition: corecrt.h:138
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
#define _CRT_END_C_HEADER
Definition: vcruntime.h:42
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:40