Fission FSN
Loading...
Searching...
No Matches
fsStr Class Reference

#include <fsStr.h>

Public Types

typedef std::string::size_type sizeT

Public Member Functions

 fsStr (const char *data, sizeT len)
const fsU8ptrGet () const
fsS32 count (fsChar pChar) const
fsBool isAlphaNumeric () const
void formattingRemove ()
void removeXmlTags ()
fsBool emptyGet () const
sizeT dataSizeGet () const
sizeT lengthGet () const
void erase (sizeT pOff=0, sizeT pCount=npos)
void eraseToLast (const fsStr &pMatch)
void eraseFromLast (const fsStr &pMatch)
fsStr chomp (const fsStr &pTerm)
fsStr chunk ()
void leadingWhitespaceTrim ()
void trailingWhitespaceTrim ()
void trimToLength (fsS32 pNumChars)
void copy (const char *pString)
void copy (const char *pString, fsS32 pStart, fsS32 pCount)
void hTMLCodesReplace ()
void stringSet (const char *str, int len)
void downcase ()
void upcase ()
fsBool compare (const char *pString, int len) const
sizeT find (const char *pSub, sizeT pOffset=0) const
sizeT find (const char pSub, sizeT pOffset=0) const
sizeT find (const fsStr &pSub, sizeT pOffset=0) const
sizeT rfind (const fsChar *pSub, sizeT pOffset=npos) const
sizeT rfind (const fsChar pSub, sizeT pOffset=npos) const
sizeT rfind (const fsStr &pSub, sizeT pOffset=npos) const
sizeT find_first_of (const fsStr &pSub, sizeT pOffset=0) const
void replaceAll (const fsStr &pFind, const fsStr &pReplace)
void replaceFirst (const fsStr &pFind, const fsStr &pReplace)
fsF32 toF32 () const
fsS32 toS32 () const
fsU32 toU32 () const
fsS64 toS64 () const
const char * utf8Get () const
fsBool operator< (const fsStr &pRHS) const
fsBool operator!= (const fsStr &pRHS) const
fsBool operator!= (const fsChar *pRHS) const
fsBool operator== (const fsStr &pRHS) const
fsBool operator== (const fsChar *pRHS) const
fsStroperator+= (const fsStr &pRHS)
fsStroperator+= (fsChar pRHS)
fsStroperator+= (fsS32 pUnicode)
const fsCharoperator[] (sizeT pIndex) const
fsCharoperator[] (sizeT pIndex)
const fsStr operator+ (const fsStr &pRHS) const
 fsStr ()
 fsStr (const fsChar *pStr)
 fsStr (fsChar pChar)
 fsStr (fsS32 pInt)
 fsStr (fsU32 pInt)
 fsStr (fsU64 pInt)
 fsStr (fsS64 pInt)
 fsStr (fsF32 pFlt)

Static Public Member Functions

static fsBool isDigit (fsChar pC)

Static Public Attributes

static constexpr sizeT npos = std::string::npos
static constexpr fsChar mNewLineChar {'\n'}
static constexpr fsChar mLineFeedChar {'\r'}
static constexpr fsChar mTabChar {'\t'}
static constexpr fsChar mSpaceChar {' '}

Member Typedef Documentation

◆ sizeT

typedef std::string::size_type fsStr::sizeT

Constructor & Destructor Documentation

◆ fsStr() [1/9]

fsStr::fsStr ( const char * data,
sizeT len )

◆ fsStr() [2/9]

fsStr::fsStr ( )
inline

◆ fsStr() [3/9]

fsStr::fsStr ( const fsChar * pStr)
inline

◆ fsStr() [4/9]

fsStr::fsStr ( fsChar pChar)
inline

◆ fsStr() [5/9]

fsStr::fsStr ( fsS32 pInt)
inline

◆ fsStr() [6/9]

fsStr::fsStr ( fsU32 pInt)
inline

◆ fsStr() [7/9]

fsStr::fsStr ( fsU64 pInt)
inline

◆ fsStr() [8/9]

fsStr::fsStr ( fsS64 pInt)
inline

◆ fsStr() [9/9]

fsStr::fsStr ( fsF32 pFlt)
inline

Member Function Documentation

◆ chomp()

fsStr fsStr::chomp ( const fsStr & pTerm)

◆ chunk()

fsStr fsStr::chunk ( )

◆ compare()

fsBool fsStr::compare ( const char * pString,
int len ) const

◆ copy() [1/2]

void fsStr::copy ( const char * pString)

◆ copy() [2/2]

void fsStr::copy ( const char * pString,
fsS32 pStart,
fsS32 pCount )

◆ count()

fsS32 fsStr::count ( fsChar pChar) const

◆ dataSizeGet()

