Commit 8d2a2c94 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Use _iswctype_l in _iswspace_l function.

parent ae9c385e
......@@ -1913,6 +1913,22 @@ MSVCRT_size_t CDECL MSVCRT_wcrtomb( char *dst, MSVCRT_wchar_t ch, MSVCRT_mbstate
}
/*********************************************************************
* _iswctype_l (MSVCRT.@)
*/
INT CDECL MSVCRT__iswctype_l( MSVCRT_wchar_t wc, MSVCRT_wctype_t type, MSVCRT__locale_t locale )
{
return (get_char_typeW(wc) & 0xffff) & type;
}
/*********************************************************************
* iswctype (MSVCRT.@)
*/
INT CDECL MSVCRT_iswctype( MSVCRT_wchar_t wc, MSVCRT_wctype_t type )
{
return (get_char_typeW(wc) & 0xfff) & type;
}
/*********************************************************************
* iswalnum (MSVCRT.@)
*/
INT CDECL MSVCRT_iswalnum( MSVCRT_wchar_t wc )
......@@ -2045,7 +2061,7 @@ INT CDECL MSVCRT_iswpunct( MSVCRT_wchar_t wc )
*/
INT CDECL MSVCRT__iswspace_l( MSVCRT_wchar_t wc, MSVCRT__locale_t locale )
{
return isspaceW( wc );
return MSVCRT__iswctype_l( wc, MSVCRT__SPACE, locale );
}
/*********************************************************************
......@@ -2053,7 +2069,7 @@ INT CDECL MSVCRT__iswspace_l( MSVCRT_wchar_t wc, MSVCRT__locale_t locale )
*/
INT CDECL MSVCRT_iswspace( MSVCRT_wchar_t wc )
{
return isspaceW( wc );
return MSVCRT__iswspace_l( wc, NULL );
}
/*********************************************************************
......@@ -2089,22 +2105,6 @@ int CDECL MSVCRT__iswxdigit_l( MSVCRT_wchar_t wc, MSVCRT__locale_t locale )
}
/*********************************************************************
* _iswctype_l (MSVCRT.@)
*/
INT CDECL MSVCRT__iswctype_l( MSVCRT_wchar_t wc, MSVCRT_wctype_t type, MSVCRT__locale_t locale )
{
return (get_char_typeW(wc) & 0xffff) & type;
}
/*********************************************************************
* iswctype (MSVCRT.@)
*/
INT CDECL MSVCRT_iswctype( MSVCRT_wchar_t wc, MSVCRT_wctype_t type )
{
return (get_char_typeW(wc) & 0xfff) & type;
}
/*********************************************************************
* _iswblank_l (MSVCRT.@)
*/
INT CDECL MSVCRT__iswblank_l( MSVCRT_wchar_t wc, MSVCRT__locale_t locale )
......
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