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

Method password

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

Source from the content-addressed store, hash-verified

176}
177
178std::string Uri::password() const {
179 auto userpass = TextRangeToView(impl_->uri_.userInfo);
180 auto sep_pos = userpass.find_first_of(':');
181 if (sep_pos == std::string_view::npos) {
182 return "";
183 }
184 return UriUnescape(userpass.substr(sep_pos + 1));
185}
186
187std::string Uri::path() const {
188 const auto& segments = impl_->path_segments_;

Callers 6

FromProtoFunction · 0.80
FromUriMethod · 0.80
FromUriMethod · 0.80
FromUriAndOptionsMethod · 0.80
FromUriMethod · 0.80
TESTFunction · 0.80

Calls 3

TextRangeToViewFunction · 0.85
UriUnescapeFunction · 0.85
substrMethod · 0.80

Tested by 1

TESTFunction · 0.64