msvcrt: Add _ismbclower_l implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-07-16 15:33:15 +02:00 committed by Alexandre Julliard
parent 5f294e34d6
commit 1ad2094284
11 changed files with 20 additions and 12 deletions

View File

@ -47,7 +47,7 @@
@ cdecl _ismbclegal(long) ucrtbase._ismbclegal
@ cdecl _ismbclegal_l(long ptr) ucrtbase._ismbclegal_l
@ cdecl _ismbclower(long) ucrtbase._ismbclower
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr) ucrtbase._ismbclower_l
@ cdecl _ismbcprint(long) ucrtbase._ismbcprint
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long) ucrtbase._ismbcpunct

View File

@ -420,7 +420,7 @@
@ cdecl _o__ismbclegal(long) ucrtbase._o__ismbclegal
@ cdecl _o__ismbclegal_l(long ptr) ucrtbase._o__ismbclegal_l
@ stub _o__ismbclower
@ stub _o__ismbclower_l
@ cdecl _o__ismbclower_l(long ptr) ucrtbase._o__ismbclower_l
@ cdecl _o__ismbcprint(long) ucrtbase._o__ismbcprint
@ stub _o__ismbcprint_l
@ cdecl _o__ismbcpunct(long) ucrtbase._o__ismbcpunct

View File

@ -995,7 +995,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)

View File

@ -1341,7 +1341,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ stub _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)

View File

@ -1346,7 +1346,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)

View File

@ -667,7 +667,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)

View File

@ -645,7 +645,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)

View File

@ -1475,13 +1475,20 @@ int CDECL _ismbcalpha(unsigned int ch)
return _ismbcalpha_l( ch, NULL );
}
/*********************************************************************
* _ismbclower_l (MSVCRT.@)
*/
int CDECL _ismbclower_l(unsigned int ch, MSVCRT__locale_t locale)
{
return MSVCRT__iswlower_l( msvcrt_mbc_to_wc_l(ch, locale), locale );
}
/*********************************************************************
* _ismbclower (MSVCRT.@)
*/
int CDECL _ismbclower(unsigned int ch)
{
MSVCRT_wchar_t wch = msvcrt_mbc_to_wc( ch );
return (get_char_typeW( wch ) & C1_UPPER);
return _ismbclower_l( ch, NULL );
}
/*********************************************************************

View File

@ -1205,6 +1205,7 @@ int __cdecl MSVCRT__iswalnum_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswdigit_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswgraph_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswalpha_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswlower_l(MSVCRT_wchar_t, MSVCRT__locale_t);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)

View File

@ -613,7 +613,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
# stub _ismbclower_l(long ptr)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
# stub _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)

View File

@ -485,7 +485,7 @@
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcpunct(long)
@ -1084,7 +1084,7 @@
@ cdecl _o__ismbclegal(long) _ismbclegal
@ cdecl _o__ismbclegal_l(long ptr) _ismbclegal_l
@ stub _o__ismbclower
@ stub _o__ismbclower_l
@ cdecl _o__ismbclower_l(long ptr) _ismbclower_l
@ cdecl _o__ismbcprint(long) _ismbcprint
@ stub _o__ismbcprint_l
@ cdecl _o__ismbcpunct(long) _ismbcpunct