sead
Loading...
Searching...
No Matches
sead::FixedSafeStringBase< CharType, N > Class Template Reference

#include <seadSafeString.h>

Inherits sead::BufferedSafeStringBase< CharType >.

Public Member Functions

 FixedSafeStringBase ()
 FixedSafeStringBase (const SafeStringBase< CharType > &rhs)
 FixedSafeStringBase (const FixedSafeStringBase< CharType, N > &rhs)
 ~FixedSafeStringBase () override
FixedSafeStringBase< CharType, N > & operator= (const FixedSafeStringBase< CharType, N > &rhs)
FixedSafeStringBase< CharType, N > & operator= (const SafeStringBase< CharType > &rhs)
Public Member Functions inherited from sead::BufferedSafeStringBase< CharType >
 BufferedSafeStringBase (CharType *buffer, s32 size)
 BufferedSafeStringBase (BufferedSafeStringBase< CharType > *original, s32 pos)
 ~BufferedSafeStringBase () override
const CharType & operator[] (s32 idx) const
s32 getBufferSize () const
s32 copy (const SafeStringBase< CharType > &rhs, s32 size=-1)
s32 copyAt (s32 at, const SafeStringBase< CharType > &src, s32 cpy_length=-1)
s32 format (const CharType *format_string,...)
s32 formatV (const CharType *format_string, va_list varg)
s32 appendWithFormat (const CharType *format_string,...)
s32 appendWithFormatV (const CharType *format_string, va_list varg)
s32 append (const SafeStringBase< CharType > &src, s32 append_length=-1)
s32 append (CharType src_chr)
s32 chop (s32 chop_num=1)
s32 chopMatchedChar (CharType chop_char)
s32 chopMatchedChar (const SafeStringBase< CharType > &chop_char_list)
s32 chomp ()
s32 chopUnprintableAsciiChar ()
s32 rstrip (const SafeStringBase< CharType > &strip_char_list)
s32 rstripUnprintableAsciiChars ()
s32 trim (s32 trim_length)
s32 trimMatchedString (const SafeStringBase< CharType > &trim_string)
void clear ()
s32 convertFromMultiByteString (const SafeStringBase< CharType > &src, s32 src_size=-1)
s32 convertFromWideCharString (const SafeStringBase< char16 > &src, s32 src_size=-1)
CharType * getBuffer ()
s32 format (const char *format_string,...)
s32 format (const char16 *format_string,...)
s32 formatV (const char *format_string, va_list varg)
s32 formatV (const char16 *format_string, va_list varg)
s32 appendWithFormat (const char *format_string,...)
s32 appendWithFormat (const char16 *format_string,...)
s32 appendWithFormatV (const char *format_string, va_list varg)
s32 appendWithFormatV (const char16 *format_string, va_list varg)
s32 formatV (const char *format_string, va_list varg)
s32 formatV (const char16 *format_string, va_list varg)
s32 format (const char *format_string,...)
s32 format (const char16 *format_string,...)
s32 appendWithFormatV (const char *format_string, va_list varg)
s32 appendWithFormatV (const char16 *format_string, va_list varg)
s32 appendWithFormat (const char *format_string,...)
s32 appendWithFormat (const char16 *format_string,...)
Public Member Functions inherited from sead::SafeStringBase< CharType >
 SafeStringBase ()
 SafeStringBase (const CharType *str)
 SafeStringBase (const SafeStringBase &other)=default
SafeStringBaseoperator= (const SafeStringBase &other)=default
virtual ~SafeStringBase ()
iterator begin () const
iterator end () const
token_iterator tokenBegin (const SafeStringBase< CharType > &delimiter) const
token_iterator tokenEnd (const SafeStringBase< CharType > &delimiter=SafeStringBase< CharType >()) const
const CharType * cstr () const
const CharType & at (s32 idx) const
const CharType & operator[] (s32 idx) const
s32 calcLength () const
const SafeStringBase< CharType > getPart (s32 at) const
const SafeStringBase< CharType > getPart (const iterator &it) const
bool include (const CharType &c) const
bool include (const SafeStringBase< CharType > &str) const
bool isEqual (const SafeStringBase< CharType > &rhs) const
s32 comparen (const SafeStringBase< CharType > &rhs, s32 n) const
s32 compare (const SafeStringBase< CharType > &rhs) const
iterator findIterator (const SafeStringBase< CharType > &token) const
s32 findIndex (const SafeStringBase< CharType > &token) const
iterator rfindIterator (const SafeStringBase< CharType > &token) const
s32 rfindIndex (const SafeStringBase< CharType > &token) const
bool isEmpty () const
const char cNullChar
const char cLineBreakChar
const SafeStringBase< char > cEmptyString ("")
const char16 cNullChar
const char16 cLineBreakChar
const SafeStringBase< char16cEmptyString (cEmptyStringChar16)

Private Attributes

CharType mBuffer [N]

Additional Inherited Members

Static Public Attributes inherited from sead::SafeStringBase< CharType >
static const CharType cNullChar
static const CharType cLineBreakChar
static const SafeStringBase< CharType > cEmptyString
static const s32 cMaximumLength = 256*1024
Protected Member Functions inherited from sead::BufferedSafeStringBase< CharType >
void assureTerminationImpl_ () const override
Protected Attributes inherited from sead::SafeStringBase< CharType >
const CharType * mStringTop

Constructor & Destructor Documentation

◆ FixedSafeStringBase() [1/3]

template<typename CharType, s32 N>
sead::FixedSafeStringBase< CharType, N >::FixedSafeStringBase ( )
inline

◆ FixedSafeStringBase() [2/3]

template<typename CharType, s32 N>
sead::FixedSafeStringBase< CharType, N >::FixedSafeStringBase ( const SafeStringBase< CharType > & rhs)
inlineexplicit

◆ FixedSafeStringBase() [3/3]

template<typename CharType, s32 N>
sead::FixedSafeStringBase< CharType, N >::FixedSafeStringBase ( const FixedSafeStringBase< CharType, N > & rhs)
inline

◆ ~FixedSafeStringBase()

template<typename CharType, s32 N>
sead::FixedSafeStringBase< CharType, N >::~FixedSafeStringBase ( )
inlineoverride

Member Function Documentation

◆ operator=() [1/2]

template<typename CharType, s32 N>
FixedSafeStringBase< CharType, N > & sead::FixedSafeStringBase< CharType, N >::operator= ( const FixedSafeStringBase< CharType, N > & rhs)
inline

◆ operator=() [2/2]

template<typename CharType, s32 N>
FixedSafeStringBase< CharType, N > & sead::FixedSafeStringBase< CharType, N >::operator= ( const SafeStringBase< CharType > & rhs)
inline

Member Data Documentation

◆ mBuffer

template<typename CharType, s32 N>
CharType sead::FixedSafeStringBase< CharType, N >::mBuffer[N]
private