MCPcopy Create free account
hub / github.com/apache/arrow / TextRangeToView

Function TextRangeToView

cpp/src/arrow/util/uri.cc:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33
34std::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
42std::string TextRangeToString(const UriTextRangeStructA& range) {
43 return std::string(TextRangeToView(range));

Callers 5

TextRangeToStringFunction · 0.85
hostMethod · 0.85
usernameMethod · 0.85
passwordMethod · 0.85
ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected