msvcrt: Added _ismbcl0().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2017-08-08 16:44:41 +03:00 committed by Alexandre Julliard
parent 75ec559b82
commit 1a6e50ce97
11 changed files with 47 additions and 9 deletions

View File

@ -986,7 +986,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l

View File

@ -1332,7 +1332,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l

View File

@ -1337,7 +1337,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l

View File

@ -381,7 +381,7 @@
@ cdecl _ismbcgraph(long)
@ cdecl _ismbchira(long)
@ cdecl _ismbckata(long)
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbclegal(long)

View File

@ -376,7 +376,7 @@
@ cdecl _ismbcgraph(long)
@ cdecl _ismbchira(long)
@ cdecl _ismbckata(long)
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbclegal(long)

View File

@ -658,7 +658,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l

View File

@ -636,7 +636,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l

View File

@ -2443,3 +2443,17 @@ unsigned int CDECL _mbctokata(unsigned int c)
return (c - 0x829f) + 0x8340 + (c >= 0x82de ? 1 : 0);
return c;
}
/*********************************************************************
* _ismbcl0 (MSVCRT.@)
*/
int CDECL _ismbcl0(unsigned int c)
{
if(get_mbcinfo()->mbcodepage == 932)
{
/* JIS non-Kanji */
return (c >= 0x8140 && c <= 0x889e);
}
return 0;
}

View File

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

View File

@ -3193,6 +3193,29 @@ static void test__mbscmp(void)
ok(ret == 1, "got %d\n", ret);
}
static void test__ismbclx(void)
{
int cp, ret;
ret = _ismbcl0(0);
ok(!ret, "got %d\n", ret);
cp = _setmbcp(1252);
ret = _ismbcl0(0x8140);
ok(!ret, "got %d\n", ret);
_setmbcp(932);
ret = _ismbcl0(0);
ok(!ret, "got %d\n", ret);
ret = _ismbcl0(0x8140);
ok(ret, "got %d\n", ret);
_setmbcp(cp);
}
START_TEST(string)
{
char mem[100];
@ -3308,4 +3331,5 @@ START_TEST(string)
test__strnset_s();
test__wcsset_s();
test__mbscmp();
test__ismbclx();
}

View File

@ -476,7 +476,7 @@
@ stub _ismbchira_l
@ cdecl _ismbckata(long)
@ stub _ismbckata_l
@ stub _ismbcl0(long)
@ cdecl _ismbcl0(long)
@ stub _ismbcl0_l
@ stub _ismbcl1(long)
@ stub _ismbcl1_l