class Core::ConstString
C-String pointer wrapper, safe for ASCII-encoded text only!
#include <corestringbuffer.h> class ConstString: public Core::CStringTraits, public Core::CStringClassifier { public: // construction ConstString(CStringPtr text = nullptr); };
Inherited Members
public: // methods CStringPtr str() const; bool isEmpty() const; int length() const; bool copyTo(char* charBuffer, int bufferSize) const; int index(CStringPtr other) const; bool contains(CStringPtr other) const; bool startsWith(CStringPtr other) const; bool endsWith(CStringPtr other) const; int index(char c) const; int index(uchar c) const; int lastIndex(char c) const; int lastIndex(uchar c) const; bool contains(char c) const; int compare(CStringPtr other, bool caseSensitive = true) const; bool getIntValue(int32& value) const; bool getIntValue(int64& value) const; int scanInt(int fallback = 0) const; int64 scanLargetInt(int64 fallback = 0) const; bool getHexValue(int64& value) const; bool getFloatValue(double& value) const; bool getFloatValue(float& value) const; float scanFloat(float fallback = 0) const; double scanDouble(double fallback = 0) const; unsigned int getHashCode() const; bool operator == (CStringPtr other) const; bool operator != (CStringPtr other) const; template <class S> bool operator == (const CStringTraits<S>& other) const; template <class S> bool operator != (const CStringTraits<S>& other) const; bool equalsUnsafe(CStringPtr other) const; char at(int index) const; char firstChar() const; char lastChar() const; char operator [] (int index) const; operator CStringPtr () const; static bool isAlpha(char c); static bool isAlphaNumeric(char c); static bool isWhitespace(char c); static bool isDigit(char c); static bool isASCII(char c); static bool isLowercase(char c); static bool isUppercase(char c); static char toLowercase(char c); static char toUppercase(char c);