Commit 2f425fb8 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

msvcrt: Added _wcsncoll and _wcsncoll_l implementation.

parent 95daa45d
......@@ -1491,7 +1491,7 @@
@ cdecl _wcslwr_s(wstr long) msvcrt._wcslwr_s
@ stub _wcslwr_s_l
@ cdecl _wcsncoll(wstr wstr long) msvcrt._wcsncoll
@ stub _wcsncoll_l
@ cdecl _wcsncoll_l(wstr wstr long ptr) msvcrt._wcsncoll_l
@ cdecl _wcsnicmp(wstr wstr long) msvcrt._wcsnicmp
@ stub _wcsnicmp_l
@ cdecl _wcsnicoll(wstr wstr long) msvcrt._wcsnicoll
......
......@@ -1854,7 +1854,7 @@
@ cdecl _wcslwr_s(wstr long) msvcrt._wcslwr_s
@ stub _wcslwr_s_l
@ cdecl _wcsncoll(wstr wstr long) msvcrt._wcsncoll
@ stub _wcsncoll_l
@ cdecl _wcsncoll_l(wstr wstr long ptr) msvcrt._wcsncoll_l
@ cdecl _wcsnicmp(wstr wstr long) msvcrt._wcsnicmp
@ stub _wcsnicmp_l
@ cdecl _wcsnicoll(wstr wstr long) msvcrt._wcsnicoll
......
......@@ -1151,7 +1151,7 @@
@ cdecl _wcslwr_s(wstr long) msvcrt._wcslwr_s
@ stub _wcslwr_s_l
@ cdecl _wcsncoll(wstr wstr long) msvcrt._wcsncoll
@ stub _wcsncoll_l
@ cdecl _wcsncoll_l(wstr wstr long ptr) msvcrt._wcsncoll_l
@ cdecl _wcsnicmp(wstr wstr long) msvcrt._wcsnicmp
@ stub _wcsnicmp_l
@ cdecl _wcsnicoll(wstr wstr long) msvcrt._wcsnicoll
......
......@@ -1145,7 +1145,7 @@
@ cdecl _wcslwr_s(wstr long) msvcrt._wcslwr_s
@ stub _wcslwr_s_l
@ cdecl _wcsncoll(wstr wstr long) msvcrt._wcsncoll
@ stub _wcsncoll_l
@ cdecl _wcsncoll_l(wstr wstr long ptr) msvcrt._wcsncoll_l
@ cdecl _wcsnicmp(wstr wstr long) msvcrt._wcsnicmp
@ stub _wcsnicmp_l
@ cdecl _wcsnicoll(wstr wstr long) msvcrt._wcsnicoll
......
......@@ -1109,8 +1109,8 @@
# stub _wcslwr_l(wstr ptr)
@ cdecl _wcslwr_s(wstr long) MSVCRT__wcslwr_s
# stub _wcslwr_s_l(wstr long ptr)
@ stub _wcsncoll(wstr wstr long)
# stub _wcsncoll_l(wstr wstr long ptr)
@ cdecl _wcsncoll(wstr wstr long) MSVCRT__wcsncoll
@ cdecl _wcsncoll_l(wstr wstr long ptr) MSVCRT__wcsncoll_l
@ cdecl _wcsnicmp(wstr wstr long) ntdll._wcsnicmp
# stub _wcsnicmp_l(wstr wstr long ptr)
@ cdecl _wcsnicoll(wstr wstr long) MSVCRT__wcsnicoll
......
......@@ -199,6 +199,30 @@ int CDECL MSVCRT__wcslwr_s( MSVCRT_wchar_t* str, MSVCRT_size_t n )
}
/*********************************************************************
* _wcsncoll_l (MSVCRT.@)
*/
int CDECL MSVCRT__wcsncoll_l(const MSVCRT_wchar_t* str1, const MSVCRT_wchar_t* str2,
MSVCRT_size_t count, MSVCRT__locale_t locale)
{
MSVCRT_pthreadlocinfo locinfo;
if(!locale)
locinfo = get_locinfo();
else
locinfo = locale->locinfo;
return CompareStringW(locinfo->lc_handle[MSVCRT_LC_COLLATE], 0, str1, count, str2, count)-CSTR_EQUAL;
}
/*********************************************************************
* _wcsncoll (MSVCRT.@)
*/
int CDECL MSVCRT__wcsncoll(const MSVCRT_wchar_t* str1, const MSVCRT_wchar_t* str2, MSVCRT_size_t count)
{
return MSVCRT__wcsncoll_l(str1, str2, count, NULL);
}
/*********************************************************************
* _wcstod_l (MSVCRT.@)
*/
double CDECL MSVCRT__wcstod_l(const MSVCRT_wchar_t* str, MSVCRT_wchar_t** end,
......
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