Subversion Repositories spk

Rev

Rev 196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 196 Rev 284
Line 65... Line 65...
65
	static SString Null();
65
	static SString Null();
66
	static SString FromFloat(float f, int dp = -1);
66
	static SString FromFloat(float f, int dp = -1);
67
 
67
 
68
	bool toBool() const;
68
	bool toBool() const;
69
	long toLong() const;
69
	long toLong() const;
-
 
70
	long long toLong64() const;
70
	int toInt() const;
71
	int toInt() const;
71
	double toDouble() const;
72
	double toDouble() const;
72
	float toFloat() const;
73
	float toFloat() const;
73
 
74
 
74
	const Utils::WString toWString() const;
75
	const Utils::WString toWString() const;
-
 
76
	const long long lengthLL() const;
75
 
77
 
76
	// casting operators
78
	// casting operators
77
	inline operator const char *() const			{ return (const char *)c_str(); }
79
	inline operator const char *() const			{ return (const char *)c_str(); }
78
	inline operator char *() const					{ return (char *)c_str(); }
80
	inline operator char *() const					{ return (char *)c_str(); }
79
	inline operator const unsigned char *() const	{ return (const unsigned char *)c_str(); }
81
	inline operator const unsigned char *() const	{ return (const unsigned char *)c_str(); }
Line 96... Line 98...
96
	const SString &operator= ( unsigned long l );
98
	const SString &operator= ( unsigned long l );
97
	const SString &operator= ( float l );
99
	const SString &operator= ( float l );
98
	const SString &operator= ( double l );
100
	const SString &operator= ( double l );
99
 
101
 
100
	// subscript operators
102
	// subscript operators
101
	const unsigned char operator[] ( int num ) const;
103
	const unsigned char operator[] (size_t num ) const;
102
	unsigned char &operator[] ( int num );
104
	unsigned char &operator[] (size_t num );
103
 
105
 
104
	// addition operators
106
	// addition operators
105
	SString operator+ ( const char *str ) const;
107
	SString operator+ ( const char *str ) const;
106
	SString operator+ ( const unsigned char *str ) const;
108
	SString operator+ ( const unsigned char *str ) const;
107
	SString operator+ ( const std::string &str ) const;
109
	SString operator+ ( const std::string &str ) const;
Line 158... Line 160...
158
	SString word(int word) const;
160
	SString word(int word) const;
159
	SString words(int from, int to = 0) const;
161
	SString words(int from, int to = 0) const;
160
	SString addToken(const char *token, const Utils::SString &str) const;
162
	SString addToken(const char *token, const Utils::SString &str) const;
161
	
163
	
162
	// find/replacement
164
	// find/replacement
163
	int findPos(const SString &find, int iStartPos = 0) const;
165
	long long findPos(const SString &find, size_t iStartPos = 0) const;
164
	SString findReplace(const SString &find, const SString &replace ) const;
166
	SString findReplace(const SString &find, const SString &replace ) const;
165
	SString remove(char c) const;
167
	SString remove(char c) const;
166
	const SString &removeChar(char c);
168
	const SString &removeChar(char c);
167
	const SString &removeChar(const char *cs);
169
	const SString &removeChar(const char *cs);
168
	SString findRemove(const SString &find) const;
170
	SString findRemove(const SString &find) const;
Line 176... Line 178...
176
	bool isin(char c, bool bCaseSensative = false) const;
178
	bool isin(char c, bool bCaseSensative = false) const;
177
	int compareVersion(const Utils::SString &v) const;
179
	int compareVersion(const Utils::SString &v) const;
178
	bool match(const Utils::SString &pattern) const;
180
	bool match(const Utils::SString &pattern) const;
179
 
181
 
180
	// sub string
182
	// sub string
181
	SString left(long num) const;
183
	SString left(long long num) const;
182
	SString right(int num) const;
184
	SString right(long long num) const;
183
	SString mid(int start, int end) const;
185
	SString mid(long long start, long long end) const;
184
	SString between(const SString &before, const SString &after) const;
186
	SString between(const SString &before, const SString &after) const;
185
 
187
 
186
	bool isNumber(bool integer = false) const;
188
	bool isNumber(bool integer = false) const;
187
	bool isCharNumber(int c) const;
189
	bool isCharNumber(int c) const;
188
	const SString &removeFirstSpace();
190
	const SString &removeFirstSpace();