msvcrt: Add _ismbcprint_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:32 +02:00 committed by Alexandre Julliard
parent 4bca5b9f51
commit 1750a6969b
11 changed files with 20 additions and 12 deletions

View File

@ -49,7 +49,7 @@
@ cdecl _ismbclower(long) ucrtbase._ismbclower
@ cdecl _ismbclower_l(long ptr) ucrtbase._ismbclower_l
@ cdecl _ismbcprint(long) ucrtbase._ismbcprint
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr) ucrtbase._ismbcprint_l
@ cdecl _ismbcpunct(long) ucrtbase._ismbcpunct
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long) ucrtbase._ismbcspace

View File

@ -422,7 +422,7 @@
@ stub _o__ismbclower
@ cdecl _o__ismbclower_l(long ptr) ucrtbase._o__ismbclower_l
@ cdecl _o__ismbcprint(long) ucrtbase._o__ismbcprint
@ stub _o__ismbcprint_l
@ cdecl _o__ismbcprint_l(long ptr) ucrtbase._o__ismbcprint_l
@ cdecl _o__ismbcpunct(long) ucrtbase._o__ismbcpunct
@ stub _o__ismbcpunct_l
@ cdecl _o__ismbcspace(long) ucrtbase._o__ismbcspace

View File

@ -997,7 +997,7 @@
@ cdecl _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)

View File

@ -1343,7 +1343,7 @@
@ stub _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ stub _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)

View File

@ -1348,7 +1348,7 @@
@ stub _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)

View File

@ -669,7 +669,7 @@
@ cdecl _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)

View File

@ -647,7 +647,7 @@
@ cdecl _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)

View File

@ -1554,13 +1554,20 @@ int CDECL _ismbcspace(unsigned int ch)
return _ismbcspace_l( ch, NULL );
}
/*********************************************************************
* _ismbcprint_l (MSVCRT.@)
*/
int CDECL _ismbcprint_l(unsigned int ch, MSVCRT__locale_t locale)
{
return MSVCRT__iswprint_l( msvcrt_mbc_to_wc_l(ch, locale), locale );
}
/*********************************************************************
* _ismbcprint (MSVCRT.@)
*/
int CDECL _ismbcprint(unsigned int ch)
{
MSVCRT_wchar_t wch = msvcrt_mbc_to_wc( ch );
return (get_char_typeW( wch ) & (C1_UPPER | C1_LOWER | C1_DIGIT | C1_PUNCT | C1_ALPHA | C1_SPACE));
return _ismbcprint_l( ch, NULL );
}
/*********************************************************************

View File

@ -1207,6 +1207,7 @@ 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);
int __cdecl MSVCRT__iswupper_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswprint_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

@ -615,7 +615,7 @@
@ cdecl _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
# stub _ismbcprint_l(long ptr)
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
# stub _ismbcpunct_l(long ptr)
@ cdecl _ismbcspace(long)

View File

@ -487,7 +487,7 @@
@ stub _ismbclower(long)
@ cdecl _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)
@ stub _ismbcprint_l
@ cdecl _ismbcprint_l(long ptr)
@ cdecl _ismbcpunct(long)
@ stub _ismbcpunct_l
@ cdecl _ismbcspace(long)
@ -1086,7 +1086,7 @@
@ stub _o__ismbclower
@ cdecl _o__ismbclower_l(long ptr) _ismbclower_l
@ cdecl _o__ismbcprint(long) _ismbcprint
@ stub _o__ismbcprint_l
@ cdecl _o__ismbcprint_l(long ptr) _ismbcprint_l
@ cdecl _o__ismbcpunct(long) _ismbcpunct
@ stub _o__ismbcpunct_l
@ cdecl _o__ismbcspace(long) _ismbcspace