| 653 | return data.size; |
| 654 | } |
| 655 | DOCTEST_GCC_SUPPRESS_WARNING_POP |
| 656 | |
| 657 | String::size_type String::capacity() const { |
| 658 | if(isOnStack()) |
| 659 | return len; |
| 660 | return data.capacity; |
| 661 | } |
| 662 | |
| 663 | String String::substr(size_type pos, size_type cnt) && { |
| 664 | cnt = std::min(cnt, size() - 1 - pos); |
no test coverage detected