|
|
|
@@ -6,12 +6,12 @@ namespace cppcore |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Predicate class to caompare to string ignoring the case and variant. |
|
|
|
* @brief Predicate class to compare two strings ignoring the case and variant. |
|
|
|
*/ |
|
|
|
struct op_less_invariant_string |
|
|
|
struct op_invariant_string_less |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @brief Compare to string. |
|
|
|
* @brief Compare two strings. |
|
|
|
* |
|
|
|
* @param[in] lhs Left hand value. |
|
|
|
* @param[in] rhs Right hand value. |
|
|
|
@@ -22,6 +22,24 @@ namespace cppcore |
|
|
|
inline bool operator()(const std::string& lhs, const std::string& rhs) const; |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* @brief Predicate class to compare two strings ignoring the case and variant. |
|
|
|
*/ |
|
|
|
struct op_invariant_string_compare |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @brief Compare two strings. |
|
|
|
* |
|
|
|
* @param[in] lhs Left hand value. |
|
|
|
* @param[in] rhs Right hand value. |
|
|
|
* |
|
|
|
* @retval -1 If lhs is less than rhs. |
|
|
|
* @retval 0 If lhs is equal rhs. |
|
|
|
* @retval 1 If lhs is greater than rhs. |
|
|
|
*/ |
|
|
|
inline int operator()(const std::string& lhs, const std::string& rhs) const; |
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#include "compare.inl" |