Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
OVR::String Class Reference

#include <OVR_String.h>

List of all members.

Classes

struct  DataDesc
union  DataDescUnion
struct  HashFunctor
struct  InitStruct
struct  NoCaseHashFunctor
struct  NoCaseKey
struct  NoConstructor

Public Member Functions

void AppendChar (UInt32 ch)
void AppendString (const wchar_t *pstr, SPInt len=-1)
void AppendString (const char *putf8str, SPInt utf8StrSz=-1)
void AssignString (const InitStruct &src, UPInt size)
void AssignString (const char *putf8str, UPInt size)
void Clear ()
int CompareNoCase (const char *pstr) const
int CompareNoCase (const String &str) const
UPInt GetByteIndex (UPInt index) const
UInt32 GetCharAt (UPInt index) const
String GetExtension () const
String GetFilename () const
UInt32 GetFirstCharAt (UPInt index, const char **offset) const
UPInt GetLength () const
UInt32 GetNextChar (const char **offset) const
String GetPath () const
String GetProtocol () const
UPInt GetSize () const
bool HasAbsolutePath () const
bool HasExtension () const
bool HasProtocol () const
StringInsert (const char *substr, UPInt posAt, SPInt len=-1)
UPInt InsertCharAt (UInt32 c, UPInt posAt)
bool IsEmpty () const
 operator const char * () const
bool operator!= (const String &str) const
bool operator!= (const char *str) const
bool operator!= (const NoCaseKey &strKey) const
String operator+ (const char *str) const
String operator+ (const String &src) const
void operator+= (const String &src)
void operator+= (const char *psrc)
void operator+= (const wchar_t *psrc)
void operator+= (char ch)
bool operator< (const char *pstr) const
bool operator< (const String &str) const
void operator= (const char *str)
void operator= (const wchar_t *str)
void operator= (const String &src)
void operator= (const StringBuffer &src)
bool operator== (const String &str) const
bool operator== (const char *str) const
bool operator== (const NoCaseKey &strKey) const
bool operator> (const char *pstr) const
bool operator> (const String &str) const
const char & operator[] (int index) const
const char & operator[] (UPInt index) const
void Remove (UPInt posAt, SPInt len=1)
 String ()
 String (const char *data)
 String (const char *data1, const char *pdata2, const char *pdata3=0)
 String (const char *data, UPInt buflen)
 String (const String &src)
 String (const StringBuffer &src)
 String (const InitStruct &src, UPInt size)
 String (const wchar_t *data)
void StripExtension ()
void StripProtocol ()
String Substring (UPInt start, UPInt end) const
const char * ToCStr () const
String ToLower () const
String ToUpper () const
 ~String ()

Static Public Member Functions

static UPInt OVR_STDCALL BernsteinHashFunction (const void *pdataIn, UPInt size, UPInt seed=5381)
static UPInt OVR_STDCALL BernsteinHashFunctionCIS (const void *pdataIn, UPInt size, UPInt seed=5381)
static int OVR_STDCALL CompareNoCase (const char *a, const char *b)
static int OVR_STDCALL CompareNoCase (const char *a, const char *b, SPInt len)
static bool HasAbsolutePath (const char *path)
static bool HasExtension (const char *path)
static bool HasProtocol (const char *path)

Static Public Attributes

static DataDesc NullData = {String_LengthIsSize, 1, {0} }

Protected Types

enum  FlagConstants { Flag_LengthIsSizeShift = (sizeof(UPInt)*8 - 1) }
enum  HeapType { HT_Global = 0, HT_Local = 1, HT_Dynamic = 2, HT_Mask = 3 }

Protected Member Functions

DataDescAllocData (UPInt size, UPInt lengthIsSize)
DataDescAllocDataCopy1 (UPInt size, UPInt lengthIsSize, const char *pdata, UPInt copySize)
DataDescAllocDataCopy2 (UPInt size, UPInt lengthIsSize, const char *pdata1, UPInt copySize1, const char *pdata2, UPInt copySize2)
DataDescGetData () const
HeapType GetHeapType () const
void SetData (DataDesc *pdesc)
 String (const NoConstructor &)

Protected Attributes

union {
   UPInt   HeapTypeBits
   DataDesc *   pData
}; 

Detailed Description

Definition at line 42 of file OVR_String.h.


Member Enumeration Documentation

enum OVR::String::FlagConstants [protected]
Enumerator:
Flag_LengthIsSizeShift 

Definition at line 46 of file OVR_String.h.

enum OVR::String::HeapType [protected]
Enumerator:
HT_Global 
HT_Local 
HT_Dynamic 
HT_Mask 

