doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
idToken Class Reference

#include <Token.h>

Inheritance diagram for idToken:
idStr

Public Member Functions

 idToken (void)
 
 idToken (const idToken *token)
 
 ~idToken (void)
 
void operator= (const idStr &text)
 
void operator= (const char *text)
 
double GetDoubleValue (void)
 
float GetFloatValue (void)
 
unsigned long GetUnsignedLongValue (void)
 
int GetIntValue (void)
 
int WhiteSpaceBeforeToken (void) const
 
void ClearTokenWhiteSpace (void)
 
void NumberValue (void)
 
- Public Member Functions inherited from idStr
 idStr (void)
 
 idStr (const idStr &text)
 
 idStr (const idStr &text, int start, int end)
 
 idStr (const char *text)
 
 idStr (const char *text, int start, int end)
 
 idStr (const bool b)
 
 idStr (const char c)
 
 idStr (const int i)
 
 idStr (const unsigned u)
 
 idStr (const float f)
 
 ~idStr (void)
 
size_t Size (void) const
 
const char * c_str (void) const
 
 operator const char * (void) const
 
 operator const char * (void)
 
char operator[] (int index) const
 
char & operator[] (int index)
 
void operator= (const idStr &text)
 
void operator= (const char *text)
 
idStroperator+= (const idStr &a)
 
idStroperator+= (const char *a)
 
idStroperator+= (const float a)
 
idStroperator+= (const char a)
 
idStroperator+= (const int a)
 
idStroperator+= (const unsigned a)
 
idStroperator+= (const bool a)
 
int Cmp (const char *text) const
 
int Cmpn (const char *text, int n) const
 
int CmpPrefix (const char *text) const
 
int Icmp (const char *text) const
 
int Icmpn (const char *text, int n) const
 
int IcmpPrefix (const char *text) const
 
int IcmpNoColor (const char *text) const
 
int IcmpPath (const char *text) const
 
int IcmpnPath (const char *text, int n) const
 
int IcmpPrefixPath (const char *text) const
 
int Length (void) const
 
int Allocated (void) const
 
void Empty (void)
 
bool IsEmpty (void) const
 
void Clear (void)
 
void Append (const char a)
 
void Append (const idStr &text)
 
void Append (const char *text)
 
void Append (const char *text, int len)
 
void Insert (const char a, int index)
 
void Insert (const char *text, int index)
 
void ToLower (void)
 
void ToUpper (void)
 
bool IsNumeric (void) const
 
bool IsColor (void) const
 
bool HasLower (void) const
 
bool HasUpper (void) const
 
int LengthWithoutColors (void) const
 
idStrRemoveColors (void)
 
void CapLength (int)
 
void Fill (const char ch, int newlen)
 
int Find (const char c, int start=0, int end=-1) const
 
int Find (const char *text, bool casesensitive=true, int start=0, int end=-1) const
 
bool Filter (const char *filter, bool casesensitive) const
 
int Last (const char c) const
 
const char * Left (int len, idStr &result) const
 
const char * Right (int len, idStr &result) const
 
const char * Mid (int start, int len, idStr &result) const
 
idStr Left (int len) const
 
idStr Right (int len) const
 
idStr Mid (int start, int len) const
 
void StripLeading (const char c)
 
void StripLeading (const char *string)
 
bool StripLeadingOnce (const char *string)
 
void StripTrailing (const char c)
 
void StripTrailing (const char *string)
 
bool StripTrailingOnce (const char *string)
 
void Strip (const char c)
 
void Strip (const char *string)
 
void StripTrailingWhitespace (void)
 
idStrStripQuotes (void)
 
void Replace (const char *old, const char *nw)
 
int FileNameHash (void) const
 
idStrBackSlashesToSlashes (void)
 
idStrSetFileExtension (const char *extension)
 
idStrStripFileExtension (void)
 
idStrStripAbsoluteFileExtension (void)
 
idStrDefaultFileExtension (const char *extension)
 
idStrDefaultPath (const char *basepath)
 
void AppendPath (const char *text)
 
idStrStripFilename (void)
 
idStrStripPath (void)
 
void ExtractFilePath (idStr &dest) const
 
void ExtractFileName (idStr &dest) const
 
void ExtractFileBase (idStr &dest) const
 
void ExtractFileExtension (idStr &dest) const
 
bool CheckExtension (const char *ext)
 
void ReAllocate (int amount, bool keepold)
 
void FreeData (void)
 
int BestUnit (const char *format, float value, Measure_t measure)
 
void SetUnit (const char *format, float value, int unit, Measure_t measure)
 
int DynamicMemoryUsed () const
 

Public Attributes

int type
 
int subtype
 
int line
 
int linesCrossed
 
int flags
 

Private Member Functions

void AppendDirty (const char a)
 

Private Attributes

unsigned long intvalue
 
double floatvalue
 
const char * whiteSpaceStart_p
 
const char * whiteSpaceEnd_p
 
idTokennext
 

Friends

class idParser
 
class idLexer
 

Additional Inherited Members

- Static Public Member Functions inherited from idStr
static int Length (const char *s)
 
