|
|
|
|
@@ -42,7 +42,7 @@ public:
|
|
|
|
|
PIString & operator +=(const PIChar & c) {push_back(c); return *this;}
|
|
|
|
|
PIString & operator +=(const char * str);
|
|
|
|
|
PIString & operator +=(const wchar_t * str);
|
|
|
|
|
PIString & operator +=(const PIByteArray & ba) {appendFromChars((const char * )ba.data(), ba.size_s()); return *this;}
|
|
|
|
|
// PIString & operator +=(const PIByteArray & ba) {appendFromChars((const char * )ba.data(), ba.size_s()); return *this;}
|
|
|
|
|
PIString & operator +=(const PIString & str);
|
|
|
|
|
|
|
|
|
|
//PIString(const char c) {*this += c;}
|
|
|
|
|
@@ -82,16 +82,16 @@ public:
|
|
|
|
|
PIString(const int len, const PIChar & c): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; for (int i = 0; i < len; ++i) push_back(c);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PIString(const short & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const ushort & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const int & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const uint & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const long & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const ulong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const llong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const ullong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const float & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
PIString(const double & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const short & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const ushort & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const int & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const uint & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const long & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const ulong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const llong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const ullong & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const float & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
// PIString(const double & value): PIDeque<PIChar>() {/*reserve(4); */piMonitor.strings++; piMonitor.containers--; *this = fromNumber(value);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//~PIString() {piMonitor.strings--; piMonitor.containers++;}
|
|
|
|
|
@@ -173,23 +173,23 @@ public:
|
|
|
|
|
bool operator >=(const char * str) const {return *this >= PIString(str);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
operator bool() const {return toBool();}
|
|
|
|
|
operator short() const {return toShort();}
|
|
|
|
|
operator ushort() const {return toUShort();}
|
|
|
|
|
operator int() const {return toInt();}
|
|
|
|
|
operator uint() const {return toUInt();}
|
|
|
|
|
operator long() const {return toLong();}
|
|
|
|
|
operator ulong() const {return toULong();}
|
|
|
|
|
operator llong() const {return toLLong();}
|
|
|
|
|
operator ullong() const {return toULLong();}
|
|
|
|
|
operator float() const {return toFloat();}
|
|
|
|
|
operator double() const {return toDouble();}
|
|
|
|
|
// operator bool() const {return toBool();}
|
|
|
|
|
// operator short() const {return toShort();}
|
|
|
|
|
// operator ushort() const {return toUShort();}
|
|
|
|
|
// operator int() const {return toInt();}
|
|
|
|
|
// operator uint() const {return toUInt();}
|
|
|
|
|
// operator long() const {return toLong();}
|
|
|
|
|
// operator ulong() const {return toULong();}
|
|
|
|
|
// operator llong() const {return toLLong();}
|
|
|
|
|
// operator ullong() const {return toULLong();}
|
|
|
|
|
// operator float() const {return toFloat();}
|
|
|
|
|
// operator double() const {return toDouble();}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*! \brief Append string "str" at the end of string
|
|
|
|
|
* \details Example: \snippet pistring.cpp PIString::<<(PIString) */
|
|
|
|
|
PIString & operator <<(const PIString & str) {*this += str; return *this;}
|
|
|
|
|
//inline PIString & operator <<(const char c) {*this += c; return *this;}
|
|
|
|
|
// inline PIString & operator <<(const char c) {*this += c; return *this;}
|
|
|
|
|
|
|
|
|
|
/*! \brief Append symbol "c" at the end of string
|
|
|
|
|
* \details Example: \snippet pistring.cpp PIString::<<(PIChar) */
|
|
|
|
|
@@ -800,13 +800,13 @@ public:
|
|
|
|
|
|
|
|
|
|
PIStringList & operator <<(const PIString & str) {push_back(str); return *this;}
|
|
|
|
|
PIStringList & operator <<(const PIStringList & sl) {piForeachC (PIString & i, sl) push_back(i); return *this;}
|
|
|
|
|
//inline PIStringList & operator <<(const char c) {push_back(PIString(c)); return *this;}
|
|
|
|
|
// inline PIStringList & operator <<(const char c) {push_back(PIString(c)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const char * str) {push_back(PIString(str)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const int & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const short & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const long & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const float & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
PIStringList & operator <<(const double & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
// PIStringList & operator <<(const int & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
// PIStringList & operator <<(const short & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
// PIStringList & operator <<(const long & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
// PIStringList & operator <<(const float & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
// PIStringList & operator <<(const double & num) {push_back(PIString::fromNumber(num)); return *this;}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|