Itasca C++ Interface
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
IString Class Reference
Inheritance diagram for IString:

Public Types

enum class  Empty { Keep , Skip }
 
enum class  Case { Insensitive , Sensitive }
 

Public Member Functions

 IString (const IString &is)
 
 IString (IString &&is)
 
 IString (const string &s)
 
 IString (string &&s)
 
 IString (const char *in)
 
 IString (int i, char c)
 
 IString (const Buffer &in)
 
 IString (char c)
 
IStringoperator= (const IString &s)
 
IStringoperator= (IString &&s)
 
IStringoperator= (const char *str)
 
IStringoperator= (const string &s)
 
IStringoperator= (string &&s)
 
IStringoperator= (char c)
 
BASE_EXPORT IString (const QByteArray &in)
 
BASE_EXPORT IString (const QString &in)
 
BASE_EXPORT const IStringoperator= (const QString &)
 
BASE_EXPORT operator QString () const
 
BASE_EXPORT operator QVariant () const
 
IString operator+ (const IString &s) const
 
IString operator+ (const string &s) const
 
IString operator+ (const char *s) const
 
BASE_EXPORT IString operator+ (const QString &s) const
 
IString operator+= (const IString &s)
 
IString operator+= (const char *str)
 
IString operator+= (const string &s)
 
IString operator+= (char c)
 
BASE_EXPORT IString operator+= (const QString &s)
 
int size () const
 
int length () const
 
IString mid (int start, int end) const
 
IString mid (int start) const
 
IString left (int pos) const
 
IString right (int pos) const
 
int indexOf (char c, int start=0) const
 
int indexOf (const IString &s, int start=0)
 
int lastIndexOf (char c) const
 
int lastIndexOf (const IString &s) const
 
BASE_EXPORT IStringList split (const string &sep, Empty empty=Empty::Keep) const
 
BASE_EXPORT IStringList split (char sep, Empty empty=Empty::Keep) const
 
IString simplified () const
 
string toStdString () const
 
std::wstring toStdWString () const
 
bool isEmpty () const
 
int compare (const IString &s, Case c=Case::Sensitive) const
 
BASE_EXPORT int localeAwareCompare (const IString &s) const
 
IString toLower () const
 
IString toUpper () const
 
int32 toInt (bool *ok=nullptr) const
 
uint32 toUInt (bool *ok=nullptr) const
 
uint64 toULongLong (bool *ok=nullptr) const
 
int64 toLongLong (bool *ok=nullptr) const
 
double toDouble (bool *ok=nullptr) const
 
BASE_EXPORT QByteArray toUtf8 () const
 
BASE_EXPORT QByteArray toLatin1 () const
 
IString toString () const
 
BASE_EXPORT bool contains (const IString &s, Case c=Case::Sensitive) const
 
BASE_EXPORT bool startsWith (const IString &s, Case c=Case::Sensitive) const
 
BASE_EXPORT bool endsWith (const IString &s, Case c=Case::Sensitive) const
 
BASE_EXPORT int count (const IString &c) const
 
BASE_EXPORT IString leftJustified (int width, char fill=' ', bool truncate=false) const
 
BASE_EXPORT IString rightJustified (int width, char fill=' ', bool truncate=false) const
 
IString trimmed () const
 
BASE_EXPORT IString arg (const IString &s, int width=0, char fill=' ') const
 
IString arg (float f, int width=0, char format='g', int precision=0, char fill=' ') const
 
IString arg (double d, int width=0, char format='g', int precision=0, char fill=' ') const
 
IString arg (uint32 i, int width=0, int base=10, char fill=' ') const
 
IString arg (uint64 i, int width=0, int base=10, char fill=' ') const
 
IString arg (int32 i, int width=0, int base=10, char fill=' ') const
 
IString arg (int64 i, int width=0, int base=10, char fill=' ') const
 
BASE_EXPORT IString arg (const IString &arg, const IString &arg2, const IString &arg3={}, const IString &arg4={}) const
 
BASE_EXPORT void chop (int pos)
 
BASE_EXPORT void truncate (int pos)
 
BASE_EXPORT IStringreplace (const IString &before, const IString &after, Case c=Case::Sensitive)
 
BASE_EXPORT IStringreplace (int pos, int n, char after)
 
BASE_EXPORT IStringreplace (int pos, int n, const IString &after)
 
BASE_EXPORT IStringremove (const IString &val)
 
BASE_EXPORT IStringremove (int pos, int len)
 
BASE_EXPORT IStringremove (char c)
 
BASE_EXPORT IStringremove (QChar c)
 
BASE_EXPORT void prepend (char c)
 
BASE_EXPORT IStringinsert (int position, char c)
 
IStringinsert (int position, const IString &s)
 

Static Public Member Functions

static IString fromStdString (const string &s)
 
static IString fromStdU16String (const std::u16string &s)
 
static IString fromStdWString (const std::wstring &s)
 
static IString fromUtf8 (const char *str)
 
static IString fromUtf8 (const char *str, size_t size)
 
static IString fromLatin1 (const char *str)
 
static BASE_EXPORT int compare (const IString &first, const IString &second, Case c=Case::Sensitive)
 
static BASE_EXPORT IString number (double d, char format='g', int precision=6)
 

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