msvcrt: Add ismbblead_l implementation.

This commit is contained in:
Piotr Caban 2015-07-06 19:40:01 +02:00 committed by Alexandre Julliard
parent f5e16e0638
commit 0eb112aa6e
8 changed files with 24 additions and 8 deletions

View File

@ -966,7 +966,7 @@
@ stub _ismbbkpunct(long)
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
@ stub _ismbbprint_l
@ stub _ismbbpunct(long)

View File

@ -1313,7 +1313,7 @@
@ stub _ismbbkpunct(long)
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
@ stub _ismbbprint_l
@ stub _ismbbpunct(long)

View File

@ -1314,7 +1314,7 @@
@ stub _ismbbkpunct(long)
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
@ stub _ismbbprint_l
@ stub _ismbbpunct(long)

View File

@ -1219,7 +1219,7 @@
@ cdecl _ismbbkpunct(long) msvcr120._ismbbkpunct
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long) msvcr120._ismbblead
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr) msvcr120._ismbblead_l
@ cdecl _ismbbprint(long) msvcr120._ismbbprint
@ stub _ismbbprint_l
@ cdecl _ismbbpunct(long) msvcr120._ismbbpunct

View File

@ -639,7 +639,7 @@
@ stub _ismbbkpunct(long)
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
@ stub _ismbbprint_l
@ stub _ismbbpunct(long)

View File

@ -616,7 +616,7 @@
@ stub _ismbbkpunct(long)
@ stub _ismbbkpunct_l
@ cdecl _ismbblead(long)
@ stub _ismbblead_l
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
@ stub _ismbbprint_l
@ stub _ismbbpunct(long)

View File

@ -1374,12 +1374,28 @@ int CDECL _ismbckata(unsigned int c)
return 0;
}
/*********************************************************************
* _ismbblead_l(MSVCRT.@)
*/
int CDECL _ismbblead_l(unsigned int c, MSVCRT__locale_t locale)
{
MSVCRT_pthreadmbcinfo mbcinfo;
if(!locale)
mbcinfo = get_mbcinfo();
else
mbcinfo = locale->mbcinfo;
return (mbcinfo->mbctype[(c&0xff) + 1] & _M1) != 0;
}
/*********************************************************************
* _ismbblead(MSVCRT.@)
*/
int CDECL _ismbblead(unsigned int c)
{
return (get_mbcinfo()->mbctype[(c&0xff) + 1] & _M1) != 0;
return _ismbblead_l(c, NULL);
}

View File

@ -585,7 +585,7 @@
@ stub _ismbbkpunct(long)
# stub _ismbbkpunct_l(long ptr)
@ cdecl _ismbblead(long)
# stub _ismbblead_l(long ptr)
@ cdecl _ismbblead_l(long ptr)
@ stub _ismbbprint(long)
# stub _ismbbprint_l(long ptr)
@ stub _ismbbpunct(long)