A version of the std::less predicate for characters that supports case insensitive comparison.
More...
#include <ookii/string_helper.h>
|
|
using | is_transparent = int |
| | Indicates that this function accepts any type and uses perfect forwarding.
|
| |
|
| | char_less (bool case_sensitive=true, std::locale loc={}) |
| | Initializes a new instance of the char_less class. More...
|
| |
| template<typename CharType > |
| bool | operator() (CharType &&left, CharType &&right) const |
| | Compares two characters. More...
|
| |
A version of the std::less predicate for characters that supports case insensitive comparison.
◆ char_less()
| ookii::char_less::char_less |
( |
bool |
case_sensitive = true, |
|
|
std::locale |
loc = {} |
|
) |
| |
|
inline |
Initializes a new instance of the char_less class.
- Parameters
-
| case_sensitive | true to perform case sensitive comparisons; false to perform case insensitive comparisons. |
| loc | The locale to use for case insensitive comparisons. This is not used for case sensitive comparisons. |
◆ operator()()
template<typename CharType >
| bool ookii::char_less::operator() |
( |
CharType && |
left, |
|
|
CharType && |
right |
|
) |
| const |
|
inline |
Compares two characters.
- Template Parameters
-
| CharType | The type of the characters. |
- Parameters
-
| left | The first character. |
| right | The second character. |
- Returns
true if left is less than right; otherwise, false.
The documentation for this struct was generated from the following file:
- /mnt/d/Sven/Documents/Code/Ookii.CommandLine.Cpp/include/ookii/string_helper.h