| 32 | namespace { |
| 33 | |
| 34 | std::string_view TextRangeToView(const UriTextRangeStructA& range) { |
| 35 | if (range.first == nullptr) { |
| 36 | return ""; |
| 37 | } else { |
| 38 | return {range.first, static_cast<size_t>(range.afterLast - range.first)}; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | std::string TextRangeToString(const UriTextRangeStructA& range) { |
| 43 | return std::string(TextRangeToView(range)); |
no outgoing calls
no test coverage detected