Subversion Repositories spk

Rev

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

Rev 204 Rev 213
Line 30... Line 30...
30
public:
30
public:
31
	// constructors
31
	// constructors
32
	WString(void);
32
	WString(void);
33
	WString(const char* str);
33
	WString(const char* str);
34
	WString(const wchar_t* str);
34
	WString(const wchar_t* str);
35
	WString(const unsigned char *str);
-
 
36
	WString(const std::string& str);
35
	WString(const std::string& str);
37
	WString(const std::wstring& str);
36
	WString(const std::wstring& str);
38
	WString(const char c);
37
	WString(const char c);
39
	WString(const unsigned char c);
38
	WString(const unsigned char c);
40
	WString(const wchar_t c);
39
	WString(const wchar_t c);
Line 53... Line 52...
53
 
52
 
54
	virtual ~WString(void);
53
	virtual ~WString(void);
55
 
54
 
56
	// conversion functions
55
	// conversion functions
57
	void fromLong(long l);
56
	void fromLong(long l);
58
	const WString &fromFloat(float f, int dp = -1);
57
	const WString& fromFloat(float f, int dp = -1);
-
 
58
	const WString& fromString(const char* str);
-
 
59
	const WString& fromString(const unsigned char* str);
59
	void fromDouble(double f);
60
	void fromDouble(double f);
60
	const WString &fromDouble(double f, int dp);
61
	const WString &fromDouble(double f, int dp);
61
	const WString &format(const wchar_t *sFormat, ...);
62
	const WString &format(const wchar_t *sFormat, ...);
62
	const WString args(const WString* args, int max) const;
63
	const WString args(const WString* args, int max) const;
63
	const WString args(const WStringList& args) const;
64
	const WString args(const WStringList& args) const;
Line 71... Line 72...
71
	static WString PadNumber(long iNum, int iAmount);
72
	static WString PadNumber(long iNum, int iAmount);
72
	static WString Number(long l) { return WString(l); }
73
	static WString Number(long l) { return WString(l); }
73
	static WString Format(const wchar_t *sFormat, ...);
74
	static WString Format(const wchar_t *sFormat, ...);
74
	static WString Null();
75
	static WString Null();
75
	static WString FromFloat(float f, int dp = -1);
76
	static WString FromFloat(float f, int dp = -1);
-
 
77
	static WString FromString(const char* data);
-
 
78
	static WString FromString(const unsigned char* data);
76
 
79
 
77
	bool toBool() const;
80
	bool toBool() const;
78
	long toLong() const;
81
	long toLong() const;
79
	int toInt() const;
82
	int toInt() const;
80
	double toDouble() const;
83
	double toDouble() const;
Line 206... Line 209...
206
	bool _isCharNumber(wchar_t c) const;
209
	bool _isCharNumber(wchar_t c) const;
207
	Utils::WString::size_type _token_nextPos(const wchar_t *token, Utils::WString::size_type curPos) const;
210
	Utils::WString::size_type _token_nextPos(const wchar_t *token, Utils::WString::size_type curPos) const;
208
};
211
};
209
 
212
 
210
SPKEXPORT WString operator+(const wchar_t* str1, const WString& str2);
213
SPKEXPORT WString operator+(const wchar_t* str1, const WString& str2);
211
SPKEXPORT WString operator+(const unsigned char* str1, const WString& str2);
-
 
212
SPKEXPORT WString operator+(const char* str1, const WString& str2);
214
SPKEXPORT WString operator+(const char* str1, const WString& str2);
213
 
215
 
214
#pragma warning( pop )
216
#pragma warning( pop )
215
 
217
 
216
}
218
}