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

Function TextRangeToView

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

Source from the content-addressed store, hash-verified

33namespace {
34
35std::string_view TextRangeToView(const UriTextRangeStructA& range) {
36 if (range.first == nullptr) {
37 return "";
38 } else {
39 return {range.first, static_cast<size_t>(range.afterLast - range.first)};
40 }
41}
42
43std::string TextRangeToString(const UriTextRangeStructA& range) {
44 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