Commit fd74aeb7 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Add _ismbcdigit_l implementation.

parent 19c05e60
...@@ -31,7 +31,7 @@ ...@@ -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
......
...@@ -404,7 +404,7 @@ ...@@ -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
......
...@@ -979,7 +979,7 @@ ...@@ -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)
......
...@@ -1325,7 +1325,7 @@ ...@@ -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)
......
...@@ -1330,7 +1330,7 @@ ...@@ -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)
......
...@@ -651,7 +651,7 @@ ...@@ -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)
......
...@@ -629,7 +629,7 @@ ...@@ -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)
......
...@@ -1428,12 +1428,19 @@ int CDECL _ismbbkana(unsigned int c) ...@@ -1428,12 +1428,19 @@ int CDECL _ismbbkana(unsigned int c)
} }
/********************************************************************* /*********************************************************************
* _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);
} }
/********************************************************************* /*********************************************************************
......
...@@ -1202,6 +1202,7 @@ int __cdecl MSVCRT__wcsnicmp(const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, MSVCR ...@@ -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)
......
...@@ -597,7 +597,7 @@ ...@@ -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)
......
...@@ -469,7 +469,7 @@ ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment