ReactOS 0.4.16-dev-927-g467dec4
ismblgl.cpp
Go to the documentation of this file.
1/***
2*ismblgl.c - Tests to see if a given character is a legal MBCS char.
3*
4* Copyright (c) Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* Tests to see if a given character is a legal MBCS character.
8*
9*******************************************************************************/
10#ifndef _MBCS
11 #error This file should only be compiled with _MBCS defined
12#endif
13
15#include <locale.h>
16
17
18/***
19*int _ismbclegal(c) - tests for a valid MBCS character.
20*
21*Purpose:
22* Tests to see if a given character is a legal MBCS character.
23*
24*Entry:
25* unsigned int c - character to test
26*
27*Exit:
28* returns non-zero if Microsoft Kanji code, else 0
29*
30*Exceptions:
31*
32******************************************************************************/
33
34extern "C" int __cdecl _ismbclegal_l(
35 unsigned int c,
37 )
38{
39 _LocaleUpdate _loc_update(plocinfo);
40
41 return( (_ismbblead_l(c >> 8, _loc_update.GetLocaleT())) &&
42 (_ismbbtrail_l(c & 0x0ff, _loc_update.GetLocaleT())) );
43}
44extern "C" int (__cdecl _ismbclegal)(
45 unsigned int c
46 )
47{
48 return _ismbclegal_l(c, nullptr);
49}
#define __cdecl
Definition: accygwin.h:79
#define _ismbblead_l(_c, p)
#define _ismbbtrail_l(_c, p)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
const GLubyte * c
Definition: glext.h:8905
_Check_return_ _CRTIMP int __cdecl _ismbclegal(_In_ unsigned int _Ch)
_locale_t plocinfo
Definition: ismbbyte.cpp:75
int __cdecl _ismbclegal_l(unsigned int c, _locale_t plocinfo)
Definition: ismblgl.cpp:34
#define c
Definition: ke_i.h:80