Definition at line 91 of file OVR_String.h.


Constructor & Destructor Documentation

OVR::String::String ( const NoConstructor ) [inline, protected]

Definition at line 136 of file OVR_String.h.

Definition at line 33 of file OVR_String.cpp.

OVR::String::String ( const char *  data)

Definition at line 39 of file OVR_String.cpp.

OVR::String::String ( const char *  data1,
const char *  pdata2,
const char *  pdata3 = 0 
)

Definition at line 46 of file OVR_String.cpp.

OVR::String::String ( const char *  data,
UPInt  buflen 
)

Definition at line 59 of file OVR_String.cpp.

OVR::String::String ( const String src)

Definition at line 72 of file OVR_String.cpp.

Definition at line 78 of file OVR_String.cpp.

OVR::String::String ( const InitStruct src,
UPInt  size 
)

Definition at line 66 of file OVR_String.cpp.

OVR::String::String ( const wchar_t *  data) [explicit]

Definition at line 83 of file OVR_String.cpp.

OVR::String::~String ( ) [inline]

Definition at line 159 of file OVR_String.h.


Member Function Documentation

String::DataDesc * OVR::String::AllocData ( UPInt  size,
UPInt  lengthIsSize 
) [protected]

Definition at line 93 of file OVR_String.cpp.

String::DataDesc * OVR::String::AllocDataCopy1 ( UPInt  size,
UPInt  lengthIsSize,
const char *  pdata,
UPInt  copySize 
) [protected]

Definition at line 112 of file OVR_String.cpp.

String::DataDesc * OVR::String::AllocDataCopy2 ( UPInt  size,
UPInt  lengthIsSize,
const char *  pdata1,
UPInt  copySize1,
const char *  pdata2,
UPInt  copySize2 
) [protected]

Definition at line 120 of file OVR_String.cpp.

Definition at line 203 of file OVR_String.cpp.

void OVR::String::AppendString ( const wchar_t *  pstr,
SPInt  len = -1 
)

Definition at line 220 of file OVR_String.cpp.

void OVR::String::AppendString ( const char *  putf8str,
SPInt  utf8StrSz = -1 
)

Definition at line 238 of file OVR_String.cpp.

void OVR::String::AssignString ( const InitStruct src,
UPInt  size 
)

Definition at line 253 of file OVR_String.cpp.

void OVR::String::AssignString ( const char *  putf8str,
UPInt  size 
)

Definition at line 262 of file OVR_String.cpp.

UPInt OVR::String::BernsteinHashFunction ( const void *  pdataIn,
UPInt  size,
UPInt  seed = 5381 
) [static]

Definition at line 510 of file OVR_String.cpp.

UPInt OVR::String::BernsteinHashFunctionCIS ( const void *  pdataIn,
UPInt  size,
UPInt  seed = 5381 
) [static]

Definition at line 524 of file OVR_String.cpp.

Definition at line 375 of file OVR_String.cpp.

int OVR::String::CompareNoCase ( const char *  a,
const char *  b 
) [static]

Definition at line 477 of file OVR_String.cpp.

int OVR::String::CompareNoCase ( const char *  a,
const char *  b,
SPInt  len 
) [static]

Definition at line 482 of file OVR_String.cpp.

int OVR::String::CompareNoCase ( const char *  pstr) const [inline]

Definition at line 323 of file OVR_String.h.

int OVR::String::CompareNoCase ( const String str) const [inline]

Definition at line 327 of file OVR_String.h.

UPInt OVR::String::GetByteIndex ( UPInt  index) const [inline]

Definition at line 228 of file OVR_String.h.

Definition at line 152 of file OVR_String.cpp.

DataDesc* OVR::String::GetData ( ) const [inline, protected]

Definition at line 110 of file OVR_String.h.

Definition at line 176 of file OVR_String_PathUtil.cpp.

Definition at line 170 of file OVR_String_PathUtil.cpp.

UInt32 OVR::String::GetFirstCharAt ( UPInt  index,
const char **  offset 
) const

Definition at line 170 of file OVR_String.cpp.

HeapType OVR::String::GetHeapType ( ) const [inline, protected]

Definition at line 108 of file OVR_String.h.

Definition at line 131 of file OVR_String.cpp.

UInt32 OVR::String::GetNextChar ( const char **  offset) const

Definition at line 196 of file OVR_String.cpp.

Definition at line 153 of file OVR_String_PathUtil.cpp.

Definition at line 164 of file OVR_String_PathUtil.cpp.

UPInt OVR::String::GetSize ( ) const [inline]

Definition at line 178 of file OVR_String.h.

