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

msvcrt: Added _strnicoll_l implementation.

parent d32bc75a
......@@ -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)
......
......@@ -586,6 +586,26 @@ int CDECL MSVCRT_strncoll( const char* str1, const char* str2, MSVCRT_size_t cou
}
/*********************************************************************
* _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.@)
*/
int CDECL MSVCRT_strcpy_s( char* dst, MSVCRT_size_t elem, const char* src )
......
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