Commit 1750a696 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Add _ismbcprint_l implementation.

parent 4bca5b9f
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -1555,12 +1555,19 @@ int CDECL _ismbcspace(unsigned int ch)
}
/*********************************************************************
* _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 );
}
/*********************************************************************
......
......@@ -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)
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment