msvcrt: Add _ismbcl0_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:32 +01:00 committed by Alexandre Julliard
parent 622c218cb2
commit 2d89bccfc3
9 changed files with 29 additions and 14 deletions

View File

@ -39,7 +39,7 @@
@ cdecl _ismbckata(long) ucrtbase._ismbckata
@ stub _ismbckata_l
@ cdecl _ismbcl0(long) ucrtbase._ismbcl0
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr) ucrtbase._ismbcl0_l
@ cdecl _ismbcl1(long) ucrtbase._ismbcl1
@ stub _ismbcl1_l
@ cdecl _ismbcl2(long) ucrtbase._ismbcl2

View File

@ -987,7 +987,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)

View File

@ -1333,7 +1333,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)

View File

@ -1338,7 +1338,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)

View File

@ -659,7 +659,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)

View File

@ -637,7 +637,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)

View File

@ -2551,16 +2551,31 @@ unsigned int CDECL _mbctokata(unsigned int c)
return c;
}
/*********************************************************************
* _ismbcl0_l (MSVCRT.@)
*/
int CDECL _ismbcl0_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 non-Kanji */
return _ismbclegal(c) && c >= 0x8140 && c <= 0x889e;
}
return 0;
}
/*********************************************************************
* _ismbcl0 (MSVCRT.@)
*/
int CDECL _ismbcl0(unsigned int c)
{
if(get_mbcinfo()->mbcodepage == 932)
{
/* JIS non-Kanji */
return _ismbclegal(c) && c >= 0x8140 && c <= 0x889e;
}
return 0;
return _ismbcl0_l(c, NULL);
}

View File

@ -608,7 +608,7 @@
@ cdecl _ismbckata(long)
# stub _ismbckata_l(long ptr)
@ cdecl _ismbcl0(long)
# stub _ismbcl0_l(long ptr)
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
# stub _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)

View File

@ -477,7 +477,7 @@
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ cdecl _ismbcl0_l(long ptr)
@ stub _ismbcl1(long)
@ stub _ismbcl1_l
@ stub _ismbcl2(long)