OpenClonk
C4ValueArraySortStringscomp Struct Reference

Public Member Functions

bool operator() (const C4Value &v1, const C4Value &v2)
 

Detailed Description

Definition at line 95 of file C4ValueArray.cpp.

Member Function Documentation

◆ operator()()

bool C4ValueArraySortStringscomp::operator() ( const C4Value v1,
const C4Value v2 
)
inline

Definition at line 97 of file C4ValueArray.cpp.

98  {
99  if (v1.getStr() && v2.getStr())
100  return std::strcmp(v1._getStr()->GetCStr(), v2._getStr()->GetCStr()) < 0;
101  return v2.getStr() != nullptr;
102  }
const char * GetCStr() const
Definition: C4StringTable.h:49
C4String * getStr() const
Definition: C4Value.h:117
C4String * _getStr() const
Definition: C4Value.h:126

References C4Value::_getStr(), C4String::GetCStr(), and C4Value::getStr().

Here is the call graph for this function:

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