msvcrt: Add _ismbcl2().

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-15 12:24:57 +01:00 committed by Alexandre Julliard
parent c166dfec00
commit cebb947027
11 changed files with 32 additions and 9 deletions

View File

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

View File

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

View File

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

View File

@ -383,7 +383,7 @@
@ cdecl _ismbckata(long)
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbcl2(long)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclower(long)
@ cdecl _ismbcprint(long)

View File

@ -378,7 +378,7 @@
@ cdecl _ismbckata(long)
@ cdecl _ismbcl0(long)
@ cdecl _ismbcl1(long)
@ stub _ismbcl2(long)
@ cdecl _ismbcl2(long)
@ cdecl _ismbclegal(long)
@ cdecl _ismbclower(long)
@ cdecl _ismbcprint(long)

View File

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

View File

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

View File

@ -2629,3 +2629,11 @@ int CDECL _ismbcl2_l(unsigned int c, MSVCRT__locale_t locale)
return 0;
}
/*********************************************************************
* _ismbcl2 (MSVCRT.@)
*/
int CDECL _ismbcl2(unsigned int c)
{
return _ismbcl2_l(c, NULL);
}

View File

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

View File

@ -3278,6 +3278,9 @@ static void test__ismbclx(void)
ret = _ismbcl1(0);
ok(!ret, "got %d\n", ret);
ret = _ismbcl2(0);
ok(!ret, "got %d\n", ret);
cp = _setmbcp(1252);
ret = _ismbcl0(0x8140);
@ -3286,6 +3289,9 @@ static void test__ismbclx(void)
ret = _ismbcl1(0x889f);
ok(!ret, "got %d\n", ret);
ret = _ismbcl2(0x989f);
ok(!ret, "got %d\n", ret);
_setmbcp(932);
ret = _ismbcl0(0);
@ -3306,6 +3312,15 @@ static void test__ismbclx(void)
ret = _ismbcl1(0x88fd);
ok(!ret, "got %d\n", ret);
ret = _ismbcl2(0);
ok(!ret, "got %d\n", ret);
ret = _ismbcl2(0x989f);
ok(ret, "got %d\n", ret);
ret = _ismbcl2(0x993f);
ok(!ret, "got %d\n", ret);
_setmbcp(cp);
}

View File

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