460_uppsrc.diff
uppsrc/Core/String.h 2013-05-24 07:48:55.000000000 +0400 | ||
---|---|---|
337 | 337 |
String& operator=(StringBuffer& b) { *this = String(b); return *this; } |
338 | 338 |
String& operator<<=(const String& s) { if(this != &s) { String0::Free(); String0::Set(s, s.GetCount()); } return *this; } |
339 | 339 | |
340 |
String& operator<<(const char *x) { Cat(x, strlen__(x)); return *this; } |
|
341 |
String& operator<<(char *x) { Cat(x); return *this; } |
|
342 | ||
340 | 343 |
void Shrink() { *this = String(Begin(), GetLength()); } |
341 | 344 |
int GetCharCount() const; |
342 | 345 | |
... | ... | |
430 | 433 |
return FormatPtr(x); |
431 | 434 |
} |
432 | 435 | |
433 |
force_inline String& operator<<(String& s, const char *x) |
|
434 |
{ |
|
435 |
s.Cat(x, strlen__(x)); |
|
436 |
return s; |
|
437 |
} |
|
438 | ||
439 |
force_inline String& operator<<(String& s, char *x) |
|
440 |
{ |
|
441 |
s.Cat(x); |
|
442 |
return s; |
|
443 |
} |
|
444 | ||
445 | 436 |
inline String& operator<<(String& s, const String &x) |
446 | 437 |
{ |
447 | 438 |
s.Cat(x); |