14#include <zypp-core/base/String.h>
60 str <<
"[<no-url>]" << endl;
62 <<
"password: " << (
_password.empty() ?
"<empty>" :
"<non-empty>");
81 if ( v.first ==
"username" || v.first ==
"password" )
83 str << v.first <<
" = " << v.second << endl;
std::string asString() const
Returns a default string representation of the Url object.
std::string getUsername(EEncoding eflag=zypp::url::E_DECODED) const
Returns the username from the URL authority.
bool isValid() const
Verifies the Url.
std::string getPassword(EEncoding eflag=zypp::url::E_DECODED) const
Returns the password from the URL authority.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
Url::asString() view options.
static const ViewOption WITH_PASSWORD
Option to include password in the URL string.
static const ViewOption WITH_USERNAME
Option to include username in the URL string.