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

Method host

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

Source from the content-addressed store, hash-verified

155bool Uri::is_file_scheme() const { return impl_->is_file_uri_; }
156
157std::string Uri::host() const {
158 // XXX for now we're assuming that %-encoding is expected, but this could be
159 // scheme-dependent (for example, http(s) may expect IDNA instead?)
160 return UriUnescape(TextRangeToView(impl_->uri_.hostText));
161}
162
163bool Uri::has_host() const { return IsTextRangeSet(impl_->uri_.hostText); }
164

Callers 14

InitMethod · 0.80
InitMethod · 0.80
FromUriMethod · 0.80
FromUriMethod · 0.80
FromUriAndOptionsMethod · 0.80
InitMethod · 0.80
FromUriMethod · 0.80
TESTFunction · 0.80
TestFileSystemFromUriMethod · 0.80
PathFromUriHelperFunction · 0.80
FromUriMethod · 0.80

Calls 2

UriUnescapeFunction · 0.85
TextRangeToViewFunction · 0.85

Tested by 3

TESTFunction · 0.64
TestFileSystemFromUriMethod · 0.64
TESTFunction · 0.64