| 13279 | } |
| 13280 | |
| 13281 | auto StringRef::c_str() const -> char const* { |
| 13282 | if( !isSubstring() ) |
| 13283 | return m_start; |
| 13284 | |
| 13285 | const_cast<StringRef *>( this )->takeOwnership(); |
| 13286 | return m_data; |
| 13287 | } |
| 13288 | auto StringRef::currentData() const noexcept -> char const* { |
| 13289 | return m_start; |
| 13290 | } |
no test coverage detected