Lines Matching defs:String
22 #include "String.h"
31 const unsigned int String::msBufferSize = 4096;
33 String String::format(const String& format_, ...)
42 return (String)(buffer);
45 String String::format(const String& format_, va_list args_)
51 return (String)(buffer);
54 String::String()
57 String::String(const string& str_)
61 String::String(const char* str_, size_t n_)
65 String::String(const char* str_)
69 String::String(size_t n_, char c_)
73 String::String(int value_)
77 String::String(unsigned int value_)
81 String::String(long value_)
85 String::String(unsigned long value_)
89 String::String(float value_)
93 String::String(double value_)
97 String::String(bool value_)
101 String::~String()
104 String& String::trim()
113 String& String::substitute(const String& str1_, const String& str2_)
129 vector<String> String::split(const char* delimiters_) const
131 vector<String> result;
163 vector<String> String::split(const String* delimiters_, unsigned int num_delimiters_) const
165 vector<String> result;
179 if(nextPos == String::npos)
203 if((tempPos != String::npos) && (tempPos < nextPos))
211 if((nextPos == String::npos) || (nextPos == size()))
227 if((tempPos != String::npos) && (tempPos < nextPos))
238 vector<String> String::splitByString(const String& delimiter_) const
243 bool String::contain(const String& str_) const
245 return (find(str_) != String::npos);
248 const char* String::toCString() const
253 int String::toInt() const
258 unsigned int String::toUInt() const
263 long String::toLong() const
268 unsigned long String::toULong() const
273 float String::toFloat() const
278 double String::toDouble() const
283 bool String::toBool() const
288 String::operator const char*() const
293 String::operator int() const
298 String::operator unsigned int() const
303 String::operator long() const
308 String::operator unsigned long() const
313 String::operator float() const
318 String::operator double() const
323 String::operator bool() const
328 String& String::operator=(char c_)
334 std::istream& safeGetline(std::istream& is_, String& str_)
363 str_ += String(1, (char)c);