OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::LwConstString Class Reference

#include <OgreLwConstString.h>

+ Inheritance diagram for Ogre::LwConstString:

Public Member Functions

 LwConstString (const char *inStr, size_t maxLength)
 
const char * begin () const
 
const char * c_str () const
 
size_t capacity () const
 
const char * end () const
 
size_t find (const char *val, size_t pos=0) const
 
size_t find (const LwConstString *val, size_t pos=0) const
 
size_t find_first_of (char c, size_t pos=0) const
 
size_t find_first_of (const char *val, size_t pos=0) const
 
size_t find_last_of (char c, size_t pos=~0) const
 
bool operator!= (const char *other) const
 
bool operator!= (const LwConstString &other) const
 
bool operator< (const char *other) const
 
bool operator< (const LwConstString &other) const
 
bool operator== (const char *other) const
 
bool operator== (const LwConstString &other) const
 
bool operator> (const char *other) const
 
bool operator> (const LwConstString &other) const
 
size_t size () const
 

Static Public Member Functions

static LwConstString FromUnsafeCStr (const char *cStr)
 

Friends

class LwString
 

Detailed Description

See also
LwString. This base class exists so that you can wrap around useful functionality around const char pointers, for example: const char myText = "Hello World!"; LwConstString myString( myText, 13 ); such as comparison, finding, etc. The internal pointer is const_cast'ed because derived class LwString needs it so, however this base class never writes to this pointer or returns a non-const pointer.

Constructor & Destructor Documentation

◆ LwConstString()

Ogre::LwConstString::LwConstString ( const char *  inStr,
size_t  maxLength 
)
inline

Member Function Documentation

◆ begin()

const char* Ogre::LwConstString::begin ( ) const
inline

◆ c_str()

const char* Ogre::LwConstString::c_str ( ) const
inline

◆ capacity()

size_t Ogre::LwConstString::capacity ( ) const
inline

◆ end()

const char* Ogre::LwConstString::end ( ) const
inline

◆ find() [1/2]

size_t Ogre::LwConstString::find ( const char *  val,
size_t  pos = 0 
) const
inline

◆ find() [2/2]

size_t Ogre::LwConstString::find ( const LwConstString val,
size_t  pos = 0 
) const
inline

◆ find_first_of() [1/2]

size_t Ogre::LwConstString::find_first_of ( char  c,
size_t  pos = 0 
) const
inline

◆ find_first_of() [2/2]

size_t Ogre::LwConstString::find_first_of ( const char *  val,
size_t  pos = 0 
) const
inline

◆ find_last_of()

size_t Ogre::LwConstString::find_last_of ( char  c,
size_t  pos = ~0 
) const
inline

◆ FromUnsafeCStr()

static LwConstString Ogre::LwConstString::FromUnsafeCStr ( const char *  cStr)
inlinestatic

◆ operator!=() [1/2]

bool Ogre::LwConstString::operator!= ( const char *  other) const
inline

◆ operator!=() [2/2]

bool Ogre::LwConstString::operator!= ( const LwConstString other) const
inline

◆ operator<() [1/2]

bool Ogre::LwConstString::operator< ( const char *  other) const
inline

◆ operator<() [2/2]

bool Ogre::LwConstString::operator< ( const LwConstString other) const
inline

◆ operator==() [1/2]

bool Ogre::LwConstString::operator== ( const char *  other) const
inline

◆ operator==() [2/2]

bool Ogre::LwConstString::operator== ( const LwConstString other) const
inline

◆ operator>() [1/2]

bool Ogre::LwConstString::operator> ( const char *  other) const
inline

◆ operator>() [2/2]

bool Ogre::LwConstString::operator> ( const LwConstString other) const
inline

◆ size()

size_t Ogre::LwConstString::size ( ) const
inline

Friends And Related Function Documentation

◆ LwString

friend class LwString
friend

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