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

Method username

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

Source from the content-addressed store, hash-verified

167int32_t Uri::port() const { return impl_->port_; }
168
169std::string Uri::username() const {
170 auto userpass = TextRangeToView(impl_->uri_.userInfo);
171 auto sep_pos = userpass.find_first_of(':');
172 if (sep_pos != std::string_view::npos) {
173 userpass = userpass.substr(0, sep_pos);
174 }
175 return UriUnescape(userpass);
176}
177
178std::string Uri::password() const {
179 auto userpass = TextRangeToView(impl_->uri_.userInfo);

Callers 7

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