|
| 1 | +--- a/engine/String.cpp |
| 2 | ++++ b/engine/String.cpp |
| 3 | +@@ -1180,6 +1180,20 @@ String& String::operator+=(double value) |
| 4 | + return operator+=(buf); |
| 5 | + } |
| 6 | + |
| 7 | ++String& String::operator+=(long value) |
| 8 | ++{ |
| 9 | ++ char buf[24]; |
| 10 | ++ ::sprintf(buf,"%ld",value); |
| 11 | ++ return operator+=(buf); |
| 12 | ++} |
| 13 | ++ |
| 14 | ++String& String::operator+=(unsigned long value) |
| 15 | ++{ |
| 16 | ++ char buf[24]; |
| 17 | ++ ::sprintf(buf,"%lu",value); |
| 18 | ++ return operator+=(buf); |
| 19 | ++} |
| 20 | ++ |
| 21 | + String& String::operator>>(const char* skip) |
| 22 | + { |
| 23 | + if (m_string && skip && *skip) { |
| 24 | +--- a/yateclass.h |
| 25 | ++++ b/yateclass.h |
| 26 | +@@ -3740,6 +3740,9 @@ public: |
| 27 | + */ |
| 28 | + String& operator+=(double value); |
| 29 | + |
| 30 | ++ String& operator+=(long value); |
| 31 | ++ String& operator+=(unsigned long value); |
| 32 | ++ |
| 33 | + /** |
| 34 | + * Equality operator. |
| 35 | + */ |
| 36 | +@@ -3820,6 +3823,11 @@ public: |
| 37 | + inline String& operator<<(double value) |
| 38 | + { return operator+=(value); } |
| 39 | + |
| 40 | ++ inline String& operator<<(long value) |
| 41 | ++ { return operator+=(value); } |
| 42 | ++ inline String& operator<<(unsigned long value) |
| 43 | ++ { return operator+=(value); } |
| 44 | ++ |
| 45 | + /** |
| 46 | + * Stream style substring skipping operator. |
| 47 | + * It eats all characters up to and including the skip string |
0 commit comments