Lines Matching defs:String
72 // TEST_TEXT << "Checking string : "
78 #include <string.h>
107 // String class used to accumulate error messages.
108 // Very similar to std::string but also supports streaming into it
111 // String str;
119 class String {
121 String() : str_(NULL), size_(0), capacity_(0) {}
122 String(const char* str, size_t len);
124 explicit String(const char* str) {
125 String(str, ::strlen(str));
128 String(const String& other) {
129 String(other.str_, other.size_);
132 String& operator=(const String& other) {
141 ~String() { Clear(); }
148 String& operator+=(const String& other);
149 String& operator+=(const char* str);
150 String& operator+=(char ch);
152 String operator+(const String& other) const {
153 String result(*this);
158 String operator+(const char* str) const {
159 String result(*this);
165 String& operator<<(const String& other);
166 String& operator<<(const char* str);
169 String& operator<<(ParamType v)
202 // as a temporary string. Use like printf(), but returns a new String
209 internal::String Format(const char* format, ...);
227 internal::String& GetText();
231 internal::String text_;
304 minitest::internal::String minitest_str; \