KSquare Utilities
KKB::KKStrList::StringComparison Class Reference

Public Member Functions

 StringComparison (bool _reversedOrder)
 
bool operator() (KKStrPtr p1, KKStrPtr p2)
 

Detailed Description

Definition at line 4740 of file KKStr.cpp.

Constructor & Destructor Documentation

KKB::KKStrList::StringComparison::StringComparison ( bool  _reversedOrder)
inline

Definition at line 4743 of file KKStr.cpp.

Referenced by KKB::KKStrList::Sort().

4744  {
4745  reversedOrder = _reversedOrder;
4746  }

Member Function Documentation

bool KKB::KKStrList::StringComparison::operator() ( KKStrPtr  p1,
KKStrPtr  p2 
)
inline

Definition at line 4749 of file KKStr.cpp.

References KKB::KKStr::CompareStrings(), and KKB::KKStr::Concat().

4752  {
4753  if (reversedOrder)
4754  {
4755  return (KKStr::CompareStrings (*p2, *p1) > 0);
4756  }
4757  else
4758  {
4759  return (KKStr::CompareStrings (*p1, *p2) < 0);
4760  }
4761  }

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