| Line 40... |
Line 40... |
| 40 |
WString(const std::wstring& str);
|
40 |
WString(const std::wstring& str);
|
| 41 |
WString(const char c);
|
41 |
WString(const char c);
|
| 42 |
WString(const unsigned char c);
|
42 |
WString(const unsigned char c);
|
| 43 |
WString(const wchar_t c);
|
43 |
WString(const wchar_t c);
|
| 44 |
WString(const WString &str);
|
44 |
WString(const WString &str);
|
| - |
|
45 |
WString(long long l);
|
| - |
|
46 |
WString(unsigned long long l);
|
| 45 |
WString(long l);
|
47 |
WString(long l);
|
| 46 |
WString(unsigned long l);
|
48 |
WString(unsigned long l);
|
| 47 |
WString(float f);
|
49 |
WString(float f);
|
| 48 |
WString(double f);
|
50 |
WString(double f);
|
| 49 |
WString(wchar_t* str, int len = -1)
|
51 |
WString(wchar_t* str, int len = -1)
|
| Line 56... |
Line 58... |
| 56 |
|
58 |
|
| 57 |
virtual ~WString(void);
|
59 |
virtual ~WString(void);
|
| 58 |
|
60 |
|
| 59 |
// conversion functions
|
61 |
// conversion functions
|
| 60 |
void fromLong(long l);
|
62 |
void fromLong(long l);
|
| - |
|
63 |
void fromLong64(long long l);
|
| 61 |
const WString& fromFloat(float f, int dp = -1);
|
64 |
const WString& fromFloat(float f, int dp = -1);
|
| 62 |
const WString& fromString(const char* str);
|
65 |
const WString& fromString(const char* str);
|
| 63 |
const WString& fromString(const unsigned char* str);
|
66 |
const WString& fromString(const unsigned char* str);
|
| 64 |
void fromDouble(double f);
|
67 |
void fromDouble(double f);
|
| 65 |
const WString &fromDouble(double f, int dp);
|
68 |
const WString &fromDouble(double f, int dp);
|
| Line 82... |
Line 85... |
| 82 |
static WString FromString(const char* data);
|
85 |
static WString FromString(const char* data);
|
| 83 |
static WString FromString(const unsigned char* data);
|
86 |
static WString FromString(const unsigned char* data);
|
| 84 |
|
87 |
|
| 85 |
bool toBool() const;
|
88 |
bool toBool() const;
|
| 86 |
long toLong() const;
|
89 |
long toLong() const;
|
| - |
|
90 |
long long toLong64() const;
|
| 87 |
int toInt() const;
|
91 |
int toInt() const;
|
| 88 |
double toDouble() const;
|
92 |
double toDouble() const;
|
| 89 |
float toFloat() const;
|
93 |
float toFloat() const;
|
| 90 |
const wchar_t* toWChar() const;
|
94 |
const wchar_t* toWChar() const;
|
| 91 |
const wchar_t* c_str() const;
|
95 |
const wchar_t* c_str() const;
|
| Line 99... |
Line 103... |
| 99 |
inline operator const wchar_t *() const { return _data.c_str(); }
|
103 |
inline operator const wchar_t *() const { return _data.c_str(); }
|
| 100 |
inline operator wchar_t *() const { return (wchar_t *)_data.c_str(); }
|
104 |
inline operator wchar_t *() const { return (wchar_t *)_data.c_str(); }
|
| 101 |
inline operator const std::wstring &() const { return _data; }
|
105 |
inline operator const std::wstring &() const { return _data; }
|
| 102 |
inline operator const int () const { return static_cast<int>(this->toLong()); }
|
106 |
inline operator const int () const { return static_cast<int>(this->toLong()); }
|
| 103 |
inline operator const long () const { return this->toLong(); }
|
107 |
inline operator const long () const { return this->toLong(); }
|
| - |
|
108 |
inline operator const long long () const { return this->toLong64(); }
|
| 104 |
inline operator const double () const { return this->toDouble(); }
|
109 |
inline operator const double () const { return this->toDouble(); }
|
| 105 |
inline operator const float () const { return this->toFloat(); }
|
110 |
inline operator const float () const { return this->toFloat(); }
|
| 106 |
inline operator const bool () const { return (this->empty() ? false : ((this->toLong()) ? true : false)); }
|
111 |
inline operator const bool () const { return (this->empty() ? false : ((this->toLong()) ? true : false)); }
|
| 107 |
|
112 |
|
| 108 |
// assignment operators
|
113 |
// assignment operators
|