--------------------------------------------------------------------------
| 622 | } |
| 623 | //-------------------------------------------------------------------------- |
| 624 | UString UString::substr(size_type index, size_type num /*= npos */) const |
| 625 | { |
| 626 | // this could avoid the extra copy if we used a private specialty constructor |
| 627 | dstring data = mData.substr(index, num); |
| 628 | UString tmp; |
| 629 | tmp.mData.swap(data); |
| 630 | return tmp; |
| 631 | } |
| 632 | //-------------------------------------------------------------------------- |
| 633 | void UString::push_back(unicode_char val) |
| 634 | { |
no test coverage detected