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

#include <StrPool.h>

Inheritance diagram for idPoolStr:
idStr

Public Member Functions

 idPoolStr ()
 
 ~idPoolStr ()
 
size_t Allocated (void) const
 
size_t Size (void) const
 
const idStrPoolGetPool (void) const
 
- 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
 

Private Attributes

idStrPoolpool
 
int numUsers
 

Friends

class idStrPool
 

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 42 of file StrPool.h.

Constructor & Destructor Documentation

idPoolStr::idPoolStr ( )
inline

Definition at line 46 of file StrPool.h.

idPoolStr::~idPoolStr ( )
inline

Definition at line 47 of file StrPool.h.

Member Function Documentation

size_t idPoolStr::Allocated ( void  ) const
inline

Definition at line 50 of file StrPool.h.

const idStrPool* idPoolStr::GetPool ( void  ) const
inline

Definition at line 54 of file StrPool.h.

size_t idPoolStr::Size ( void  ) const
inline

Definition at line 52 of file StrPool.h.

Friends And Related Function Documentation

friend class idStrPool
friend

Definition at line 43 of file StrPool.h.

Member Data Documentation

int idPoolStr::numUsers
mutableprivate

Definition at line 58 of file StrPool.h.

idStrPool* idPoolStr::pool
private

Definition at line 57 of file StrPool.h.


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