bool OVR::String::HasAbsolutePath ( const char *  path) [static]

Definition at line 90 of file OVR_String_PathUtil.cpp.

bool OVR::String::HasAbsolutePath ( ) const [inline]

Definition at line 254 of file OVR_String.h.

bool OVR::String::HasExtension ( const char *  path) [static]

Definition at line 141 of file OVR_String_PathUtil.cpp.

bool OVR::String::HasExtension ( ) const [inline]

Definition at line 255 of file OVR_String.h.

bool OVR::String::HasProtocol ( const char *  path) [static]

Definition at line 147 of file OVR_String_PathUtil.cpp.

bool OVR::String::HasProtocol ( ) const [inline]

Definition at line 256 of file OVR_String.h.

String & OVR::String::Insert ( const char *  substr,
UPInt  posAt,
SPInt  len = -1 
)

Definition at line 433 of file OVR_String.cpp.

Definition at line 464 of file OVR_String.cpp.

bool OVR::String::IsEmpty ( ) const [inline]

Definition at line 180 of file OVR_String.h.

OVR::String::operator const char * ( ) const [inline]

Definition at line 173 of file OVR_String.h.

bool OVR::String::operator!= ( const String str) const [inline]

Definition at line 288 of file OVR_String.h.

bool OVR::String::operator!= ( const char *  str) const [inline]

Definition at line 298 of file OVR_String.h.

bool OVR::String::operator!= ( const NoCaseKey strKey) const [inline]

Definition at line 357 of file OVR_String.h.

String OVR::String::operator+ ( const char *  str) const

Definition at line 318 of file OVR_String.cpp.

String OVR::String::operator+ ( const String src) const

Definition at line 325 of file OVR_String.cpp.

void OVR::String::operator+= ( const String src)

Definition at line 304 of file OVR_String.cpp.

void OVR::String::operator+= ( const char *  psrc) [inline]

Definition at line 276 of file OVR_String.h.

void OVR::String::operator+= ( const wchar_t *  psrc) [inline]

Definition at line 277 of file OVR_String.h.

void OVR::String::operator+= ( char  ch) [inline]

Definition at line 278 of file OVR_String.h.

bool OVR::String::operator< ( const char *  pstr) const [inline]

Definition at line 303 of file OVR_String.h.

bool OVR::String::operator< ( const String str) const [inline]

Definition at line 308 of file OVR_String.h.

void OVR::String::operator= ( const char *  str)

Definition at line 269 of file OVR_String.cpp.

void OVR::String::operator= ( const wchar_t *  str)

Definition at line 274 of file OVR_String.cpp.

void OVR::String::operator= ( const String src)

Definition at line 286 of file OVR_String.cpp.

void OVR::String::operator= ( const StringBuffer src)

Definition at line 297 of file OVR_String.cpp.

bool OVR::String::operator== ( const String str) const [inline]

Definition at line 283 of file OVR_String.h.

bool OVR::String::operator== ( const char *  str) const [inline]

Definition at line 293 of file OVR_String.h.

bool OVR::String::operator== ( const NoCaseKey strKey) const [inline]

Definition at line 353 of file OVR_String.h.

bool OVR::String::operator> ( const char *  pstr) const [inline]

Definition at line 313 of file OVR_String.h.

bool OVR::String::operator> ( const String str) const [inline]

Definition at line 318 of file OVR_String.h.

const char& OVR::String::operator[] ( int  index) const [inline]

Definition at line 333 of file OVR_String.h.

const char& OVR::String::operator[] ( UPInt  index) const [inline]

Definition at line 338 of file OVR_String.h.

void OVR::String::Remove ( UPInt  posAt,
SPInt  len = 1 
)

Definition at line 332 of file OVR_String.cpp.

void OVR::String::SetData ( DataDesc pdesc) [inline, protected]

Definition at line 118 of file OVR_String.h.

Definition at line 183 of file OVR_String_PathUtil.cpp.

Definition at line 193 of file OVR_String_PathUtil.cpp.

String OVR::String::Substring ( UPInt  start,
UPInt  end 
) const

Definition at line 357 of file OVR_String.cpp.

const char* OVR::String::ToCStr ( ) const [inline]

Definition at line 175 of file OVR_String.h.

Definition at line 407 of file OVR_String.cpp.

Definition at line 383 of file OVR_String.cpp.


Member Data Documentation

union { ... } [protected]

Definition at line 101 of file OVR_String.h.

Definition at line 165 of file OVR_String.h.

Definition at line 100 of file OVR_String.h.


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


oculus_sdk
Author(s):
autogenerated on Fri Aug 28 2015 11:53:12