OpenClonk
StdStringAdapt Struct Reference

#include <StdAdaptors.h>

Public Member Functions

 StdStringAdapt (char *szString, int iMaxLength, StdCompiler::RawCompileType eRawType=StdCompiler::RCT_Escaped)
 
void CompileFunc (StdCompiler *pComp) const
 
bool operator== (const char *szDefault) const
 
StdStringAdaptoperator= (const char *szDefault)
 

Public Attributes

char * szString
 
int iMaxLength
 
StdCompiler::RawCompileType eRawType
 

Detailed Description

Definition at line 175 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdStringAdapt()

StdStringAdapt::StdStringAdapt ( char *  szString,
int  iMaxLength,
StdCompiler::RawCompileType  eRawType = StdCompiler::RCT_Escaped 
)
inline

Definition at line 178 of file StdAdaptors.h.

StdCompiler::RawCompileType eRawType
Definition: StdAdaptors.h:177

Member Function Documentation

◆ CompileFunc()

void StdStringAdapt::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 180 of file StdAdaptors.h.

181  {
183  }
virtual void String(char *szString, size_t iMaxLength, RawCompileType eType=RCT_Escaped)=0

References eRawType, iMaxLength, StdCompiler::String(), and szString.

Here is the call graph for this function:

◆ operator=()

StdStringAdapt& StdStringAdapt::operator= ( const char *  szDefault)
inline

Definition at line 185 of file StdAdaptors.h.

185 { SCopy(szDefault, szString, iMaxLength); return *this; }
void SCopy(const char *szSource, char *sTarget, size_t iMaxL)
Definition: Standard.cpp:152

References iMaxLength, SCopy(), and szString.

Here is the call graph for this function:

◆ operator==()

bool StdStringAdapt::operator== ( const char *  szDefault) const
inline

Definition at line 184 of file StdAdaptors.h.

184 { return SEqual(szString, szDefault); }
bool SEqual(const char *szStr1, const char *szStr2)
Definition: Standard.h:93

References SEqual(), and szString.

Here is the call graph for this function:

Member Data Documentation

◆ eRawType

StdCompiler::RawCompileType StdStringAdapt::eRawType

Definition at line 177 of file StdAdaptors.h.

Referenced by CompileFunc().

◆ iMaxLength

int StdStringAdapt::iMaxLength

Definition at line 177 of file StdAdaptors.h.

Referenced by CompileFunc(), and operator=().

◆ szString

char* StdStringAdapt::szString

Definition at line 177 of file StdAdaptors.h.

Referenced by CompileFunc(), operator=(), and operator==().


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