File Index Symbol Index

/* xlocinfo.h internal header for Microsoft */
#pragma once
#ifndef _XLOCINFO
#define _XLOCINFO
#ifndef RC_INVOKED #include <ctype.h> #include <locale.h>
#include <wchar.h>
#include <yvals.h>
_STL_DISABLE_CLANG_WARNINGS
#pragma push_macro("new")
#undef new
#if !defined(MRTDLL) || !defined(_CRTBLD)
#ifndef _M_CEE_PURE
/* CTYPE CODE BITS */
#define _XB 0x000 /* extra blank */
#define _XA 0x100 /* extra alphabetic */
#define _XS 0x000 /* extra space */
#define _BB _CONTROL /* BEL, BS, etc. */
#define _CN _SPACE /* CR, FF, HT, NL, VT */
#define _DI _DIGIT /* '0'-'9' */
#define _LO _LOWER /* 'a'-'z' */
#define _PU _PUNCT /* punctuation */
#define _SP _BLANK /* space */
#define _UP _UPPER /* 'A'-'Z' */
#define _XD _HEX /* '0'-'9', 'A'-'F', 'a'-'f' */
/* SUPPLEMENTAL LOCALE MACROS AND DECLARATIONS */
#define _X_ALL LC_ALL
#define _X_COLLATE LC_COLLATE
#define _X_CTYPE LC_CTYPE
#define _X_MONETARY LC_MONETARY
#define _X_NUMERIC LC_NUMERIC
#define _X_TIME LC_TIME
#define _X_MAX LC_MAX
#define _X_MESSAGES 6
#define _NCAT (_X_MESSAGES + 1) /* maximum + 1 */
#define _CATMASK(n) ((1 << (n)) >> 1)
#define _M_COLLATE _CATMASK(_X_COLLATE)
#define _M_CTYPE _CATMASK(_X_CTYPE)
#define _M_MONETARY _CATMASK(_X_MONETARY)
#define _M_NUMERIC _CATMASK(_X_NUMERIC)
#define _M_TIME _CATMASK(_X_TIME)
#define _M_MESSAGES _CATMASK(_X_MESSAGES)
#define _M_ALL (_CATMASK(_NCAT) - 1)
typedef
struct
_Collvec
{
/* stuff needed by _Strcoll, etc. */
unsigned
int
_Page
;
// UINT
wchar_t
*
_LocaleName
; }
_Collvec
;
typedef
struct
_Ctypevec
{
/* stuff needed by _Tolower, etc. */
unsigned
int
_Page
;
// UINT
const
short
*
_Table
;
int
_Delfl
;
wchar_t
*
_LocaleName
; }
_Ctypevec
;
typedef
struct
_Cvtvec
{
/* stuff needed by _Mbrtowc, etc. */
unsigned
int
_Page
;
// UINT
unsigned
int
_Mbcurmax
;
int
_Isclocale
;
// LCID == _CLOCALEHANDLE
unsigned
char
_Isleadbyte
[
32
];
// 256 bits
}
_Cvtvec
;
/* FUNCTION DECLARATIONS */
#ifdef __cplusplus
#if !defined(MRTDLL) && !defined(_M_CEE_PURE)
extern
"C"
#endif /* !MRTDLL && !_M_CEE_PURE */
#ifdef _M_CEE_PURE
[System::Runtime::InteropServices::DllImport(_CRT_MSVCP_CURRENT,
EntryPoint = "_Mbrtowc",
CallingConvention =
System::Runtime::InteropServices::CallingConvention::Cdecl)]
extern "C" int _Mbrtowc(_Out_opt_ wchar_t *, const char *, size_t,
mbstate_t *, const _Cvtvec *);
#else /* _M_CEE_PURE */
mbstate_t
*,
const
_Cvtvec
*);
#endif /* _M_CEE_PURE */
const
char
*,
const
char
*,
const
_Collvec
*);
const
_Cvtvec
*);
const
wchar_t
*,
const
wchar_t
*,
const
_Collvec
*);
const
wchar_t
*,
short
*,
const
_Ctypevec
*);
#if !defined(MRTDLL) || !defined(_CRTBLD)
#ifndef _M_CEE_PURE
_Success_(return != 0)
_Ret_z_
_Success_(return != 0)
_Ret_z_
_Success_(return > 0)
_Success_(return != 0)
_Ret_z_
_Success_(return != 0)
_Ret_z_
_Success_(return > 0)
#ifdef _M_CEE_PURE
[System::Runtime::InteropServices::DllImport(_CRT_MSVCP_CURRENT,
EntryPoint = "_GetLocaleForCP",
CallingConvention =
System::Runtime::InteropServices::CallingConvention::Cdecl)]
extern "C" _locale_t _GetLocaleForCP(unsigned int);
#else /* _M_CEE_PURE */
#pragma pop_macro("new")
_STL_RESTORE_CLANG_WARNINGS
/* * Copyright (c) by P.J. Plauger. All rights reserved. * Consult your license regarding permissions and restrictions. V6.50:0009 */