msvcrt: Add _ismbcdigit_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:58 +02:00 committed by Alexandre Julliard
parent 19c05e60a3
commit fd74aeb726
11 changed files with 20 additions and 12 deletions

View File

@ -31,7 +31,7 @@
@ stub _ismbcblank @ stub _ismbcblank
@ stub _ismbcblank_l @ stub _ismbcblank_l
@ cdecl _ismbcdigit(long) ucrtbase._ismbcdigit @ cdecl _ismbcdigit(long) ucrtbase._ismbcdigit
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr) ucrtbase._ismbcdigit_l
@ cdecl _ismbcgraph(long) ucrtbase._ismbcgraph @ cdecl _ismbcgraph(long) ucrtbase._ismbcgraph
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) ucrtbase._ismbchira @ cdecl _ismbchira(long) ucrtbase._ismbchira

View File

@ -404,7 +404,7 @@
@ stub _o__ismbcblank @ stub _o__ismbcblank
@ stub _o__ismbcblank_l @ stub _o__ismbcblank_l
@ cdecl _o__ismbcdigit(long) ucrtbase._o__ismbcdigit @ cdecl _o__ismbcdigit(long) ucrtbase._o__ismbcdigit
@ stub _o__ismbcdigit_l @ cdecl _o__ismbcdigit_l(long ptr) ucrtbase._o__ismbcdigit_l
@ cdecl _o__ismbcgraph(long) ucrtbase._o__ismbcgraph @ cdecl _o__ismbcgraph(long) ucrtbase._o__ismbcgraph
@ stub _o__ismbcgraph_l @ stub _o__ismbcgraph_l
@ cdecl _o__ismbchira(long) ucrtbase._o__ismbchira @ cdecl _o__ismbchira(long) ucrtbase._o__ismbchira

View File

@ -979,7 +979,7 @@
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)
@ stub _ismbcalpha_l @ stub _ismbcalpha_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -1325,7 +1325,7 @@
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)
@ stub _ismbcalpha_l @ stub _ismbcalpha_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -1330,7 +1330,7 @@
@ stub _ismbcblank @ stub _ismbcblank
@ stub _ismbcblank_l @ stub _ismbcblank_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -651,7 +651,7 @@
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)
@ stub _ismbcalpha_l @ stub _ismbcalpha_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -629,7 +629,7 @@
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)
@ stub _ismbcalpha_l @ stub _ismbcalpha_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -1427,13 +1427,20 @@ int CDECL _ismbbkana(unsigned int c)
return _ismbbkana_l( c, NULL ); return _ismbbkana_l( c, NULL );
} }
/*********************************************************************
* _ismbcdigit_l(MSVCRT.@)
*/
int CDECL _ismbcdigit_l(unsigned int ch, MSVCRT__locale_t locale)
{
return MSVCRT__iswdigit_l( msvcrt_mbc_to_wc_l(ch, locale), locale );
}
/********************************************************************* /*********************************************************************
* _ismbcdigit(MSVCRT.@) * _ismbcdigit(MSVCRT.@)
*/ */
int CDECL _ismbcdigit(unsigned int ch) int CDECL _ismbcdigit(unsigned int ch)
{ {
MSVCRT_wchar_t wch = msvcrt_mbc_to_wc( ch ); return _ismbcdigit_l( ch, NULL );
return (get_char_typeW( wch ) & C1_DIGIT);
} }
/********************************************************************* /*********************************************************************

View File

@ -1202,6 +1202,7 @@ int __cdecl MSVCRT__wcsnicmp(const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, MSVCR
int __cdecl MSVCRT_towlower(MSVCRT_wint_t); int __cdecl MSVCRT_towlower(MSVCRT_wint_t);
int __cdecl MSVCRT_towupper(MSVCRT_wint_t); int __cdecl MSVCRT_towupper(MSVCRT_wint_t);
int __cdecl MSVCRT__iswalnum_l(MSVCRT_wchar_t, MSVCRT__locale_t); int __cdecl MSVCRT__iswalnum_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswdigit_l(MSVCRT_wchar_t, MSVCRT__locale_t);
/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd) /* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
* #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0) * #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)

View File

@ -597,7 +597,7 @@
@ cdecl _ismbcalpha(long) @ cdecl _ismbcalpha(long)
# stub _ismbcalpha_l(long ptr) # stub _ismbcalpha_l(long ptr)
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
# stub _ismbcdigit_l(long ptr) @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
# stub _ismbcgraph_l(long ptr) # stub _ismbcgraph_l(long ptr)
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)

View File

@ -469,7 +469,7 @@
@ stub _ismbcblank @ stub _ismbcblank
@ stub _ismbcblank_l @ stub _ismbcblank_l
@ cdecl _ismbcdigit(long) @ cdecl _ismbcdigit(long)
@ stub _ismbcdigit_l @ cdecl _ismbcdigit_l(long ptr)
@ cdecl _ismbcgraph(long) @ cdecl _ismbcgraph(long)
@ stub _ismbcgraph_l @ stub _ismbcgraph_l
@ cdecl _ismbchira(long) @ cdecl _ismbchira(long)
@ -1068,7 +1068,7 @@
@ stub _o__ismbcblank @ stub _o__ismbcblank
@ stub _o__ismbcblank_l @ stub _o__ismbcblank_l
@ cdecl _o__ismbcdigit(long) _ismbcdigit @ cdecl _o__ismbcdigit(long) _ismbcdigit
@ stub _o__ismbcdigit_l @ cdecl _o__ismbcdigit_l(long ptr) _ismbcdigit_l
@ cdecl _o__ismbcgraph(long) _ismbcgraph @ cdecl _o__ismbcgraph(long) _ismbcgraph
@ stub _o__ismbcgraph_l @ stub _o__ismbcgraph_l
@ cdecl _o__ismbchira(long) _ismbchira @ cdecl _o__ismbchira(long) _ismbchira