msvcrt: Add _ismbcsymbol_l implementation.

This commit is contained in:
Bartosz Kosiorek 2022-10-23 22:35:21 +02:00 committed by Alexandre Julliard
parent c68f75e34e
commit 46c836071e
8 changed files with 19 additions and 16 deletions

View file

@ -1003,7 +1003,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -1349,7 +1349,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -1355,7 +1355,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -675,7 +675,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -653,7 +653,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -115,11 +115,6 @@ static wchar_t msvcrt_mbc_to_wc_l(unsigned int ch, _locale_t locale)
return chW;
}
static wchar_t msvcrt_mbc_to_wc(unsigned int ch)
{
return msvcrt_mbc_to_wc_l(ch, NULL);
}
static inline size_t u_strlen( const unsigned char *str )
{
return strlen( (const char*) str );
@ -1640,11 +1635,11 @@ int CDECL _ismbcupper(unsigned int ch)
}
/*********************************************************************
* _ismbcsymbol(MSVCRT.@)
* _ismbcsymbol_l(MSVCRT.@)
*/
int CDECL _ismbcsymbol(unsigned int ch)
int CDECL _ismbcsymbol_l(unsigned int ch, _locale_t locale)
{
wchar_t wch = msvcrt_mbc_to_wc( ch );
wchar_t wch = msvcrt_mbc_to_wc_l( ch, locale );
WORD ctype;
if (!GetStringTypeW(CT_CTYPE3, &wch, 1, &ctype))
{
@ -1654,6 +1649,14 @@ int CDECL _ismbcsymbol(unsigned int ch)
return ((ctype & C3_SYMBOL) != 0);
}
/*********************************************************************
* _ismbcsymbol(MSVCRT.@)
*/
int CDECL _ismbcsymbol(unsigned int ch)
{
return _ismbcsymbol_l(ch, NULL);
}
/*********************************************************************
* _ismbcalnum_l (MSVCRT.@)
*/

View file

@ -624,7 +624,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
# stub _ismbcsymbol_l(long ptr)
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)

View file

@ -495,7 +495,7 @@
@ cdecl _ismbcspace(long)
@ cdecl _ismbcspace_l(long ptr)
@ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l
@ cdecl _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long)
@ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr)
@ -1094,7 +1094,7 @@
@ cdecl _o__ismbcspace(long) _ismbcspace
@ cdecl _o__ismbcspace_l(long ptr) _ismbcspace_l
@ cdecl _o__ismbcsymbol(long) _ismbcsymbol
@ stub _o__ismbcsymbol_l
@ cdecl _o__ismbcsymbol_l(long ptr) _ismbcsymbol_l
@ cdecl _o__ismbcupper(long) _ismbcupper
@ cdecl _o__ismbcupper_l(long ptr) _ismbcupper_l
@ cdecl _o__ismbslead(ptr ptr) _ismbslead