80 string_list split (char del) const; |
80 string_list split (char del) const; |
81 void sprintf (const char* fmtstr, ...); |
81 void sprintf (const char* fmtstr, ...); |
82 bool starts_with (const string& other); |
82 bool starts_with (const string& other); |
83 string strip (list< char > unwanted); |
83 string strip (list< char > unwanted); |
84 string substring (long a, long b = -1) const; |
84 string substring (long a, long b = -1) const; |
85 double to_double (bool* ok = null) const; |
85 double to_double (bool* ok = nullptr) const; |
86 float to_float (bool* ok = null) const; |
86 float to_float (bool* ok = nullptr) const; |
87 long to_long (bool* ok = null, int base = 10) const; |
87 long to_long (bool* ok = nullptr, int base = 10) const; |
88 void trim (length_type n); |
88 void trim (length_type n); |
89 string to_uppercase() const; |
89 string to_uppercase() const; |
90 |
90 |
91 string operator+ (const string& data) const; |
91 string operator+ (const string& data) const; |
92 string operator+ (const char* data) const; |
92 string operator+ (const char* data) const; |
169 } |
169 } |
170 |
170 |
171 inline void insert (length_type pos, char c) |
171 inline void insert (length_type pos, char c) |
172 { |
172 { |
173 m_string.insert (m_string.begin() + pos, c); |
173 m_string.insert (m_string.begin() + pos, c); |
174 } |
|
175 |
|
176 inline length_type len() const |
|
177 { |
|
178 return length(); |
|
179 } |
174 } |
180 |
175 |
181 inline length_type length() const |
176 inline length_type length() const |
182 { |
177 { |
183 return m_string.length(); |
178 return m_string.length(); |