ManaPlus
Public Member Functions
anonymous_namespace{playerrelations.cpp}::SortPlayersFunctor Class Reference

Public Member Functions

 SortPlayersFunctor ()
 
bool operator() (const std::string &str1, const std::string &str2) const
 

Detailed Description

Definition at line 61 of file playerrelations.cpp.

Constructor & Destructor Documentation

◆ SortPlayersFunctor()

anonymous_namespace{playerrelations.cpp}::SortPlayersFunctor::SortPlayersFunctor ( )
inline

Definition at line 64 of file playerrelations.cpp.

65  { }

Member Function Documentation

◆ operator()()

bool anonymous_namespace{playerrelations.cpp}::SortPlayersFunctor::operator() ( const std::string &  str1,
const std::string &  str2 
) const
inline

Definition at line 69 of file playerrelations.cpp.

71  {
72  std::string s1 = str1;
73  std::string s2 = str2;
74  toLower(s1);
75  toLower(s2);
76  if (s1 == s2)
77  return str1 < str2;
78  return s1 < s2;
79  }
std::string toLower(std::string const &s)

References Catch::toLower().


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