|
SVL_DLLPUBLIC OUString | URIHelper::SmartRel2Abs (INetURLObject const &rTheBaseURIRef, OUString const &rTheRelURIRef, Link< OUString *, bool > const &rMaybeFileHdl=Link< OUString *, bool >(), bool bCheckFileExists=true, bool bIgnoreFragment=false, INetURLObject::EncodeMechanism eEncodeMechanism=INetURLObject::EncodeMechanism::WasEncoded, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect) |
| @ATT Calling this function with defaulted arguments rMaybeFileHdl = Link() and bCheckFileExists = true often leads to results that are not intended: Whenever the given rTheBaseURIRef is a file URL, the given rTheRelURIRef is relative, and rTheRelURIRef could also be smart-parsed as a non-file URL (e.g., the relative URL "foo/bar" can be smart-parsed as "http://foo/bar"), then SmartRel2Abs called with rMaybeFileHdl = Link() and bCheckFileExists = true returns the non-file URL interpretation. More...
|
|
SVL_DLLPUBLIC void | URIHelper::SetMaybeFileHdl (Link< OUString *, bool > const &rTheMaybeFileHdl) |
|
SVL_DLLPUBLIC Link< OUString *, bool > const & | URIHelper::GetMaybeFileHdl () |
|
SVL_DLLPUBLIC css::uno::Reference< css::uri::XUriReference > | URIHelper::normalizedMakeRelative (css::uno::Reference< css::uno::XComponentContext > const &context, OUString const &baseUriReference, OUString const &uriReference) |
| Converts a URI reference to a relative one, ignoring certain differences (for example, treating file URLs for case-ignoring file systems case-insensitively). More...
|
|
SVL_DLLPUBLIC OUString | URIHelper::simpleNormalizedMakeRelative (OUString const &baseUriReference, OUString const &uriReference) |
| A variant of normalizedMakeRelative with a simplified interface. More...
|
|
SVL_DLLPUBLIC OUString | URIHelper::FindFirstURLInText (OUString const &rText, sal_Int32 &rBegin, sal_Int32 &rEnd, CharClass const &rCharClass, INetURLObject::EncodeMechanism eMechanism=INetURLObject::EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
|
SVL_DLLPUBLIC OUString | URIHelper::FindFirstDOIInText (OUString const &rText, sal_Int32 &rBegin, sal_Int32 &rEnd, CharClass const &rCharClass) |
|
SVL_DLLPUBLIC OUString | URIHelper::removePassword (OUString const &rURI, INetURLObject::EncodeMechanism eEncodeMechanism, INetURLObject::DecodeMechanism eDecodeMechanism=INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
| Remove any password component from both absolute and relative URLs. More...
|
|
SVL_DLLPUBLIC OUString | URIHelper::resolveIdnaHost (OUString const &url) |
| Resolve a URL's host component domain name in IDNA syntax to plain DNS syntax. More...
|
|