Line 89... |
Line 89... |
89 |
|
89 |
|
90 |
// casting operators
|
90 |
// casting operators
|
91 |
inline operator const wchar_t *() const { return (const wchar_t *)c_str(); }
|
91 |
inline operator const wchar_t *() const { return (const wchar_t *)c_str(); }
|
92 |
inline operator wchar_t *() const { return (wchar_t *)c_str(); }
|
92 |
inline operator wchar_t *() const { return (wchar_t *)c_str(); }
|
93 |
inline operator const std::wstring &() const { return (const std::wstring &)*this; }
|
93 |
inline operator const std::wstring &() const { return (const std::wstring &)*this; }
|
94 |
inline operator const int () const { return this->toLong(); }
|
94 |
inline operator const int () const { return static_cast<int>(this->toLong()); }
|
95 |
inline operator const long () const { return this->toLong(); }
|
95 |
inline operator const long () const { return this->toLong(); }
|
96 |
inline operator const double () const { return this->toDouble(); }
|
96 |
inline operator const double () const { return this->toDouble(); }
|
97 |
inline operator const float () const { return this->toFloat(); }
|
97 |
inline operator const float () const { return this->toFloat(); }
|
98 |
inline operator const bool () const { return (this->empty() ? false : ((this->toLong()) ? true : false)); }
|
98 |
inline operator const bool () const { return (this->empty() ? false : ((this->toLong()) ? true : false)); }
|
99 |
|
99 |
|
Line 106... |
Line 106... |
106 |
const WString &operator= ( unsigned long l );
|
106 |
const WString &operator= ( unsigned long l );
|
107 |
const WString &operator= ( float l );
|
107 |
const WString &operator= ( float l );
|
108 |
const WString &operator= ( double l );
|
108 |
const WString &operator= ( double l );
|
109 |
|
109 |
|
110 |
// subscript operators
|
110 |
// subscript operators
|
111 |
const wchar_t operator[] (int num) const;
|
111 |
const wchar_t operator[] (size_t num) const;
|
112 |
wchar_t &operator[] (int num);
|
112 |
wchar_t &operator[] (size_t num);
|
113 |
|
113 |
|
114 |
// addition operators
|
114 |
// addition operators
|
115 |
WString operator+ (const wchar_t* str) const;
|
115 |
WString operator+ (const wchar_t* str) const;
|
116 |
WString operator+ (const char* str) const;
|
116 |
WString operator+ (const char* str) const;
|
117 |
WString operator+ ( const std::wstring &str ) const;
|
117 |
WString operator+ ( const std::wstring &str ) const;
|
Line 153... |
Line 153... |
153 |
// tokens
|
153 |
// tokens
|
154 |
int countToken(const wchar_t *token) const;
|
154 |
int countToken(const wchar_t *token) const;
|
155 |
WString token(const wchar_t *token, int tok) const;
|
155 |
WString token(const wchar_t *token, int tok) const;
|
156 |
WString tokens(const wchar_t *token, int from, int to = 0) const;
|
156 |
WString tokens(const wchar_t *token, int from, int to = 0) const;
|
157 |
WString *tokenise(const wchar_t *token, int *max) const;
|
157 |
WString *tokenise(const wchar_t *token, int *max) const;
|
158 |
size_t tokenise(const wchar_t* token, std::vector<WString> &str) const;
|
158 |
size_t tokenise(const wchar_t* token, std::vector<WString>& str) const;
|
- |
|
159 |
std::vector<std::wstring> tokenise(const wchar_t* token) const;
|
159 |
WString replaceToken(const wchar_t *token, int from, const WString &replace) const;
|
160 |
WString replaceToken(const wchar_t *token, int from, const WString &replace) const;
|
160 |
WString remToken(const wchar_t* token, int from) const;
|
161 |
WString remToken(const wchar_t* token, int from) const;
|
161 |
WString remTokens(const wchar_t* token, int from, int to = -1) const;
|
162 |
WString remTokens(const wchar_t* token, int from, int to = -1) const;
|
162 |
WString word(int word) const;
|
163 |
WString word(int word) const;
|
163 |
WString words(int from, int to = 0) const;
|
164 |
WString words(int from, int to = 0) const;
|