mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-20 06:49:30 +00:00
msvcrt: Added _strnicoll_l implementation.
This commit is contained in:
parent
d32bc75a2f
commit
b5d1d8e2b5
|
@ -938,8 +938,8 @@
|
|||
@ cdecl _strncoll_l(str str long ptr) MSVCRT_strncoll
|
||||
@ cdecl _strnicmp(str str long) ntdll._strnicmp
|
||||
# stub _strnicmp_l(str str long ptr)
|
||||
@ stub _strnicoll(str str long)
|
||||
# stub _strnicoll_l(str str long ptr)
|
||||
@ cdecl _strnicoll(str str long) MSVCRT__strnicoll
|
||||
@ cdecl _strnicoll_l(str str long ptr) MSVCRT__strnicoll_l
|
||||
@ cdecl _strnset(str long long) MSVCRT__strnset
|
||||
# stub _strnset_s(str long long long)
|
||||
@ cdecl _strrev(str)
|
||||
|
|
|
@ -585,6 +585,26 @@ int CDECL MSVCRT_strncoll( const char* str1, const char* str2, MSVCRT_size_t cou
|
|||
return MSVCRT_strncoll_l(str1, str2, count, NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strnicoll_l (MSVCRT.@)
|
||||
*/
|
||||
int CDECL MSVCRT__strnicoll_l( const char* str1, const char* str2, MSVCRT_size_t count, MSVCRT__locale_t locale )
|
||||
{
|
||||
if(!locale)
|
||||
locale = get_locale();
|
||||
|
||||
return CompareStringA(locale->locinfo->lc_handle[MSVCRT_LC_CTYPE], NORM_IGNORECASE,
|
||||
str1, count, str2, count)-2;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _strnicoll (MSVCRT.@)
|
||||
*/
|
||||
int CDECL MSVCRT__strnicoll( const char* str1, const char* str2, MSVCRT_size_t count )
|
||||
{
|
||||
return MSVCRT__strnicoll_l(str1, str2, count, NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* strcpy_s (MSVCRT.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue