OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdResStr2.cpp File Reference
#include "C4Include.h"
#include "c4group/C4Language.h"
Include dependency graph for StdResStr2.cpp:

Go to the source code of this file.

Functions

const char * LoadResStrNoAmp (const char *id)
 

Variables

const int ResStrMaxLen = 4096
 

Function Documentation

const char* LoadResStrNoAmp ( const char *  id)

Definition at line 24 of file StdResStr2.cpp.

References LoadResStr().

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), and C4StartupScenSelDlg::DoOK().

25 {
26  const char * str = LoadResStr(id);
27  char * cpd = strResult;
28  for (const char * cps = str; *cps; ++cps, ++cpd)
29  {
30  if (*cps == '&')
31  --cpd;
32  else
33  *cpd = *cps;
34  }
35  *cpd = 0;
36  return strResult;
37 }
const char * LoadResStr(const char *id)
Definition: C4Language.h:83

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int ResStrMaxLen = 4096

Definition at line 22 of file StdResStr2.cpp.