pub struct UrlFormattingOption(/* private fields */);
Expand description
The formatting options define how the URL is formatted when written out as text.
C++ enum: QUrl::UrlFormattingOption
.
The formatting options define how the URL is formatted when written out as text.
Note that the case folding rules in Nameprep, which QUrl conforms to, require host names to always be converted to lower case, regardless of the Qt::FormattingOptions used.
The options from QUrl::ComponentFormattingOptions are also possible.
The FormattingOptions type is a typedef for QFlags<UrlFormattingOption>. It stores an OR combination of UrlFormattingOption values.
See also QUrl::ComponentFormattingOptions.
Implementations§
Source§impl UrlFormattingOption
impl UrlFormattingOption
Sourcepub const None: UrlFormattingOption
pub const None: UrlFormattingOption
The format of the URL is unchanged. (C++ enum variant: None = 0
)
Sourcepub const RemoveScheme: UrlFormattingOption
pub const RemoveScheme: UrlFormattingOption
The scheme is removed from the URL. (C++ enum variant: RemoveScheme = 1
)
Sourcepub const RemovePassword: UrlFormattingOption
pub const RemovePassword: UrlFormattingOption
Any password in the URL is removed. (C++ enum variant: RemovePassword = 2
)
Sourcepub const RemoveUserInfo: UrlFormattingOption
pub const RemoveUserInfo: UrlFormattingOption
Any user information in the URL is removed. (C++ enum variant: RemoveUserInfo = 6
)
Sourcepub const RemovePort: UrlFormattingOption
pub const RemovePort: UrlFormattingOption
Any specified port is removed from the URL. (C++ enum variant: RemovePort = 8
)
Sourcepub const RemoveAuthority: UrlFormattingOption
pub const RemoveAuthority: UrlFormattingOption
(C++ enum variant: RemoveAuthority = 30
)
Sourcepub const RemovePath: UrlFormattingOption
pub const RemovePath: UrlFormattingOption
The URL’s path is removed, leaving only the scheme, host address, and port (if present). (C++ enum variant: RemovePath = 32
)
Sourcepub const RemoveQuery: UrlFormattingOption
pub const RemoveQuery: UrlFormattingOption
The query part of the URL (following a ‘?’ character) is removed. (C++ enum variant: RemoveQuery = 64
)
Sourcepub const RemoveFragment: UrlFormattingOption
pub const RemoveFragment: UrlFormattingOption
(C++ enum variant: RemoveFragment = 128
)
Sourcepub const PreferLocalFile: UrlFormattingOption
pub const PreferLocalFile: UrlFormattingOption
If the URL is a local file according to isLocalFile() and contains no query or fragment, a local file path is returned. (C++ enum variant: PreferLocalFile = 512
)
Sourcepub const StripTrailingSlash: UrlFormattingOption
pub const StripTrailingSlash: UrlFormattingOption
The trailing slash is removed from the path, if one is present. (C++ enum variant: StripTrailingSlash = 1024
)
Sourcepub const RemoveFilename: UrlFormattingOption
pub const RemoveFilename: UrlFormattingOption
The filename (i.e. everything after the last ‘/’ in the path) is removed. The trailing ‘/’ is kept, unless StripTrailingSlash is set. Only valid if RemovePath is not set. (C++ enum variant: RemoveFilename = 2048
)
Sourcepub const NormalizePathSegments: UrlFormattingOption
pub const NormalizePathSegments: UrlFormattingOption
Modifies the path to remove redundant directory separators, and to resolve “.“s and “..“s (as far as possible). (C++ enum variant: NormalizePathSegments = 4096
)
Trait Implementations§
Source§impl BitAnd<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
impl BitAnd<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
Source§fn bitand(
self,
f: UrlFormattingOption,
) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
fn bitand( self, f: UrlFormattingOption, ) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
Calls C++ function: QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption>::operator&(QUrl::UrlFormattingOption f) const
.
Source§type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
&
operator.Source§impl BitOr<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
impl BitOr<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
Source§fn bitor(
self,
f: UrlFormattingOption,
) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
fn bitor( self, f: UrlFormattingOption, ) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
Calls C++ function: QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption>::operator|(QUrl::UrlFormattingOption f) const
.
Source§type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
|
operator.Source§impl BitXor<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
impl BitXor<UrlFormattingOption> for &QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption
Source§fn bitxor(
self,
f: UrlFormattingOption,
) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
fn bitxor( self, f: UrlFormattingOption, ) -> CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
Calls C++ function: QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption> QUrlTwoFlags<QUrl::UrlFormattingOption, QUrl::ComponentFormattingOption>::operator^(QUrl::UrlFormattingOption f) const
.
Source§type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
type Output = CppBox<QUrlTwoFlagsOfUrlFormattingOptionComponentFormattingOption>
^
operator.Source§impl Clone for UrlFormattingOption
impl Clone for UrlFormattingOption
Source§fn clone(&self) -> UrlFormattingOption
fn clone(&self) -> UrlFormattingOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more