@@ -153,32 +153,32 @@ namespace krt
153
153
const char & back () const { return impl::back_const (this ); }
154
154
155
155
void erase_at (size_t idx, size_t num) { impl::erase_at (this , idx, num); }
156
- bool operator == (const string& other) const { return impl::op_cmpeq (this , other); }
157
- bool operator != (const string& other) const { return impl::op_cmpneq (this , other); }
158
- bool operator < (const string& other) const { return impl::op_cmplt (this , other); }
159
- bool operator > (const string& other) const { return impl::op_cmpgt (this , other); }
160
- bool operator >= (const string& other) const { return impl::op_cmpgeq (this , other); }
161
- bool operator <= (const string& other) const { return impl::op_cmpleq (this , other); }
162
-
163
- bool operator == (const char * other) const { return impl::op_cmpeq (this , other, strlen (other)); }
164
- bool operator != (const char * other) const { return impl::op_cmpneq (this , other, strlen (other)); }
165
- bool operator < (const char * other) const { return impl::op_cmplt (this , other, strlen (other)); }
166
- bool operator > (const char * other) const { return impl::op_cmpgt (this , other, strlen (other)); }
167
- bool operator >= (const char * other) const { return impl::op_cmpgeq (this , other, strlen (other)); }
168
- bool operator <= (const char * other) const { return impl::op_cmpleq (this , other, strlen (other)); }
169
-
170
- char & operator [] (size_t idx) { return impl::op_subscript (this , idx); }
171
- const char & operator [] (size_t idx) const { return impl::op_subscript_const (this , idx); }
172
-
173
- string& operator += (const string& other) { this ->append (other); return *this ; }
174
- string& operator += (string&& other) { this ->append (move (other)); return *this ; }
175
- string& operator += (const char * other) { this ->append (other); return *this ; }
176
-
177
- string operator + (const string& other) const { auto copy = *this ; copy.append (other); return copy; }
178
- string operator + (const char * other) const { auto copy = *this ; copy.append (other); return copy; }
179
-
180
- string& operator += (char other) { this ->append (string (&other, 1 )); return *this ; }
181
- string operator + (char other) const { auto copy = *this ; copy.append (string (&other, 1 )); return copy; }
156
+ bool operator == (const string& other) const { return impl::op_cmpeq (this , other); }
157
+ bool operator != (const string& other) const { return impl::op_cmpneq (this , other); }
158
+ bool operator < (const string& other) const { return impl::op_cmplt (this , other); }
159
+ bool operator > (const string& other) const { return impl::op_cmpgt (this , other); }
160
+ bool operator >= (const string& other) const { return impl::op_cmpgeq (this , other); }
161
+ bool operator <= (const string& other) const { return impl::op_cmpleq (this , other); }
162
+
163
+ bool operator == (const char * other) const { return impl::op_cmpeq (this , other, strlen (other)); }
164
+ bool operator != (const char * other) const { return impl::op_cmpneq (this , other, strlen (other)); }
165
+ bool operator < (const char * other) const { return impl::op_cmplt (this , other, strlen (other)); }
166
+ bool operator > (const char * other) const { return impl::op_cmpgt (this , other, strlen (other)); }
167
+ bool operator >= (const char * other) const { return impl::op_cmpgeq (this , other, strlen (other)); }
168
+ bool operator <= (const char * other) const { return impl::op_cmpleq (this , other, strlen (other)); }
169
+
170
+ char & operator [] (size_t idx) { return impl::op_subscript (this , idx); }
171
+ const char & operator [] (size_t idx) const { return impl::op_subscript_const (this , idx); }
172
+
173
+ string& operator += (const string& other) { this ->append (other); return *this ; }
174
+ string& operator += (string&& other) { this ->append (move (other)); return *this ; }
175
+ string& operator += (const char * other) { this ->append (other); return *this ; }
176
+
177
+ string operator + (const string& other) const { auto copy = *this ; copy.append (other); return copy; }
178
+ string operator + (const char * other) const { auto copy = *this ; copy.append (other); return copy; }
179
+
180
+ string& operator += (char other) { this ->append (string (&other, 1 )); return *this ; }
181
+ string operator + (char other) const { auto copy = *this ; copy.append (string (&other, 1 )); return copy; }
182
182
183
183
184
184
iterator begin () { return iterator (this ->ptr ); }
0 commit comments