OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ValueArraySortStringscomp Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 101 of file C4ValueArray.cpp.

Member Function Documentation

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

Definition at line 103 of file C4ValueArray.cpp.

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

104  {
105  if (v1.getStr() && v2.getStr())
106  return std::strcmp(v1._getStr()->GetCStr(), v2._getStr()->GetCStr()) < 0;
107  return v2.getStr() != nullptr;
108  }
C4String * getStr() const
Definition: C4Value.h:117
const char * GetCStr() const
Definition: C4StringTable.h:49
C4String * _getStr() const
Definition: C4Value.h:126

Here is the call graph for this function:


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