![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | Error |
Public Types | |
enum | Section : uchar { Scheme = 0x01 , UserName = 0x02 , Password = 0x04 , UserInfo = UserName | Password , Host = 0x08 , Port = 0x10 , Authority = UserInfo | Host | Port , Path = 0x20 , Hierarchy = Authority | Path , Query = 0x40 , Fragment = 0x80 , FullUrl = 0xff } |
enum | Flags : uchar { IsLocalFile = 0x01 } |
enum | ErrorCode { InvalidSchemeError = Scheme << 8 , InvalidUserNameError = UserName << 8 , InvalidPasswordError = Password << 8 , InvalidRegNameError = Host << 8 , InvalidIPv4AddressError , InvalidIPv6AddressError , InvalidCharacterInIPv6Error , InvalidIPvFutureError , HostMissingEndBracket , InvalidPortError = Port << 8 , PortEmptyError , InvalidPathError = Path << 8 , InvalidQueryError = Query << 8 , InvalidFragmentError = Fragment << 8 , AuthorityPresentAndPathIsRelative = Authority << 8 | Path << 8 | 0x10000 , AuthorityAbsentAndPathIsDoubleSlash , RelativeUrlPathContainsColonBeforeSlash = Scheme << 8 | Authority << 8 | Path << 8 | 0x10000 , NoError = 0 } |
Public Attributes | |
QAtomicInt | ref |
int | port |
QString | scheme |
QString | userName |
QString | password |
QString | host |
QString | path |
QString | query |
QString | fragment |
std::unique_ptr< Error > | error |
uchar | sectionIsPresent |
uchar | flags |
enum QUrlPrivate::Flags : uchar |
enum QUrlPrivate::Section : uchar |
|
inline |
|
inlinedefault |
|
inline |
Definition at line 835 of file qurl.cpp.
References appendHost(), appendUserInfo(), hasPassword(), hasUserName(), QString::number(), QUrl::RemovePassword, QUrl::RemovePort, and QUrl::RemoveUserInfo.
Referenced by QUrl::authority(), and QUrl::toString().
|
inline |
Definition at line 932 of file qurl.cpp.
References appendToUser(), QUrl::EncodeDelimiters, fragment, fragmentInIsolation, fragmentInUrl, FullUrl, and nullptr.
Referenced by QUrl::fragment(), and QUrl::toString().
|
inline |
Definition at line 1154 of file qurl.cpp.
References AllowLeadingDot, QString::at(), QUrl::EncodeUnicode, host, QString::isEmpty(), qt_ACE_do(), qt_urlRecode(), ToAceOnly, and QChar::unicode().
Referenced by appendAuthority(), and QUrl::host().
|
inline |
Definition at line 901 of file qurl.cpp.
References appendToUser(), QUrl::EncodeDelimiters, password, passwordInIsolation, and passwordInUrl.
Referenced by QUrl::password().
|
inline |
Definition at line 908 of file qurl.cpp.
References appendToUser(), QStringView::chop(), QDirPrivate::DefaultNormalization, QUrl::EncodeDelimiters, QStringView::endsWith(), FullUrl, isLocalFile(), QStringView::left(), QUrl::NormalizePathSegments, path, pathInIsolation, pathInUrl, qt_normalizePathSegments(), QDirPrivate::RemotePath, QUrl::RemoveFilename, QStringView::size(), and QUrl::StripTrailingSlash.
Referenced by QUrl::adjusted(), QUrl::matches(), QUrl::path(), toLocalFile(), and QUrl::toString().
|
inline |
Definition at line 939 of file qurl.cpp.
References appendToUser(), QUrl::EncodeDelimiters, FullUrl, queryInIsolation, and queryInUrl.
Referenced by QUrl::query(), and QUrl::toString().
|
inline |
Definition at line 849 of file qurl.cpp.
References Authority, QUrl::EncodeDelimiters, FullUrl, hasPassword(), hasUserInfo(), password, passwordInAuthority, passwordInUrl, passwordInUserInfo, Q_LIKELY, qt_urlRecode(), QUrl::RemovePassword, UserInfo, userName, userNameInAuthority, userNameInUrl, and userNameInUserInfo.
Referenced by appendAuthority(), and QUrl::userInfo().
|
inline |
Definition at line 894 of file qurl.cpp.
References appendToUser(), QUrl::EncodeDelimiters, userName, userNameInIsolation, and userNameInUrl.
Referenced by QUrl::userName().
|
inline |
Definition at line 607 of file qurl.cpp.
References error.
Referenced by parse(), QUrl::setAuthority(), QUrl::setFragment(), QUrl::setHost(), QUrl::setPassword(), QUrl::setPath(), QUrl::setPort(), QUrl::setQuery(), QUrl::setQuery(), QUrl::setScheme(), QUrl::setUserInfo(), and QUrl::setUserName().
std::unique_ptr< QUrlPrivate::Error > QUrlPrivate::cloneError | ( | ) | const |
|
inline |
Definition at line 538 of file qurl.cpp.
References Authority, and sectionIsPresent.
Referenced by QUrl::resolved(), QUrl::toString(), and validityError().
|
inline |
Definition at line 546 of file qurl.cpp.
References Fragment, and sectionIsPresent.
Referenced by QUrl::fragment(), QUrl::hasFragment(), QUrl::operator<(), QUrl::resolved(), and QUrl::toString().
|
inline |
Definition at line 542 of file qurl.cpp.
References Host, and sectionIsPresent.
|
inline |
Definition at line 541 of file qurl.cpp.
References Password, and sectionIsPresent.
Referenced by appendAuthority(), and appendUserInfo().
|
inline |
Definition at line 545 of file qurl.cpp.
References Query, and sectionIsPresent.
Referenced by QUrl::hasQuery(), QUrl::operator<(), QUrl::query(), QUrl::resolved(), and QUrl::toString().
|
inline |
Definition at line 537 of file qurl.cpp.
References Scheme, and sectionIsPresent.
Referenced by QUrl::isRelative(), QUrl::resolved(), and QUrl::toString().
|
inline |
Definition at line 539 of file qurl.cpp.
References sectionIsPresent, and UserInfo.
Referenced by appendUserInfo().
|
inline |
Definition at line 540 of file qurl.cpp.
References sectionIsPresent, and UserName.
Referenced by appendAuthority().
|
inline |
Definition at line 505 of file qurl.cpp.
References sectionIsPresent.
Referenced by QUrl::isEmpty(), QUrl::matches(), QUrl::operator<(), and QUrl::operator==().
|
inline |
Definition at line 548 of file qurl.cpp.
References IsLocalFile.
Referenced by appendPath(), and QUrl::isLocalFile().
Definition at line 1497 of file qurl.cpp.
References host, QString::isEmpty(), and QStringView::left().
Referenced by QUrl::resolved().
|
inline |
Definition at line 1359 of file qurl.cpp.
References begin(), QString::clear(), clearError(), error, Fragment, hash, host, i, password, Query, scheme, sectionIsPresent, setAuthority(), setFragment(), setPath(), setQuery(), setScheme(), QUrl::TolerantMode, url, userName, and validateComponent().
Referenced by QUrl::operator=(), and QUrl::setUrl().
|
inline |
Definition at line 1012 of file qurl.cpp.
References QString::at(), QString::clear(), Host, host, i, QString::indexOf(), InvalidPortError, QtMiscUtils::isAsciiDigit(), QString::lastIndexOf(), password, sectionIsPresent, setError(), setHost(), setUserInfo(), QUrl::StrictMode, QChar::unicode(), UserInfo, userName, and validateComponent().
Referenced by parse(), and QUrl::setAuthority().
|
inline |
Definition at line 612 of file qurl.cpp.
References error.
Referenced by setAuthority(), setHost(), QUrl::setPort(), setScheme(), and validateComponent().
Definition at line 1112 of file qurl.cpp.
References Fragment, fragment, fragmentInIsolation, recodeFromUser(), and sectionIsPresent.
Referenced by parse(), and QUrl::setFragment().
|
inline |
Definition at line 1268 of file qurl.cpp.
References begin(), QString::clear(), ForbidLeadingDot, Host, host, HostMissingEndBracket, InvalidCharacterInIPv6Error, InvalidIPv6AddressError, InvalidIPvFutureError, InvalidRegNameError, NormalizeAce, QIPAddressUtils::parseIp4(), parseIp6(), parseIpFuture(), pos, qt_ACE_do(), qt_urlRecode(), sectionIsPresent, setError(), setHost(), QUrl::StrictMode, QUrl::TolerantMode, and QIPAddressUtils::toString().
Referenced by QUrl::fromLocalFile(), and QUrl::setHost().
Definition at line 1100 of file qurl.cpp.
References Password, password, passwordInIsolation, recodeFromUser(), and sectionIsPresent.
Referenced by QUrl::setPassword(), and setUserInfo().
Definition at line 1106 of file qurl.cpp.
References pathInIsolation, and recodeFromUser().
Referenced by QUrl::adjusted(), parse(), and QUrl::setPath().
Definition at line 1118 of file qurl.cpp.
References Query, queryInIsolation, recodeFromUser(), and sectionIsPresent.
Referenced by parse(), and QUrl::setQuery().
Definition at line 947 of file qurl.cpp.
References QString::clear(), QString::data(), fileScheme(), i, InvalidSchemeError, QtMiscUtils::isAsciiDigit(), QtMiscUtils::isAsciiLower(), QtMiscUtils::isAsciiUpper(), IsLocalFile, QString::left(), Scheme, scheme, sectionIsPresent, setError(), QChar::unicode(), and webDavScheme().
Referenced by parse(), and QUrl::setScheme().
Definition at line 1081 of file qurl.cpp.
References QString::clear(), QString::indexOf(), password, sectionIsPresent, setPassword(), and setUserName().
Referenced by setAuthority(), and QUrl::setUserInfo().
Definition at line 1094 of file qurl.cpp.
References recodeFromUser(), sectionIsPresent, UserName, userName, and userNameInIsolation.
Referenced by setUserInfo(), and QUrl::setUserName().
QString QUrlPrivate::toLocalFile | ( | QUrl::FormattingOptions | options | ) | const |
Definition at line 1462 of file qurl.cpp.
References appendPath(), QString::at(), host, QString::isEmpty(), QString::length(), Path, QString::remove(), scheme, QString::startsWith(), webDavScheme(), and webDavSslTag().
Referenced by QUrl::toLocalFile(), and QUrl::toString().
Definition at line 513 of file qurl.cpp.
References validateComponent().
bool QUrlPrivate::validateComponent | ( | QUrlPrivate::Section | section, |
const QString & | input, | ||
qsizetype | begin, | ||
qsizetype | end | ||
) |
Definition at line 1666 of file qurl.cpp.
References Authority, begin(), error, FullUrl, Hierarchy, i, InvalidPasswordError, InvalidUserNameError, isHex(), j, Q_ASSERT, setError(), and UserInfo.
Referenced by parse(), setAuthority(), QUrl::setFragment(), QUrl::setPassword(), QUrl::setPath(), QUrl::setQuery(), QUrl::setUserInfo(), QUrl::setUserName(), and validateComponent().
|
inline |
Definition at line 1601 of file qurl.cpp.
References AuthorityAbsentAndPathIsDoubleSlash, AuthorityPresentAndPathIsRelative, error, hasAuthority(), Host, i, NoError, path, position(), Q_ASSERT, RelativeUrlPathContainsColonBeforeSlash, Scheme, and sectionIsPresent.
Referenced by QUrl::errorString(), and QUrl::isValid().
std::unique_ptr<Error> QUrlPrivate::error |
Definition at line 564 of file qurl.cpp.
Referenced by clearError(), cloneError(), QUrl::fromLocalFile(), parse(), setError(), QUrl::setHost(), validateComponent(), and validityError().
uchar QUrlPrivate::flags |
Definition at line 571 of file qurl.cpp.
Referenced by QUrl::resolved(), and QUrl::setScheme().
QString QUrlPrivate::fragment |
Definition at line 562 of file qurl.cpp.
Referenced by appendFragment(), QUrl::errorString(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), QHash< Key, T >::qHash(), QUrl::resolved(), QUrl::setFragment(), and setFragment().
QString QUrlPrivate::host |
Definition at line 559 of file qurl.cpp.
Referenced by appendHost(), QUrl::errorString(), QUrl::matches(), mergePaths(), QUrl::operator<(), QUrl::operator==(), parse(), QHash< Key, T >::qHash(), QUrl::resolved(), setAuthority(), setHost(), and toLocalFile().
QString QUrlPrivate::password |
Definition at line 558 of file qurl.cpp.
Referenced by appendPassword(), appendUserInfo(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), parse(), QHash< Key, T >::qHash(), QUrl::resolved(), setAuthority(), QUrl::setPassword(), setPassword(), QUrl::setUserInfo(), and setUserInfo().
QString QUrlPrivate::path |
Definition at line 560 of file qurl.cpp.
Referenced by appendPath(), QUrl::errorString(), QUrl::operator<(), QUrl::operator==(), QHash< Key, T >::qHash(), QUrl::resolved(), QUrl::setPath(), QUrl::toString(), and validityError().
int QUrlPrivate::port |
Definition at line 554 of file qurl.cpp.
Referenced by QUrl::errorString(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), QUrl::port(), QHash< Key, T >::qHash(), QUrl::resolved(), and QUrl::setPort().
QString QUrlPrivate::query |
Definition at line 561 of file qurl.cpp.
Referenced by QUrl::errorString(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), QHash< Key, T >::qHash(), QUrl::resolved(), QUrl::setQuery(), and QUrl::setQuery().
QAtomicInt QUrlPrivate::ref |
Definition at line 553 of file qurl.cpp.
Referenced by QUrl::~QUrl(), QUrl::clear(), QUrl::isDetached(), and QUrl::operator=().
QString QUrlPrivate::scheme |
Definition at line 556 of file qurl.cpp.
Referenced by QUrl::errorString(), QUrl::isParentOf(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), parse(), QHash< Key, T >::qHash(), QUrl::resolved(), QUrl::scheme(), QUrl::setScheme(), setScheme(), toLocalFile(), and QUrl::toString().
uchar QUrlPrivate::sectionIsPresent |
Definition at line 570 of file qurl.cpp.
Referenced by QUrl::errorString(), hasAuthority(), hasFragment(), hasHost(), hasPassword(), hasQuery(), hasScheme(), hasUserInfo(), hasUserName(), isEmpty(), QUrl::matches(), QUrl::operator==(), parse(), QUrl::resolved(), setAuthority(), QUrl::setAuthority(), QUrl::setFragment(), setFragment(), QUrl::setHost(), setHost(), QUrl::setPassword(), setPassword(), QUrl::setPort(), QUrl::setQuery(), setQuery(), QUrl::setQuery(), QUrl::setScheme(), setScheme(), QUrl::setUserInfo(), setUserInfo(), QUrl::setUserName(), setUserName(), and validityError().
QString QUrlPrivate::userName |
Definition at line 557 of file qurl.cpp.
Referenced by appendUserInfo(), appendUserName(), QUrl::matches(), QUrl::operator<(), QUrl::operator==(), parse(), QHash< Key, T >::qHash(), QUrl::resolved(), setAuthority(), QUrl::setUserInfo(), QUrl::setUserName(), and setUserName().