msvcrt: Add _ismbclegal_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 2019-02-14 14:35:07 +01:00 committed by Alexandre Julliard
parent 790f97cb30
commit 64453ea28b
9 changed files with 17 additions and 9 deletions

View File

@ -45,7 +45,7 @@
@ cdecl _ismbcl2(long) ucrtbase._ismbcl2
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long) ucrtbase._ismbclegal
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr) ucrtbase._ismbclegal_l
@ cdecl _ismbclower(long) ucrtbase._ismbclower
@ stub _ismbclower_l
@ cdecl _ismbcprint(long) ucrtbase._ismbcprint

View File

@ -993,7 +993,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbcprint(long)

View File

@ -1339,7 +1339,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ stub _ismbcprint(long)

View File

@ -1344,7 +1344,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbcprint(long)

View File

@ -665,7 +665,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbcprint(long)

View File

@ -643,7 +643,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbcprint(long)

View File

@ -1574,12 +1574,20 @@ int CDECL _ismbbtrail(unsigned int c)
return _ismbbtrail_l(c, NULL);
}
/*********************************************************************
* _ismbclegal_l(MSVCRT.@)
*/
int CDECL _ismbclegal_l(unsigned int c, MSVCRT__locale_t locale)
{
return _ismbblead_l(HIBYTE(c), locale) && _ismbbtrail_l(LOBYTE(c), locale);
}
/*********************************************************************
* _ismbclegal(MSVCRT.@)
*/
int CDECL _ismbclegal(unsigned int c)
{
return _ismbblead(HIBYTE(c)) && _ismbbtrail(LOBYTE(c));
return _ismbclegal_l(c, NULL);
}
/*********************************************************************

View File

@ -614,7 +614,7 @@
@ stub _ismbcl2(long)
# stub _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
# stub _ismbclegal_l(long ptr)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)
# stub _ismbclower_l(long ptr)
@ cdecl _ismbcprint(long)

View File

@ -483,7 +483,7 @@
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)
@ stub _ismbclegal_l
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)
@ stub _ismbclower_l
@ cdecl _ismbcprint(long)