Something went wrong. Try again.
Reactos
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455/****ismbalph.c - Test if character is alphabetic (MBCS)** Copyright (c) Microsoft Corporation. All rights reserved.**Purpose:* Test if character is alphabetic (MBCS)********************************************************************************/#ifndef _MBCS #error This file should only be compiled with _MBCS defined#endif
#include <corecrt_internal_mbstring.h>#include <locale.h>
/**** _ismbcalpha - Test if character is alphabetic (MBCS)**Purpose:* Test if character is alphabetic.* Handles MBCS chars correctly.** Note: Use test against 0x00FF instead of _ISLEADBYTE* to ensure that we don't call SBCS routine with a two-byte* value.**Entry:* unsigned int c = character to test**Exit:* Returns TRUE if c is alphabetic, else FALSE**Exceptions:********************************************************************************/
extern "C" int __cdecl _ismbcalpha_l(unsigned int const c, _locale_t const locale){ _LocaleUpdate locale_update(locale);
if (c <= 0x00FF) { return _ismbbalpha_l(c, locale_update.GetLocaleT()); }
return __dcrt_multibyte_check_type(c, locale_update.GetLocaleT(), _ALPHA, true);}
extern "C" int __cdecl _ismbcalpha(unsigned int const c){ return _ismbcalpha_l(c, nullptr);}