LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lc::StringHelper::cmpCaseInsensetive Struct Reference

#include <string_helper.h>

Inheritance diagram for lc::StringHelper::cmpCaseInsensetive:
Collaboration diagram for lc::StringHelper::cmpCaseInsensetive:

Classes

struct  nocase_compare
 

Public Member Functions

bool operator() (const std::string &s1, const std::string &s2) const
 

Detailed Description

Comparator for map to setup case Insensitive comparison ofstd::strings, useful in std::map

Definition at line 58 of file string_helper.h.

Member Function Documentation

bool lc::StringHelper::cmpCaseInsensetive::operator() ( const std::string &  s1,
const std::string &  s2 
) const
inline

Definition at line 67 of file string_helper.h.

67  {
68  return std::lexicographical_compare
69  (s1.begin (), s1.end (), // source range
70  s2.begin (), s2.end (), // dest range
71  nocase_compare ()); // comparison
72  }

The documentation for this struct was generated from the following file: