#include <corecrt_internal.h>
#include <ctype.h>
#include <locale.h>
#include <string.h>
Go to the source code of this file.
◆ _wcscoll_l()
Definition at line 39 of file wcscoll.cpp.
44{
47
48
51
52 if ( _loc_update.GetLocaleT()->locinfo->locale_name[
LC_COLLATE] ==
nullptr )
53 return (
wcscmp(_string1, _string2));
54
56 _loc_update.GetLocaleT()->locinfo->locale_name[
LC_COLLATE],
58 _string1,
59 -1,
60 _string2,
61 -1)) )
62 {
65 }
66
68
69}
int __cdecl __acrt_CompareStringW(_In_ LPCWSTR _LocaleName, _In_ DWORD _DwCmpFlags, _In_CRT_NLS_string_(_CchCount1) PCWCH _LpString1, _In_ int _CchCount1, _In_CRT_NLS_string_(_CchCount2) PCWCH _LpString2, _In_ int _CchCount2)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Referenced by wcscoll().
◆ wcscoll()
Definition at line 71 of file wcscoll.cpp.
75{
76 if (!__acrt_locale_changed())
77 {
78
81
82 return (
wcscmp(_string1, _string2));
83 }
84 else
85 {
86 return _wcscoll_l(_string1, _string2,
nullptr);
87 }
88}
int __cdecl _wcscoll_l(const wchar_t *_string1, const wchar_t *_string2, _locale_t plocinfo)