std::wcscoll

From cppreference.com
Defined in header <cwchar>
int wcscoll( const wchar_t* lhs, const wchar_t* rhs );

Compares two null-terminated wide strings according to the locale most recently installed by std::setlocale, as defined by the LC_COLLATE category.

Contents

[edit] Parameters

lhs, rhs - pointers to the null-terminated wide strings to compare

[edit] Return value

Negative value if lhs is less than (precedes) rhs.

0 if lhs is equal to rhs.

Positive value if lhs is greater than (follows) rhs.

[edit] Notes

Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".

[edit] Example

[edit] See also

compares two strings in accordance to the current locale
(function)
[virtual]
compares two strings using this facet's collation rules
(virtual protected member function of std::collate)
transform a wide string so that wcscmp would produce the same result as wcscoll
(function)