msvcrt: Add _ismbbkana_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 2020-07-16 15:32:46 +02:00 committed by Alexandre Julliard
parent a81f55093e
commit fbbcd3f8f8
11 changed files with 33 additions and 19 deletions

View File

@ -11,7 +11,7 @@
@ cdecl _ismbbkalnum(long) ucrtbase._ismbbkalnum
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long) ucrtbase._ismbbkana
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr) ucrtbase._ismbbkana_l
@ cdecl _ismbbkprint(long) ucrtbase._ismbbkprint
@ stub _ismbbkprint_l
@ cdecl _ismbbkpunct(long) ucrtbase._ismbbkpunct

View File

@ -384,7 +384,7 @@
@ stub _o__ismbbkalnum
@ stub _o__ismbbkalnum_l
@ cdecl _o__ismbbkana(long) ucrtbase._o__ismbbkana
@ stub _o__ismbbkana_l
@ cdecl _o__ismbbkana_l(long ptr) ucrtbase._o__ismbbkana_l
@ stub _o__ismbbkprint
@ stub _o__ismbbkprint_l
@ stub _o__ismbbkpunct

View File

@ -961,7 +961,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)

View File

@ -1307,7 +1307,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)

View File

@ -1310,7 +1310,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)

View File

@ -1213,7 +1213,7 @@
@ cdecl _ismbbkalnum(long) msvcr120._ismbbkalnum
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long) msvcr120._ismbbkana
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr) msvcr120._ismbbkana_l
@ cdecl _ismbbkprint(long) msvcr120._ismbbkprint
@ stub _ismbbkprint_l
@ cdecl _ismbbkpunct(long) msvcr120._ismbbkpunct

View File

@ -633,7 +633,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)

View File

@ -611,7 +611,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)

View File

@ -1389,17 +1389,31 @@ int CDECL _mbbtype(unsigned char c, int type)
}
/*********************************************************************
* _ismbbkana(MSVCRT.@)
* _ismbbkana_l(MSVCRT.@)
*/
int CDECL _ismbbkana_l(unsigned int c, MSVCRT__locale_t locale)
{
MSVCRT_pthreadmbcinfo mbcinfo;
if(locale)
mbcinfo = locale->mbcinfo;
else
mbcinfo = get_mbcinfo();
if(mbcinfo->mbcodepage == 932)
{
/* Japanese/Katakana, CP 932 */
return (c >= 0xa1 && c <= 0xdf);
}
return 0;
}
/*********************************************************************
* _ismbbkana(MSVCRT.@)
*/
int CDECL _ismbbkana(unsigned int c)
{
/* FIXME: use lc_ctype when supported, not lc_all */
if(get_mbcinfo()->mbcodepage == 932)
{
/* Japanese/Katakana, CP 932 */
return (c >= 0xa1 && c <= 0xdf);
}
return 0;
return _ismbbkana_l( c, NULL );
}
/*********************************************************************

View File

@ -579,7 +579,7 @@
@ stub _ismbbkalnum(long)
# stub _ismbbkalnum_l(long ptr)
@ cdecl _ismbbkana(long)
# stub _ismbbkana_l(long ptr)
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
# stub _ismbbkprint_l(long ptr)
@ stub _ismbbkpunct(long)

View File

@ -449,7 +449,7 @@
@ stub _ismbbkalnum(long)
@ stub _ismbbkalnum_l
@ cdecl _ismbbkana(long)
@ stub _ismbbkana_l
@ cdecl _ismbbkana_l(long ptr)
@ stub _ismbbkprint(long)
@ stub _ismbbkprint_l
@ stub _ismbbkpunct(long)
@ -1048,7 +1048,7 @@
@ stub _o__ismbbkalnum
@ stub _o__ismbbkalnum_l
@ cdecl _o__ismbbkana(long) _ismbbkana
@ stub _o__ismbbkana_l
@ cdecl _o__ismbbkana_l(long ptr) _ismbbkana_l
@ stub _o__ismbbkprint
@ stub _o__ismbbkprint_l
@ stub _o__ismbbkpunct