std::wcscoll (3) - Linux Manuals
std::wcscoll: std::wcscoll
NAME
Synopsis
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.
Parameters
lhs, rhs - pointers to the null-terminated wide strings to compare
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.
Notes
Collation order is the dictionary order: the position of the letter in the national alphabet (its equivalence class) has higher priority than its case or variant. Within an equivalence class, lowercase characters collate before their uppercase equivalents and locale-specific order may apply to the characters with diacritics. In some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "dzs" in Hungarian follows "dz" and precedes "g".
Example
// Run this code
Output:
See also
strcoll (function)
do_compare compares two strings using this facet's collation rules
[virtual]
wcsxfrm (function)