| 696 | // 24.4.2.6 String operations: |
| 697 | |
| 698 | size_type copy( CharT * dest, size_type n, size_type pos = 0 ) const |
| 699 | { |
| 700 | #if nssv_CONFIG_NO_EXCEPTIONS |
| 701 | assert( pos <= size() ); |
| 702 | #else |
| 703 | if ( pos > size() ) |
| 704 | { |
| 705 | throw std::out_of_range("nonstd::string_view::copy()"); |
| 706 | } |
| 707 | #endif |
| 708 | const size_type rlen = (std::min)( n, size() - pos ); |
| 709 | |
| 710 | (void) Traits::copy( dest, data() + pos, rlen ); |
| 711 | |
| 712 | return rlen; |
| 713 | } |
| 714 | |
| 715 | nssv_constexpr14 basic_string_view substr( size_type pos = 0, size_type n = npos ) const |
| 716 | { |
nothing calls this directly
no outgoing calls
no test coverage detected