83 src.
LoadMemory( buffer, strlen( buffer ), fileName );
121 int l =
args[
j].value.Length();
125 for (
int k = 0; k <
l; k++ ) {
126 char ch =
args[
j].value[k];
128 outFile->
Write( &slash, 1 );
129 outFile->
Write( &tab, 1 );
130 }
else if ( ch ==
'\n' || ch ==
'\r' ) {
131 outFile->
Write( &slash, 1 );
132 outFile->
Write( &nl, 1 );
134 outFile->
Write( &ch, 1 );
150 if ( str ==
NULL || str[0] ==
'\0' ) {
160 if (
args[
i].key.Cmp( str ) == 0 ) {
161 return args[
i].value;
181 for (
int j = 0;
j <
c;
j++ ) {
190 kv.
key =
va(
"#str_%08i",
id );
240 int c = strlen( str );
249 if (
idStr::Icmpn( str,
"gui::", strlen(
"gui::" ) ) == 0 ) {
253 if ( str[0] ==
'$' ) {
258 for ( i = 0; i <
c; i++ ) {
259 if ( isalpha( str[i] ) ) {
286 for (
int j = 0;
j <
c;
j++ ) {
289 int test = atoi( work );
305 assert( str[0] >=
'0' && str[0] <=
'9' );
306 hashKey = hashKey * 10 + str[0] -
'0';
GLsizei const GLfloat * value
idList< idLangKeyValue > args
assert(prefInfo.fullscreenBtn)
int Cmp(const char *text) const
int Next(const int index) const
void StripLeading(const char c)
virtual int ReadFile(const char *relativePath, void **buffer, ID_TIME_T *timestamp=NULL)=0
void SetGranularity(int newgranularity)
virtual void FreeFile(void *buffer)=0
int Cmpn(const char *text, int n) const
const char * AddString(const char *str)
void SetGranularity(const int newGranularity)
int First(const int key) const
#define STRTABLE_ID_LENGTH
int Icmpn(const char *text, int n) const
static class idFileSystem * fileSystem
const idLangKeyValue * GetKeyVal(int i) const
bool ExcludeString(const char *str) const
virtual idFile * OpenFileWrite(const char *relativePath, const char *basePath="fs_savepath")=0
const char * GetString(const char *str) const
bool Load(const char *fileName, bool clear=true)
virtual int WriteFloatString(const char *fmt,...) id_attribute((format(printf
virtual void Printf(const char *fmt,...) id_attribute((format(printf
int LoadMemory(const char *ptr, int length, const char *name, int startLine=1)
int ExpectTokenString(const char *string)
int Append(const type &obj)
void AddKeyVal(const char *key, const char *val)
virtual int Write(const void *buffer, int len)
void Add(const int key, const int index)
char * va(const char *fmt,...)
virtual void CloseFile(idFile *f)=0
int GetNextId(void) const
virtual void virtual void Warning(const char *fmt,...) id_attribute((format(printf
int ReadToken(idToken *token)
void Save(const char *fileName)
int GetNumKeyVals(void) const
int GetHashKey(const char *str) const
static class idCommon * common