msvcrt: Add _ismbcupper_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:33:19 +02:00 committed by Alexandre Julliard
parent 1ad2094284
commit 95b3ff9f74
11 changed files with 20 additions and 12 deletions

View File

@ -57,7 +57,7 @@
@ cdecl _ismbcsymbol(long) ucrtbase._ismbcsymbol @ cdecl _ismbcsymbol(long) ucrtbase._ismbcsymbol
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) ucrtbase._ismbcupper @ cdecl _ismbcupper(long) ucrtbase._ismbcupper
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr) ucrtbase._ismbcupper_l
@ cdecl _ismbslead(ptr ptr) ucrtbase._ismbslead @ cdecl _ismbslead(ptr ptr) ucrtbase._ismbslead
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) ucrtbase._ismbstrail @ cdecl _ismbstrail(ptr ptr) ucrtbase._ismbstrail

View File

@ -430,7 +430,7 @@
@ cdecl _o__ismbcsymbol(long) ucrtbase._o__ismbcsymbol @ cdecl _o__ismbcsymbol(long) ucrtbase._o__ismbcsymbol
@ stub _o__ismbcsymbol_l @ stub _o__ismbcsymbol_l
@ cdecl _o__ismbcupper(long) ucrtbase._o__ismbcupper @ cdecl _o__ismbcupper(long) ucrtbase._o__ismbcupper
@ stub _o__ismbcupper_l @ cdecl _o__ismbcupper_l(long ptr) ucrtbase._o__ismbcupper_l
@ cdecl _o__ismbslead(ptr ptr) ucrtbase._o__ismbslead @ cdecl _o__ismbslead(ptr ptr) ucrtbase._o__ismbslead
@ stub _o__ismbslead_l @ stub _o__ismbslead_l
@ cdecl _o__ismbstrail(ptr ptr) ucrtbase._o__ismbstrail @ cdecl _o__ismbstrail(ptr ptr) ucrtbase._o__ismbstrail

View File

@ -1005,7 +1005,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -1351,7 +1351,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -1356,7 +1356,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -677,7 +677,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -655,7 +655,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -1491,13 +1491,20 @@ int CDECL _ismbclower(unsigned int ch)
return _ismbclower_l( ch, NULL ); return _ismbclower_l( ch, NULL );
} }
/*********************************************************************
* _ismbcupper_l (MSVCRT.@)
*/
int CDECL _ismbcupper_l(unsigned int ch, MSVCRT__locale_t locale)
{
return MSVCRT__iswupper_l( msvcrt_mbc_to_wc_l(ch, locale), locale );
}
/********************************************************************* /*********************************************************************
* _ismbcupper (MSVCRT.@) * _ismbcupper (MSVCRT.@)
*/ */
int CDECL _ismbcupper(unsigned int ch) int CDECL _ismbcupper(unsigned int ch)
{ {
MSVCRT_wchar_t wch = msvcrt_mbc_to_wc( ch ); return _ismbcupper_l( ch, NULL );
return (get_char_typeW( wch ) & C1_LOWER);
} }
/********************************************************************* /*********************************************************************

View File

@ -1206,6 +1206,7 @@ int __cdecl MSVCRT__iswdigit_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswgraph_l(MSVCRT_wchar_t, MSVCRT__locale_t); int __cdecl MSVCRT__iswgraph_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswalpha_l(MSVCRT_wchar_t, MSVCRT__locale_t); int __cdecl MSVCRT__iswalpha_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswlower_l(MSVCRT_wchar_t, MSVCRT__locale_t); int __cdecl MSVCRT__iswlower_l(MSVCRT_wchar_t, MSVCRT__locale_t);
int __cdecl MSVCRT__iswupper_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

@ -623,7 +623,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
# stub _ismbcsymbol_l(long ptr) # stub _ismbcsymbol_l(long ptr)
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
# stub _ismbcupper_l(long ptr) @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
# stub _ismbslead_l(long ptr) # stub _ismbslead_l(long ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)

View File

@ -495,7 +495,7 @@
@ cdecl _ismbcsymbol(long) @ cdecl _ismbcsymbol(long)
@ stub _ismbcsymbol_l @ stub _ismbcsymbol_l
@ cdecl _ismbcupper(long) @ cdecl _ismbcupper(long)
@ stub _ismbcupper_l @ cdecl _ismbcupper_l(long ptr)
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ stub _ismbslead_l @ stub _ismbslead_l
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ -1094,7 +1094,7 @@
@ cdecl _o__ismbcsymbol(long) _ismbcsymbol @ cdecl _o__ismbcsymbol(long) _ismbcsymbol
@ stub _o__ismbcsymbol_l @ stub _o__ismbcsymbol_l
@ cdecl _o__ismbcupper(long) _ismbcupper @ cdecl _o__ismbcupper(long) _ismbcupper
@ stub _o__ismbcupper_l @ cdecl _o__ismbcupper_l(long ptr) _ismbcupper_l
@ cdecl _o__ismbslead(ptr ptr) _ismbslead @ cdecl _o__ismbslead(ptr ptr) _ismbslead
@ stub _o__ismbslead_l @ stub _o__ismbslead_l
@ cdecl _o__ismbstrail(ptr ptr) _ismbstrail @ cdecl _o__ismbstrail(ptr ptr) _ismbstrail