sizeT fsStr::dataSizeGet ( ) const
inline

◆ downcase()

void fsStr::downcase ( )

◆ emptyGet()

fsBool fsStr::emptyGet ( ) const
inline

◆ erase()

void fsStr::erase ( sizeT pOff = 0,
sizeT pCount = npos )
inline

◆ eraseFromLast()

void fsStr::eraseFromLast ( const fsStr & pMatch)

◆ eraseToLast()

void fsStr::eraseToLast ( const fsStr & pMatch)

◆ find() [1/3]

sizeT fsStr::find ( const char * pSub,
sizeT pOffset = 0 ) const
inline

◆ find() [2/3]

sizeT fsStr::find ( const char pSub,
sizeT pOffset = 0 ) const
inline

◆ find() [3/3]

sizeT fsStr::find ( const fsStr & pSub,
sizeT pOffset = 0 ) const
inline

◆ find_first_of()

sizeT fsStr::find_first_of ( const fsStr & pSub,
sizeT pOffset = 0 ) const
inline

◆ formattingRemove()

void fsStr::formattingRemove ( )

◆ hTMLCodesReplace()

void fsStr::hTMLCodesReplace ( )

◆ isAlphaNumeric()

fsBool fsStr::isAlphaNumeric ( ) const

◆ isDigit()

fsBool fsStr::isDigit ( fsChar pC)
static

◆ leadingWhitespaceTrim()

void fsStr::leadingWhitespaceTrim ( )

◆ lengthGet()

fsStr::sizeT fsStr::lengthGet ( ) const

◆ operator!=() [1/2]

fsBool fsStr::operator!= ( const fsChar * pRHS) const
inline

◆ operator!=() [2/2]

fsBool fsStr::operator!= ( const fsStr & pRHS) const
inline

◆ operator+()

const fsStr fsStr::operator+ ( const fsStr & pRHS) const
inline

◆ operator+=() [1/3]

fsStr & fsStr::operator+= ( const fsStr & pRHS)
inline

◆ operator+=() [2/3]

fsStr & fsStr::operator+= ( fsChar pRHS)
inline

◆ operator+=() [3/3]

fsStr & fsStr::operator+= ( fsS32 pUnicode)

◆ operator<()

fsBool fsStr::operator< ( const fsStr & pRHS) const
inline

◆ operator==() [1/2]

fsBool fsStr::operator== ( const fsChar * pRHS) const
inline

◆ operator==() [2/2]

fsBool fsStr::operator== ( const fsStr & pRHS) const
inline

◆ operator[]() [1/2]

fsChar & fsStr::operator[] ( sizeT pIndex)
inline

◆ operator[]() [2/2]

const fsChar & fsStr::operator[] ( sizeT pIndex) const
inline

◆ ptrGet()

const fsU8 * fsStr::ptrGet ( ) const

◆ removeXmlTags()

void fsStr::removeXmlTags ( )

◆ replaceAll()

void fsStr::replaceAll ( const fsStr & pFind,
const fsStr & pReplace )

◆ replaceFirst()

void fsStr::replaceFirst ( const fsStr & pFind,
const fsStr & pReplace )

◆ rfind() [1/3]

sizeT fsStr::rfind ( const fsChar * pSub,
sizeT pOffset = npos ) const
inline

◆ rfind() [2/3]

sizeT fsStr::rfind ( const fsChar pSub,
sizeT pOffset = npos ) const
inline

◆ rfind() [3/3]

sizeT fsStr::rfind ( const fsStr & pSub,
sizeT pOffset = npos ) const
inline

◆ stringSet()

void fsStr::stringSet ( const char * str,
int len )

◆ toF32()

fsF32 fsStr::toF32 ( ) const

◆ toS32()

fsS32 fsStr::toS32 ( ) const

◆ toS64()

fsS64 fsStr::toS64 ( ) const

◆ toU32()

fsU32 fsStr::toU32 ( ) const

◆ trailingWhitespaceTrim()

void fsStr::trailingWhitespaceTrim ( )

◆ trimToLength()

void fsStr::trimToLength ( fsS32 pNumChars)

◆ upcase()

void fsStr::upcase ( )

◆ utf8Get()

const char * fsStr::utf8Get ( ) const
inline

Member Data Documentation

◆ mLineFeedChar

fsChar fsStr::mLineFeedChar {'\r'}
staticconstexpr

◆ mNewLineChar

fsChar fsStr::mNewLineChar {'\n'}
staticconstexpr

◆ mSpaceChar

fsChar fsStr::mSpaceChar {' '}
staticconstexpr

◆ mTabChar

fsChar fsStr::mTabChar {'\t'}
staticconstexpr

◆ npos

sizeT fsStr::npos = std::string::npos
staticconstexpr

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