msvcrt: Add _ismbcl1_l().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-02-14 14:35:40 +01:00 committed by Alexandre Julliard
parent 2d89bccfc3
commit 1b86a06ff8
9 changed files with 29 additions and 8 deletions

View File

@ -41,7 +41,7 @@
@ cdecl _ismbcl0(long) ucrtbase._ismbcl0
@ cdecl _ismbcl0_l(long ptr) ucrtbase._ismbcl0_l
@ cdecl _ismbcl1(long) ucrtbase._ismbcl1
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr) ucrtbase._ismbcl1_l
@ cdecl _ismbcl2(long) ucrtbase._ismbcl2
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long) ucrtbase._ismbclegal

View File

@ -989,7 +989,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)

View File

@ -1335,7 +1335,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)

View File

@ -1340,7 +1340,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)

View File

@ -661,7 +661,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)

View File

@ -639,7 +639,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)

View File

@ -2579,3 +2579,24 @@ int CDECL _ismbcl0(unsigned int c)
{
return _ismbcl0_l(c, NULL);
}
/*********************************************************************
* _ismbcl1_l (MSVCRT.@)
*/
int CDECL _ismbcl1_l(unsigned int c, MSVCRT__locale_t locale)
{
MSVCRT_pthreadmbcinfo mbcinfo;
if(!locale)
mbcinfo = get_mbcinfo();
else
mbcinfo = locale->mbcinfo;
if(mbcinfo->mbcodepage == 932)
{
/* JIS level-1 */
return _ismbclegal(c) && c >= 0x889f && c <= 0x9872;
}
return 0;
}

View File

@ -610,7 +610,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
# stub _ismbcl1_l(long ptr)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
# stub _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)

View File

@ -479,7 +479,7 @@
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbclegal(long)