static char * ToLower (char *s)
 
static char * ToUpper (char *s)
 
static bool IsNumeric (const char *s)
 
static bool IsColor (const char *s)
 
static bool HasLower (const char *s)
 
static bool HasUpper (const char *s)
 
static int LengthWithoutColors (const char *s)
 
static char * RemoveColors (char *s)
 
static int Cmp (const char *s1, const char *s2)
 
static int Cmpn (const char *s1, const char *s2, int n)
 
static int Icmp (const char *s1, const char *s2)
 
static int Icmpn (const char *s1, const char *s2, int n)
 
static int IcmpNoColor (const char *s1, const char *s2)
 
static int IcmpPath (const char *s1, const char *s2)
 
static int IcmpnPath (const char *s1, const char *s2, int n)
 
static void Append (char *dest, int size, const char *src)
 
static void Copynz (char *dest, const char *src, int destsize)
 
static int snPrintf (char *dest, int size, const char *fmt,...) id_attribute((format(printf
 
static int static int vsnPrintf (char *dest, int size, const char *fmt, va_list argptr)
 
static int FindChar (const char *str, const char c, int start=0, int end=-1)
 
static int FindText (const char *str, const char *text, bool casesensitive=true, int start=0, int end=-1)
 
static bool Filter (const char *filter, const char *name, bool casesensitive)
 
static void StripMediaName (const char *name, idStr &mediaName)
 
static bool CheckExtension (const char *name, const char *ext)
 
static const char * FloatArrayToString (const float *array, const int length, const int precision)
 
static int Hash (const char *string)
 
static int Hash (const char *string, int length)
 
static int IHash (const char *string)
 
static int IHash (const char *string, int length)
 
static char ToLower (char c)
 
static char ToUpper (char c)
 
static bool CharIsPrintable (int c)
 
static bool CharIsLower (int c)
 
static bool CharIsUpper (int c)
 
static bool CharIsAlpha (int c)
 
static bool CharIsNumeric (int c)
 
static bool CharIsNewLine (char c)
 
static bool CharIsTab (char c)
 
static int ColorIndex (int c)
 
static idVec4ColorForIndex (int i)
 
static void InitMemory (void)
 
static void ShutdownMemory (void)
 
static void PurgeMemory (void)
 
static void ShowMemoryUsage_f (const idCmdArgs &args)
 
static idStr FormatNumber (int number)
 
- Protected Member Functions inherited from idStr
void Init (void)
 
void EnsureAlloced (int amount, bool keepold=true)
 
- Protected Attributes inherited from idStr
int len
 
char * data
 
int alloced
 
char baseBuffer [STR_ALLOC_BASE]
 

Detailed Description

Definition at line 71 of file Token.h.

Constructor & Destructor Documentation

ID_INLINE idToken::idToken ( void  )

Definition at line 110 of file Token.h.

ID_INLINE idToken::idToken ( const idToken token)

Definition at line 113 of file Token.h.

ID_INLINE idToken::~idToken ( void  )

Definition at line 117 of file Token.h.

Member Function Documentation

ID_INLINE void idToken::AppendDirty ( const char  a)
private

Definition at line 160 of file Token.h.

void idToken::ClearTokenWhiteSpace ( void  )

Definition at line 175 of file Token.cpp.

ID_INLINE double idToken::GetDoubleValue ( void  )

Definition at line 128 of file Token.h.

ID_INLINE float idToken::GetFloatValue ( void  )

Definition at line 138 of file Token.h.

ID_INLINE int idToken::GetIntValue ( void  )

Definition at line 152 of file Token.h.

ID_INLINE unsigned long idToken::GetUnsignedLongValue ( void  )

Definition at line 142 of file Token.h.

void idToken::NumberValue ( void  )

Definition at line 38 of file Token.cpp.

ID_INLINE void idToken::operator= ( const idStr text)

Definition at line 124 of file Token.h.

ID_INLINE void idToken::operator= ( const char *  text)

Definition at line 120 of file Token.h.

ID_INLINE int idToken::WhiteSpaceBeforeToken ( void  ) const

Definition at line 156 of file Token.h.

Friends And Related Function Documentation

friend class idLexer
friend

Definition at line 74 of file Token.h.

friend class idParser
friend

Definition at line 73 of file Token.h.

Member Data Documentation

int idToken::flags

Definition at line 81 of file Token.h.

double idToken::floatvalue
private

Definition at line 102 of file Token.h.

unsigned long idToken::intvalue
private

Definition at line 101 of file Token.h.

int idToken::line

Definition at line 79 of file Token.h.

int idToken::linesCrossed

Definition at line 80 of file Token.h.

idToken* idToken::next
private

Definition at line 105 of file Token.h.

int idToken::subtype

Definition at line 78 of file Token.h.

int idToken::type

Definition at line 77 of file Token.h.

const char* idToken::whiteSpaceEnd_p
private

Definition at line 104 of file Token.h.

const char* idToken::whiteSpaceStart_p
private

Definition at line 103 of file Token.h.


The documentation for this class was generated from the following files: