msvcrt: Add _ismbcl2_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>
stable
Nikolay Sivov 2019-02-15 12:24:48 +01:00 committed by Alexandre Julliard
parent 7d383d573d
commit c166dfec00
9 changed files with 29 additions and 8 deletions

View File

@ -43,7 +43,7 @@
@ cdecl _ismbcl1(long) ucrtbase._ismbcl1
@ cdecl _ismbcl1_l(long ptr) ucrtbase._ismbcl1_l
@ cdecl _ismbcl2(long) ucrtbase._ismbcl2
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr) ucrtbase._ismbcl2_l
@ cdecl _ismbclegal(long) ucrtbase._ismbclegal
@ cdecl _ismbclegal_l(long ptr) ucrtbase._ismbclegal_l
@ cdecl _ismbclower(long) ucrtbase._ismbclower

View File

@ -991,7 +991,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)

View File

@ -1337,7 +1337,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)

View File

@ -1342,7 +1342,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)

View File

@ -663,7 +663,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)

View File

@ -641,7 +641,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)

View File

@ -2608,3 +2608,24 @@ int CDECL _ismbcl1(unsigned int c)
{
return _ismbcl1_l(c, NULL);
}
/*********************************************************************
* _ismbcl2_l (MSVCRT.@)
*/
int CDECL _ismbcl2_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-2 */
return _ismbclegal_l(c, locale) && c >= 0x989f && c <= 0xeaa4;
}
return 0;
}

View File

@ -612,7 +612,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
# stub _ismbcl2_l(long ptr)
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ cdecl _ismbclower(long)

View File

@ -481,7 +481,7 @@
@ cdecl _ismbcl1(long)
@ cdecl _ismbcl1_l(long ptr)
@ stub _ismbcl2(long)
@ stub _ismbcl2_l
@ cdecl _ismbcl2_l(long ptr)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclegal_l(long ptr)
@ stub _ismbclower(long)