LibreOffice Module tools (master) 1
|
#include <urlobj.hxx>
Classes | |
struct | PrefixInfo |
struct | SchemeInfo |
class | SubString |
Public Types | |
enum class | EncodeMechanism { All , WasEncoded , NotCanonical } |
The way input strings that represent (parts of) URIs are interpreted in set-methods. More... | |
enum class | DecodeMechanism { NONE , ToIUri , WithCharset , Unambiguous } |
The way strings that represent (parts of) URIs are returned from get- methods. More... | |
enum | { LAST_SEGMENT = -1 } |
A constant to address the last segment in various methods dealing with hierarchical paths. More... | |
enum | Part { PART_USER_PASSWORD = 0x00001 , PART_FPATH = 0x00008 , PART_AUTHORITY = 0x00010 , PART_REL_SEGMENT_EXTRA = 0x00020 , PART_URIC = 0x00040 , PART_HTTP_PATH = 0x00080 , PART_MESSAGE_ID_PATH = 0x00100 , PART_MAILTO = 0x00200 , PART_PATH_BEFORE_QUERY = 0x00400 , PART_PCHAR = 0x00800 , PART_VISIBLE = 0x01000 , PART_VISIBLE_NONSPECIAL = 0x02000 , PART_UNO_PARAM_VALUE = 0x04000 , PART_UNAMBIGUOUS = 0x08000 , PART_URIC_NO_SLASH = 0x10000 , PART_HTTP_QUERY = 0x20000 } |
enum class | EscapeType { NONE , Octet , Utf32 } |
Public Member Functions | |
INetURLObject () | |
bool | HasError () const |
OUString | GetMainURL (DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
OUString | GetURLNoPass (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
OUString | GetURLNoMark (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
OUString | getAbbreviated (css::uno::Reference< css::util::XStringWidth > const &rStringWidth, sal_Int32 nWidth, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
bool | operator== (INetURLObject const &rObject) const |
bool | operator!= (INetURLObject const &rObject) const |
INetURLObject (std::u16string_view rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) | |
bool | SetURL (std::u16string_view rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
bool | ConcatData (INetProtocol eTheScheme, std::u16string_view rTheUser, std::u16string_view rThePassword, std::u16string_view rTheHost, sal_uInt32 nThePort, std::u16string_view rThePath) |
INetURLObject (std::u16string_view rTheAbsURIRef, INetProtocol eTheSmartScheme, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect) | |
void | SetSmartProtocol (INetProtocol eTheSmartScheme) |
bool | SetSmartURL (std::u16string_view rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect) |
INetURLObject | smartRel2Abs (OUString const &rTheRelURIRef, bool &rWasAbsolute, bool bIgnoreFragment=false, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, bool bRelativeNonURIs=false, FSysStyle eStyle=FSysStyle::Detect) const |
bool | GetNewAbsURL (OUString const &rTheRelURIRef, INetURLObject *pTheAbsURIRef) const |
OUString | getExternalURL () const |
INetProtocol | GetProtocol () const |
bool | isSchemeEqualTo (INetProtocol scheme) const |
bool | isSchemeEqualTo (std::u16string_view scheme) const |
bool | isAnyKnownWebDAVScheme () const |
Check if the scheme is one of the WebDAV scheme we know about. More... | |
bool | HasUserData () const |
OUString | GetUser (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
OUString | GetPass (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
bool | SetUser (std::u16string_view rTheUser) |
bool | SetPass (std::u16string_view rThePassword) |
bool | SetUserAndPass (std::u16string_view rTheUser, std::u16string_view rThePassword) |
bool | HasPort () const |
OUString | GetHost (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
OUString | GetHostPort (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
sal_uInt32 | GetPort () const |
bool | SetHost (std::u16string_view rTheHost) |
bool | SetPort (sal_uInt32 nThePort) |
bool | HasURLPath () const |
OUString | GetURLPath (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
bool | SetURLPath (std::u16string_view rThePath, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
sal_Int32 | getSegmentCount (bool bIgnoreFinalSlash=true) const |
The number of segments in the hierarchical path. More... | |
bool | removeSegment (sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true) |
Remove a segment from the hierarchical path. More... | |
bool | insertName (std::u16string_view rTheName, bool bAppendFinalSlash=false, sal_Int32 nIndex=LAST_SEGMENT, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Insert a new segment into the hierarchical path. More... | |
OUString | getName (sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
Get the name of a segment of the hierarchical path. More... | |
bool | setName (std::u16string_view rTheName, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Set the name of the last segment (preserving any parameters and any query or fragment part). More... | |
OUString | getBase (sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
Get the base of the name of a segment. More... | |
bool | setBase (std::u16string_view rTheBase, sal_Int32 nIndex=LAST_SEGMENT, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Set the base of the name of a segment (preserving the extension). More... | |
bool | hasExtension () const |
Determine whether the name of the last segment has an extension. More... | |
OUString | getExtension (sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
Get the extension of the name of a segment. More... | |
bool | setExtension (std::u16string_view rTheExtension, sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Set the extension of the name of a segment (replacing an already existing extension). More... | |
bool | removeExtension (sal_Int32 nIndex=LAST_SEGMENT, bool bIgnoreFinalSlash=true) |
Remove the extension of the name of a segment. More... | |
bool | hasFinalSlash () const |
Determine whether the hierarchical path ends in a final slash. More... | |
bool | setFinalSlash () |
Make the hierarchical path end in a final slash (if it does not already do so). More... | |
bool | removeFinalSlash () |
Remove a final slash from the hierarchical path. More... | |
bool | HasParam () const |
OUString | GetParam (rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
bool | SetParam (std::u16string_view rTheQuery, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
bool | HasMark () const |
OUString | GetMark (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
bool | SetMark (std::u16string_view rTheFragment, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
OUString | getFSysPath (FSysStyle eStyle, sal_Unicode *pDelimiter=nullptr) const |
Return the file system path represented by a file URL (ignoring any fragment part). More... | |
std::unique_ptr< SvMemoryStream > | getData () const |
OUString | GetPartBeforeLastName () const |
OUString | GetLastName (DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const |
Get the last segment in the path. More... | |
OUString | GetFileExtension () const |
Get the 'extension' of the last segment in the path. More... | |
bool | Append (std::u16string_view rTheSegment, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
void | CutLastName () |
OUString | PathToFileName () const |
OUString | GetFull () const |
OUString | GetPath () const |
void | SetBase (std::u16string_view rTheBase) |
OUString | GetBase () const |
void | SetExtension (std::u16string_view rTheExtension) |
OUString | CutExtension () |
void | changeScheme (INetProtocol eTargetScheme) |
Static Public Member Functions | |
static OUString | GetAbsURL (std::u16string_view rTheBaseURIRef, OUString const &rTheRelURIRef, EncodeMechanism eEncodeMechanism=EncodeMechanism::WasEncoded, DecodeMechanism eDecodeMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
@descr If rTheRelURIRef cannot be converted to an absolute URL (because of syntactic reasons), either rTheRelURIRef or an empty string is returned: If all of the parameters eEncodeMechanism, eDecodeMechanism and eCharset have their respective default values, then rTheRelURIRef is returned unmodified; otherwise, an empty string is returned. More... | |
static OUString | GetRelURL (std::u16string_view rTheBaseURIRef, OUString const &rTheAbsURIRef, EncodeMechanism eEncodeMechanism=EncodeMechanism::WasEncoded, DecodeMechanism eDecodeMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect) |
static bool | translateToExternal (std::u16string_view rTheIntURIRef, OUString &rTheExtURIRef, DecodeMechanism eDecodeMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
static bool | translateToInternal (std::u16string_view rTheExtURIRef, OUString &rTheIntURIRef, DecodeMechanism eDecodeMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
static OUString | GetScheme (INetProtocol eTheScheme) |
Return the URL 'prefix' for a given scheme. More... | |
static const OUString & | GetSchemeName (INetProtocol eTheScheme) |
Return the human-readable name for a given scheme. More... | |
static INetProtocol | CompareProtocolScheme (std::u16string_view aTheAbsURIRef) |
static OUString | encode (std::u16string_view rText, Part ePart, EncodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Encode some text as part of a URI. More... | |
static OUString | decode (std::u16string_view rText, DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) |
Decode some text. More... | |
static void | appendUCS4Escape (OUStringBuffer &rTheText, sal_uInt32 nUCS4) |
static void | appendUCS4 (OUStringBuffer &rTheText, sal_uInt32 nUCS4, EscapeType eEscapeType, Part ePart, rtl_TextEncoding eCharset, bool bKeepVisibleEscapes) |
static sal_uInt32 | getUTF32 (sal_Unicode const *&rBegin, sal_Unicode const *pEnd, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, EscapeType &rEscapeType) |
static sal_uInt32 | scanDomain (sal_Unicode const *&rBegin, sal_Unicode const *pEnd, bool bEager=true) |
static bool | IsCaseSensitive () |
Private Member Functions | |
TOOLS_DLLPRIVATE void | setInvalid () |
bool | setAbsURIRef (std::u16string_view rTheAbsURIRef, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bSmart, FSysStyle eStyle) |
bool | convertRelToAbs (OUString const &rTheRelURIRef, INetURLObject &rTheAbsURIRef, bool &rWasAbsolute, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bIgnoreFragment, bool bSmart, bool bRelativeNonURIs, FSysStyle eStyle) const |
bool | convertAbsToRel (OUString const &rTheAbsURIRef, OUString &rTheRelURIRef, EncodeMechanism eEncodeMechanism, DecodeMechanism eDecodeMechanism, rtl_TextEncoding eCharset, FSysStyle eStyle) const |
TOOLS_DLLPRIVATE SchemeInfo const & | getSchemeInfo () const |
TOOLS_DLLPRIVATE sal_Int32 | getAuthorityBegin () const |
TOOLS_DLLPRIVATE SubString | getAuthority () const |
bool | setUser (std::u16string_view rTheUser, rtl_TextEncoding eCharset) |
bool | clearPassword () |
bool | setPassword (std::u16string_view rThePassword, rtl_TextEncoding eCharset) |
bool | setHost (std::u16string_view rTheHost, rtl_TextEncoding eCharset) |
bool | setPath (std::u16string_view rThePath, EncodeMechanism eMechanism, rtl_TextEncoding eCharset) |
TOOLS_DLLPRIVATE bool | checkHierarchical () const |
TOOLS_DLLPRIVATE SubString | getSegment (sal_Int32 nIndex, bool bIgnoreFinalSlash) const |
void | clearQuery () |
bool | setQuery (std::u16string_view rTheQuery, EncodeMechanism eMechanism, rtl_TextEncoding eCharset) |
bool | clearFragment () |
bool | setFragment (std::u16string_view rTheMark, EncodeMechanism eMechanism, rtl_TextEncoding eCharset) |
TOOLS_DLLPRIVATE bool | hasDosVolume (FSysStyle eStyle) const |
OUString | decode (SubString const &rSubString, DecodeMechanism eMechanism, rtl_TextEncoding eCharset) const |
Static Private Member Functions | |
static bool | convertIntToExt (std::u16string_view rTheIntURIRef, OUString &rTheExtURIRef, DecodeMechanism eDecodeMechanism, rtl_TextEncoding eCharset) |
static bool | convertExtToInt (std::u16string_view rTheExtURIRef, OUString &rTheIntURIRef, DecodeMechanism eDecodeMechanism, rtl_TextEncoding eCharset) |
static TOOLS_DLLPRIVATE SchemeInfo const & | getSchemeInfo (INetProtocol eTheScheme) |
static TOOLS_DLLPRIVATE PrefixInfo const * | getPrefix (sal_Unicode const *&rBegin, sal_Unicode const *pEnd) |
static TOOLS_DLLPRIVATE bool | parseHost (sal_Unicode const *&rBegin, sal_Unicode const *pEnd, OUStringBuffer *pCanonic) |
static TOOLS_DLLPRIVATE bool | parseHostOrNetBiosName (sal_Unicode const *pBegin, sal_Unicode const *pEnd, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bNetBiosName, OUStringBuffer *pCanonic) |
static TOOLS_DLLPRIVATE bool | parsePath (INetProtocol eScheme, sal_Unicode const **pBegin, sal_Unicode const *pEnd, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bSkippedInitialSlash, sal_uInt32 nSegmentDelimiter, sal_uInt32 nAltSegmentDelimiter, sal_uInt32 nQueryDelimiter, sal_uInt32 nFragmentDelimiter, OUStringBuffer &rSynPath) |
static TOOLS_DLLPRIVATE void | appendEscape (OUStringBuffer &rTheText, sal_uInt32 nOctet) |
static void | encodeText (OUStringBuffer &rOutputBuffer, sal_Unicode const *pBegin, sal_Unicode const *pEnd, Part ePart, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bKeepVisibleEscapes) |
static void | encodeText (OUStringBuffer &rOutputBuffer, std::u16string_view rTheText, Part ePart, EncodeMechanism eMechanism, rtl_TextEncoding eCharset, bool bKeepVisibleEscapes) |
static OUString | decode (sal_Unicode const *pBegin, sal_Unicode const *pEnd, DecodeMechanism, rtl_TextEncoding eCharset) |
static TOOLS_DLLPRIVATE bool | scanIPv6reference (sal_Unicode const *&rBegin, sal_Unicode const *pEnd) |
Private Attributes | |
OUStringBuffer | m_aAbsURIRef |
SubString | m_aScheme |
SubString | m_aUser |
SubString | m_aAuth |
SubString | m_aHost |
SubString | m_aPort |
SubString | m_aPath |
SubString | m_aQuery |
SubString | m_aFragment |
INetProtocol | m_eScheme |
INetProtocol | m_eSmartScheme |
Definition at line 179 of file urlobj.hxx.
anonymous enum |
A constant to address the last segment in various methods dealing with hierarchical paths.
@descr It is often more efficient to address the last segment using this constant, than to determine its ordinal value using getSegmentCount().
Enumerator | |
---|---|
LAST_SEGMENT |
Definition at line 475 of file urlobj.hxx.
|
strong |
The way strings that represent (parts of) URIs are returned from get- methods.
@descr Along with a DecodeMechanism parameter, the get-methods all take an rtl_TextEncoding parameter, which is ignored unless the DecodeMechanism is DecodeMechanism::WithCharset or DecodeMechanism::Unambiguous.
Definition at line 223 of file urlobj.hxx.
|
strong |
The way input strings that represent (parts of) URIs are interpreted in set-methods.
@descr UTF-32 characters in the range 0x80–0x10FFFF are replaced by sequences of escape sequences, representing the UTF-8 coded characters.
@descr Along with an EncodeMechanism parameter, the set-methods all take an rtl_TextEncoding parameter, which is ignored unless the EncodeMechanism is EncodeMechanism::WasEncoded.
Definition at line 194 of file urlobj.hxx.
|
strong |
Enumerator | |
---|---|
NONE | |
Octet | |
Utf32 |
Definition at line 802 of file urlobj.hxx.
enum INetURLObject::Part |
Definition at line 782 of file urlobj.hxx.
|
inline |
Definition at line 257 of file urlobj.hxx.
Referenced by GetAbsURL(), and GetRelURL().
|
inlineexplicit |
Definition at line 1148 of file urlobj.hxx.
References setAbsURIRef(), and size.
|
inline |
Definition at line 1165 of file urlobj.hxx.
References setAbsURIRef().
bool INetURLObject::Append | ( | std::u16string_view | rTheSegment, |
EncodeMechanism | eMechanism = EncodeMechanism::WasEncoded , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) |
Definition at line 3229 of file urlobj.cxx.
References insertName(), and LAST_SEGMENT.
|
inlinestaticprivate |
Definition at line 459 of file urlobj.cxx.
Referenced by appendUCS4(), appendUCS4Escape(), and decode().
|
static |
Definition at line 4462 of file urlobj.cxx.
References appendEscape(), appendUCS4Escape(), INetMIME::isVisible(), NONE, Octet, and Utf32.
Referenced by convertRelToAbs(), encodeText(), parseHostOrNetBiosName(), parsePath(), and setAbsURIRef().
|
static |
Definition at line 4417 of file urlobj.cxx.
References appendEscape(), and DBG_ASSERT.
Referenced by appendUCS4().
void INetURLObject::changeScheme | ( | INetProtocol | eTargetScheme | ) |
Definition at line 1501 of file urlobj.cxx.
References Generic, INetURLObject::SubString::getLength(), getSchemeInfo(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aScheme, m_aUser, m_eScheme, and INetURLObject::SchemeInfo::m_sScheme.
|
private |
Definition at line 3219 of file urlobj.cxx.
References getSchemeInfo(), INetURLObject::SchemeInfo::m_bHierarchical, m_eScheme, and VndSunStarExpand.
Referenced by GetPartBeforeLastName(), getSegment(), getSegmentCount(), hasFinalSlash(), insertName(), removeFinalSlash(), and setFinalSlash().
|
private |
Definition at line 3403 of file urlobj.cxx.
References INetURLObject::SubString::clear(), INetURLObject::SubString::getBegin(), HasError(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, and m_aFragment.
Referenced by convertRelToAbs(), CutLastName(), GetPartBeforeLastName(), GetURLNoMark(), and SetMark().
|
private |
Definition at line 2320 of file urlobj.cxx.
References INetURLObject::SubString::clear(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, and m_aQuery.
Referenced by GetURLNoPass(), SetPass(), and SetUserAndPass().
|
private |
Definition at line 3369 of file urlobj.cxx.
References INetURLObject::SubString::clear(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), HasError(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aFragment, and m_aQuery.
Referenced by CutLastName(), GetPartBeforeLastName(), and SetParam().
|
static |
Definition at line 3959 of file urlobj.cxx.
References getPrefix(), INetURLObject::PrefixInfo::m_eScheme, NotValid, and p.
bool INetURLObject::ConcatData | ( | INetProtocol | eTheScheme, |
std::u16string_view | rTheUser, | ||
std::u16string_view | rThePassword, | ||
std::u16string_view | rTheHost, | ||
sal_uInt32 | nThePort, | ||
std::u16string_view | rThePath | ||
) |
Definition at line 3766 of file urlobj.cxx.
References encodeText(), equalsIgnoreAsciiCase(), File, Generic, getSchemeInfo(), HasError(), Ldap, m_aAbsURIRef, m_aAuth, m_aHost, m_aPath, m_aPort, m_aUser, m_eScheme, p, parseHostOrNetBiosName(), parsePath(), PART_USER_PASSWORD, INetURLObject::SubString::set(), setInvalid(), and WasEncoded.
|
private |
Definition at line 1921 of file urlobj.cxx.
References INetURLObject::SubString::compare(), convertRelToAbs(), decode(), File, INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), GetMainURL(), getSchemeInfo(), hasDosVolume(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aScheme, m_aUser, m_eScheme, p, and PART_REL_SEGMENT_EXTRA.
Referenced by GetRelURL().
|
staticprivate |
Definition at line 2102 of file urlobj.cxx.
References decode(), encodeText(), INetURLObject::PrefixInfo::External, getPrefix(), INetURLObject::PrefixInfo::m_eKind, INetURLObject::PrefixInfo::m_pTranslatedPrefix, NotCanonical, p, PART_VISIBLE, and comphelper::string::replaceAt().
Referenced by translateToInternal().
|
staticprivate |
Definition at line 2079 of file urlobj.cxx.
References decode(), encodeText(), getPrefix(), INetURLObject::PrefixInfo::Internal, INetURLObject::PrefixInfo::m_eKind, INetURLObject::PrefixInfo::m_pTranslatedPrefix, NotCanonical, p, PART_VISIBLE, and comphelper::string::replaceAt().
Referenced by translateToExternal().
|
private |
Definition at line 1523 of file urlobj.cxx.
References All, appendUCS4(), clearFragment(), DBG_ASSERT, Dos, File, Generic, getAuthority(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), GetMainURL(), getPrefix(), getSchemeInfo(), getUTF32(), HasError(), i, INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPath, m_aQuery, INetURLObject::SchemeInfo::m_bQuery, m_eScheme, INetURLObject::PrefixInfo::m_eScheme, n, NONE, p, parseHostOrNetBiosName(), PART_VISIBLE, PART_VISIBLE_NONSPECIAL, SAL_WARN_IF, setAbsURIRef(), and Unix.
Referenced by convertAbsToRel(), GetAbsURL(), GetNewAbsURL(), and smartRel2Abs().
OUString INetURLObject::CutExtension | ( | ) |
Definition at line 4816 of file urlobj.cxx.
References getExtension(), LAST_SEGMENT, and removeExtension().
void INetURLObject::CutLastName | ( | ) |
Definition at line 4761 of file urlobj.cxx.
References clearFragment(), clearQuery(), LAST_SEGMENT, and removeSegment().
|
staticprivate |
Definition at line 3464 of file urlobj.cxx.
References appendEscape(), getUTF32(), NONE, Octet, PART_UNAMBIGUOUS, ToIUri, Unambiguous, Utf32, and WasEncoded.
|
inlinestatic |
Decode some text.
rText | Some (encoded) text. |
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 1302 of file urlobj.hxx.
References decode().
Referenced by convertAbsToRel(), convertExtToInt(), convertIntToExt(), decode(), getAbbreviated(), getBase(), getExtension(), getFSysPath(), GetHostPort(), getName(), and PathToFileName().
|
inlineprivate |
Definition at line 1137 of file urlobj.hxx.
References decode(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getEnd(), INetURLObject::SubString::isPresent(), and m_aAbsURIRef.
|
inlinestatic |
Encode some text as part of a URI.
rText | Some text (for its interpretation, see the general discussion for set-methods). |
ePart | The part says which characters are 'forbidden' and must be encoded (replaced by escape sequences). Characters outside the US- ASCII range are always 'forbidden.' |
eMechanism | See the general discussion for set-methods. |
eCharset | See the general discussion for set-methods. |
Definition at line 1292 of file urlobj.hxx.
References aBuf, and encodeText().
|
staticprivate |
Definition at line 3446 of file urlobj.cxx.
References appendUCS4(), and getUTF32().
Referenced by ConcatData(), convertExtToInt(), convertIntToExt(), encode(), encodeText(), insertName(), setBase(), setExtension(), setFragment(), setName(), setPassword(), setQuery(), and setUser().
|
inlinestaticprivate |
Definition at line 1124 of file urlobj.hxx.
References encodeText().
OUString INetURLObject::getAbbreviated | ( | css::uno::Reference< css::util::XStringWidth > const & | rStringWidth, |
sal_Int32 | nWidth, | ||
DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Definition at line 3536 of file urlobj.cxx.
References aBuffer, decode(), Generic, getAuthorityBegin(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSchemeInfo(), i, INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aFragment, m_aPath, m_aQuery, INetURLObject::SchemeInfo::m_bAuthority, INetURLObject::SchemeInfo::m_bHierarchical, m_eScheme, and p.
|
static |
@descr If rTheRelURIRef cannot be converted to an absolute URL (because of syntactic reasons), either rTheRelURIRef or an empty string is returned: If all of the parameters eEncodeMechanism, eDecodeMechanism and eCharset have their respective default values, then rTheRelURIRef is returned unmodified; otherwise, an empty string is returned.
Definition at line 3896 of file urlobj.cxx.
References convertRelToAbs(), Detect, GetMainURL(), INetURLObject(), ToIUri, and WasEncoded.
|
private |
Definition at line 2266 of file urlobj.cxx.
References getAuthorityBegin(), INetURLObject::SubString::getEnd(), INetURLObject::SubString::isPresent(), m_aAuth, m_aHost, m_aPort, and m_aUser.
Referenced by convertRelToAbs().
|
private |
Definition at line 2249 of file urlobj.cxx.
References DBG_ASSERT, INetURLObject::SubString::getBegin(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aHost, m_aPath, and m_aUser.
Referenced by getAbbreviated(), and getAuthority().
OUString INetURLObject::GetBase | ( | ) | const |
Definition at line 4806 of file urlobj.cxx.
References getBase(), LAST_SEGMENT, and WithCharset.
OUString INetURLObject::getBase | ( | sal_Int32 | nIndex = LAST_SEGMENT , |
bool | bIgnoreFinalSlash = true , |
||
DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Get the base of the name of a segment.
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 4122 of file urlobj.cxx.
References decode(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, nIndex, and p.
Referenced by GetBase().
std::unique_ptr< SvMemoryStream > INetURLObject::getData | ( | ) | const |
Definition at line 628 of file urlobj.cxx.
References Data, comphelper::Base64::decodeSomeChars(), GetProtocol(), GetURLPath(), INetMIME::scanContentType(), and WithCharset.
OUString INetURLObject::getExtension | ( | sal_Int32 | nIndex = LAST_SEGMENT , |
bool | bIgnoreFinalSlash = true , |
||
DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Get the extension of the name of a segment.
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 4179 of file urlobj.cxx.
References decode(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, nIndex, and p.
Referenced by CutExtension(), and GetFileExtension().
OUString INetURLObject::getExternalURL | ( | ) | const |
Definition at line 3920 of file urlobj.cxx.
References m_aAbsURIRef, and translateToExternal().
OUString INetURLObject::GetFileExtension | ( | ) | const |
Get the 'extension' of the last segment in the path.
Definition at line 4756 of file urlobj.cxx.
References getExtension(), and LAST_SEGMENT.
OUString INetURLObject::getFSysPath | ( | FSysStyle | eStyle, |
sal_Unicode * | pDelimiter = nullptr |
||
) | const |
Return the file system path represented by a file URL (ignoring any fragment part).
eStyle | The notation of the returned file system path. |
pDelimiter | Upon successful return, this parameter can return the character that is the 'main' delimiter within the returned file system path (e.g., "/" for Unix, "\" for DOS). This is especially useful for routines that later try to shorten the returned file system path at a 'good' position, e.g. to fit it into some limited display space. |
Definition at line 4315 of file urlobj.cxx.
References DBG_ASSERT, decode(), Dos, File, INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getUTF32(), hasDosVolume(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aHost, m_aPath, m_eScheme, NONE, p, Unix, Vos, WasEncoded, and WithCharset.
OUString INetURLObject::GetFull | ( | ) | const |
Definition at line 4786 of file urlobj.cxx.
References PathToFileName(), and removeFinalSlash().
|
inline |
Definition at line 437 of file urlobj.hxx.
Referenced by operator==().
OUString INetURLObject::GetHostPort | ( | DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Definition at line 3966 of file urlobj.cxx.
References decode(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aHost, and m_aPort.
OUString INetURLObject::GetLastName | ( | DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Get the last segment in the path.
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 4750 of file urlobj.cxx.
References getName(), and LAST_SEGMENT.
|
inline |
Definition at line 262 of file urlobj.hxx.
Referenced by convertAbsToRel(), convertRelToAbs(), GetAbsURL(), GetPartBeforeLastName(), GetURLNoMark(), and GetURLNoPass().
|
inline |
Definition at line 746 of file urlobj.hxx.
OUString INetURLObject::getName | ( | sal_Int32 | nIndex = LAST_SEGMENT , |
bool | bIgnoreFinalSlash = true , |
||
DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Get the name of a segment of the hierarchical path.
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 4055 of file urlobj.cxx.
References decode(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, nIndex, and p.
Referenced by GetLastName().
|
inline |
Definition at line 1200 of file urlobj.hxx.
References convertRelToAbs(), Detect, and WasEncoded.
|
inline |
Definition at line 734 of file urlobj.hxx.
Referenced by operator==().
OUString INetURLObject::GetPartBeforeLastName | ( | ) | const |
Definition at line 4737 of file urlobj.cxx.
References checkHierarchical(), clearFragment(), clearQuery(), GetMainURL(), LAST_SEGMENT, removeSegment(), setFinalSlash(), and ToIUri.
|
inline |
Definition at line 420 of file urlobj.hxx.
Referenced by operator==().
OUString INetURLObject::GetPath | ( | ) | const |
Definition at line 4793 of file urlobj.cxx.
References PathToFileName(), removeFinalSlash(), and removeSegment().
sal_uInt32 INetURLObject::GetPort | ( | ) | const |
Definition at line 3981 of file urlobj.cxx.
References INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPort, p, and INetMIME::scanUnsigned().
Referenced by operator==().
|
staticprivate |
Definition at line 2125 of file urlobj.cxx.
References aMap, Cid, Cmis, Component, Data, Db, INetURLObject::PrefixInfo::External, File, Ftp, Hid, Http, Https, i, INetURLObject::PrefixInfo::Internal, Javascript, Ldap, INetURLObject::PrefixInfo::m_pPrefix, Macro, Mailto, NotValid, INetURLObject::PrefixInfo::Official, p, PrivSoffice, Sftp, Slot, Smb, Telnet, Uno, VndSunStarCmd, VndSunStarExpand, VndSunStarHelp, VndSunStarHier, VndSunStarPkg, VndSunStarTdoc, and VndSunStarWebdav.
Referenced by CompareProtocolScheme(), convertExtToInt(), convertIntToExt(), convertRelToAbs(), and setAbsURIRef().
|
inline |
Definition at line 380 of file urlobj.hxx.
Referenced by getData().
|
inlinestatic |
Definition at line 1216 of file urlobj.hxx.
References convertAbsToRel(), and INetURLObject().
|
static |
Return the URL 'prefix' for a given scheme.
eTheScheme | One of the supported URL schemes. |
Definition at line 3947 of file urlobj.cxx.
References getSchemeInfo().
|
inlineprivate |
Definition at line 440 of file urlobj.cxx.
References getSchemeInfo(), and m_eScheme.
Referenced by changeScheme(), checkHierarchical(), clearPassword(), ConcatData(), convertAbsToRel(), convertRelToAbs(), getAbbreviated(), getAuthorityBegin(), GetHostPort(), GetScheme(), getSchemeInfo(), GetSchemeName(), setAbsURIRef(), setHost(), setPassword(), SetPort(), setQuery(), and setUser().
|
inlinestaticprivate |
Definition at line 319 of file urlobj.cxx.
References DATA, EMPTY, JAVASCRIPT, map, PRIVATE, SLOT, u, and UNO.
|
static |
Return the human-readable name for a given scheme.
eTheScheme | One of the supported URL schemes. |
Definition at line 3953 of file urlobj.cxx.
References getSchemeInfo(), and INetURLObject::SchemeInfo::m_sScheme.
|
private |
Definition at line 3236 of file urlobj.cxx.
References checkHierarchical(), DBG_ASSERT, INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), LAST_SEGMENT, m_aAbsURIRef, m_aPath, and nIndex.
Referenced by getBase(), getExtension(), getName(), hasExtension(), removeExtension(), removeSegment(), setBase(), setExtension(), and setName().
sal_Int32 INetURLObject::getSegmentCount | ( | bool | bIgnoreFinalSlash = true | ) | const |
The number of segments in the hierarchical path.
@descr Using RFC 2396 and RFC 2234, a hierarchical path is of the form
hierarchical-path = 1*("/" segment)
segment = name *(";" param)
name = [base ["." extension]]
base = 1*pchar
extension = *<any pchar except ".">
param = *pchar
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
Definition at line 4015 of file urlobj.cxx.
References checkHierarchical(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), m_aAbsURIRef, m_aPath, n, and p.
OUString INetURLObject::GetURLNoMark | ( | DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Definition at line 3527 of file urlobj.cxx.
References clearFragment(), and GetMainURL().
OUString INetURLObject::GetURLNoPass | ( | DecodeMechanism | eMechanism = DecodeMechanism::ToIUri , |
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) | const |
Definition at line 3519 of file urlobj.cxx.
References clearPassword(), and GetMainURL().
|
inline |
Definition at line 456 of file urlobj.hxx.
Referenced by getData(), and operator==().
|
inline |
Definition at line 415 of file urlobj.hxx.
Referenced by operator==().
|
static |
Definition at line 4525 of file urlobj.cxx.
References All, DBG_ASSERT, INetMIME::getHexWeight(), INetMIME::getUTF32Character(), NONE, NotCanonical, Octet, p, Utf32, and WasEncoded.
Referenced by convertRelToAbs(), decode(), encodeText(), getFSysPath(), parseHostOrNetBiosName(), parsePath(), and setAbsURIRef().
|
private |
Definition at line 3434 of file urlobj.cxx.
References Dos, INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), m_aAbsURIRef, m_aPath, and p.
Referenced by convertAbsToRel(), and getFSysPath().
|
inline |
Definition at line 260 of file urlobj.hxx.
References NotValid.
Referenced by clearFragment(), clearQuery(), ConcatData(), convertRelToAbs(), and setFragment().
bool INetURLObject::hasExtension | ( | ) | const |
Determine whether the name of the last segment has an extension.
Definition at line 4103 of file urlobj.cxx.
References INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), LAST_SEGMENT, m_aAbsURIRef, and p.
bool INetURLObject::hasFinalSlash | ( | ) | const |
Determine whether the hierarchical path ends in a final slash.
Definition at line 4268 of file urlobj.cxx.
References checkHierarchical(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), m_aAbsURIRef, and m_aPath.
|
inline |
Definition at line 744 of file urlobj.hxx.
|
inline |
Definition at line 732 of file urlobj.hxx.
Referenced by operator==().
|
inline |
Definition at line 435 of file urlobj.hxx.
|
inline |
Definition at line 454 of file urlobj.hxx.
|
inline |
Definition at line 413 of file urlobj.hxx.
bool INetURLObject::insertName | ( | std::u16string_view | rTheName, |
bool | bAppendFinalSlash = false , |
||
sal_Int32 | nIndex = LAST_SEGMENT , |
||
EncodeMechanism | eMechanism = EncodeMechanism::WasEncoded , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) |
Insert a new segment into the hierarchical path.
A final slash at the end of the hierarchical path does not denote an empty segment, but is ignored.
rTheName | The name part of the new segment. The new segment will contain no parameters. |
bAppendFinalSlash | If the new segment is appended at the end of the hierarchical path, this parameter specifies whether to add a final slash after it or not. |
nIndex | The non-negative index of the segment before which to insert the new segment. LAST_SEGMENT or an nIndex that equals getSegmentCount() inserts the new segment at the end of the hierarchical path. |
eMechanism | See the general discussion for set-methods. |
eCharset | See the general discussion for set-methods. |
Definition at line 3282 of file urlobj.cxx.
References checkHierarchical(), DBG_ASSERT, encodeText(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), LAST_SEGMENT, m_aAbsURIRef, m_aPath, nIndex, NotCanonical, PART_PCHAR, and setPath().
Referenced by Append().
bool INetURLObject::isAnyKnownWebDAVScheme | ( | ) | const |
Check if the scheme is one of the WebDAV scheme we know about.
Definition at line 3937 of file urlobj.cxx.
References Http, Https, isSchemeEqualTo(), u, and VndSunStarWebdav.
|
inlinestatic |
Definition at line 914 of file urlobj.hxx.
|
inline |
Definition at line 382 of file urlobj.hxx.
Referenced by isAnyKnownWebDAVScheme().
bool INetURLObject::isSchemeEqualTo | ( | std::u16string_view | scheme | ) | const |
Definition at line 3928 of file urlobj.cxx.
References INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, and m_aScheme.
|
inline |
Definition at line 284 of file urlobj.hxx.
bool INetURLObject::operator== | ( | INetURLObject const & | rObject | ) | const |
Definition at line 3713 of file urlobj.cxx.
References INetURLObject::SubString::compare(), equalsIgnoreAsciiCase(), File, GetHost(), GetParam(), GetPass(), GetPort(), GetURLPath(), GetUser(), HasParam(), m_aAbsURIRef, m_aScheme, m_eScheme, nLength, NONE, and NotValid.
|
staticprivate |
Definition at line 2380 of file urlobj.cxx.
References INetMIME::getHexWeight(), INetMIME::getWeight(), and p.
Referenced by parseHostOrNetBiosName().
|
staticprivate |
Definition at line 2853 of file urlobj.cxx.
References appendUCS4(), getUTF32(), INetMIME::isVisible(), p, parseHost(), and PART_URIC.
Referenced by ConcatData(), convertRelToAbs(), setAbsURIRef(), and setHost().
|
staticprivate |
Definition at line 2945 of file urlobj.cxx.
References appendUCS4(), Cid, Cmis, Component, Data, Db, DBG_ASSERT, File, Ftp, Generic, getUTF32(), Hid, Http, Https, Javascript, Ldap, Macro, Mailto, NONE, NotValid, PART_HTTP_PATH, PART_MAILTO, PART_PATH_BEFORE_QUERY, PART_PCHAR, PART_URIC, PART_URIC_NO_SLASH, PrivSoffice, Sftp, Slot, Smb, Telnet, Uno, VndSunStarCmd, VndSunStarExpand, VndSunStarHelp, VndSunStarHier, VndSunStarPkg, VndSunStarTdoc, and VndSunStarWebdav.
Referenced by ConcatData(), setAbsURIRef(), and setPath().
OUString INetURLObject::PathToFileName | ( | ) | const |
Definition at line 4771 of file urlobj.cxx.
References decode(), File, INetURLObject::SubString::getEnd(), m_aAbsURIRef, m_aPath, m_eScheme, and NONE.
bool INetURLObject::removeExtension | ( | sal_Int32 | nIndex = LAST_SEGMENT , |
bool | bIgnoreFinalSlash = true |
||
) |
Remove the extension of the name of a segment.
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
Definition at line 4238 of file urlobj.cxx.
References INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPath, nIndex, NotCanonical, p, and setPath().
Referenced by CutExtension().
bool INetURLObject::removeFinalSlash | ( | ) |
Remove a final slash from the hierarchical path.
Definition at line 4296 of file urlobj.cxx.
References checkHierarchical(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), m_aAbsURIRef, m_aPath, NotCanonical, and setPath().
bool INetURLObject::removeSegment | ( | sal_Int32 | nIndex = LAST_SEGMENT , |
bool | bIgnoreFinalSlash = true |
||
) |
Remove a segment from the hierarchical path.
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
Definition at line 4031 of file urlobj.cxx.
References INetURLObject::SubString::getBegin(), INetURLObject::SubString::getEnd(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isEmpty(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPath, nIndex, NotCanonical, and setPath().
Referenced by CutLastName(), GetPartBeforeLastName(), and GetPath().
|
static |
|
staticprivate |
|
private |
Definition at line 725 of file urlobj.cxx.
References All, appendUCS4(), Cmis, Dos, INetMIME::equalIgnoreCase(), INetURLObject::PrefixInfo::External, File, Ftp, Generic, getPrefix(), getSchemeInfo(), getUTF32(), Http, INetMIME::isIMAPAtomChar(), Ldap, m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aScheme, m_aUser, INetURLObject::SchemeInfo::m_bAuth, INetURLObject::SchemeInfo::m_bAuthority, INetURLObject::SchemeInfo::m_bPassword, INetURLObject::SchemeInfo::m_bPort, INetURLObject::SchemeInfo::m_bQuery, INetURLObject::PrefixInfo::m_eKind, m_eScheme, INetURLObject::PrefixInfo::m_eScheme, m_eSmartScheme, INetURLObject::PrefixInfo::m_pPrefix, INetURLObject::PrefixInfo::m_pTranslatedPrefix, INetURLObject::SchemeInfo::m_sScheme, Mailto, n, NONE, NotValid, p, parseHostOrNetBiosName(), parsePath(), PART_AUTHORITY, PART_URIC, PART_USER_PASSWORD, scanDomain(), scanIPv6reference(), INetURLObject::SubString::set(), setInvalid(), Smb, Unix, VndSunStarHelp, VndSunStarHier, and VndSunStarPkg.
Referenced by convertRelToAbs(), INetURLObject(), SetSmartURL(), and SetURL().
void INetURLObject::SetBase | ( | std::u16string_view | rTheBase | ) |
Definition at line 4801 of file urlobj.cxx.
References All, LAST_SEGMENT, and setBase().
bool INetURLObject::setBase | ( | std::u16string_view | rTheBase, |
sal_Int32 | nIndex = LAST_SEGMENT , |
||
EncodeMechanism | eMechanism = EncodeMechanism::WasEncoded , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) |
Set the base of the name of a segment (preserving the extension).
A final slash at the end of the hierarchical path does not denote an empty segment, but is ignored.
rTheBase | The new base. |
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
eMechanism | See the general discussion for set-methods. |
eCharset | See the general discussion for set-methods. |
Definition at line 4147 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPath, nIndex, NotCanonical, p, PART_PCHAR, and setPath().
Referenced by SetBase().
void INetURLObject::SetExtension | ( | std::u16string_view | rTheExtension | ) |
Definition at line 4811 of file urlobj.cxx.
References LAST_SEGMENT, and setExtension().
bool INetURLObject::setExtension | ( | std::u16string_view | rTheExtension, |
sal_Int32 | nIndex = LAST_SEGMENT , |
||
bool | bIgnoreFinalSlash = true , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) |
Set the extension of the name of a segment (replacing an already existing extension).
rTheExtension | The new extension. |
nIndex | The non-negative index of the segment, or LAST_SEGMENT if addressing the last segment. |
bIgnoreFinalSlash | If true, a final slash at the end of the hierarchical path does not denote an empty segment, but is ignored. |
eCharset | See the general discussion for set-methods. |
Definition at line 4206 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aPath, nIndex, NotCanonical, p, PART_PCHAR, setPath(), and WasEncoded.
Referenced by SetExtension().
bool INetURLObject::setFinalSlash | ( | ) |
Make the hierarchical path end in a final slash (if it does not already do so).
Definition at line 4279 of file urlobj.cxx.
References checkHierarchical(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), m_aAbsURIRef, m_aPath, NotCanonical, and setPath().
Referenced by GetPartBeforeLastName().
|
private |
Definition at line 3415 of file urlobj.cxx.
References encodeText(), HasError(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aFragment, PART_URIC, and INetURLObject::SubString::set().
Referenced by SetMark().
|
inline |
Definition at line 447 of file urlobj.hxx.
|
private |
Definition at line 2904 of file urlobj.cxx.
References equalsIgnoreAsciiCase(), File, getSchemeInfo(), INetURLObject::SubString::isPresent(), Ldap, m_aAbsURIRef, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_eScheme, parseHostOrNetBiosName(), INetURLObject::SubString::set(), and WasEncoded.
|
private |
Definition at line 596 of file urlobj.cxx.
References INetURLObject::SubString::clear(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aScheme, m_aUser, m_eScheme, and NotValid.
Referenced by ConcatData(), and setAbsURIRef().
|
inline |
Definition at line 1282 of file urlobj.hxx.
References clearFragment(), and setFragment().
bool INetURLObject::setName | ( | std::u16string_view | rTheName, |
EncodeMechanism | eMechanism = EncodeMechanism::WasEncoded , |
||
rtl_TextEncoding | eCharset = RTL_TEXTENCODING_UTF8 |
||
) |
Set the name of the last segment (preserving any parameters and any query or fragment part).
rTheName | The new name. |
eMechanism | See the general discussion for get-methods. |
eCharset | See the general discussion for get-methods. |
Definition at line 4076 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getLength(), getSegment(), INetURLObject::SubString::isPresent(), LAST_SEGMENT, m_aAbsURIRef, m_aPath, NotCanonical, p, PART_PCHAR, and setPath().
|
inline |
Definition at line 1270 of file urlobj.hxx.
References clearQuery(), and setQuery().
|
inline |
Definition at line 1254 of file urlobj.hxx.
References clearPassword(), and setPassword().
|
private |
Definition at line 2338 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getBegin(), INetURLObject::SubString::getEnd(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aUser, PART_USER_PASSWORD, INetURLObject::SubString::set(), u, and WasEncoded.
Referenced by SetPass(), and SetUserAndPass().
|
private |
Definition at line 3202 of file urlobj.cxx.
References m_aAbsURIRef, m_aFragment, m_aPath, m_aQuery, m_eScheme, p, parsePath(), and INetURLObject::SubString::set().
Referenced by insertName(), removeExtension(), removeFinalSlash(), removeSegment(), setBase(), setExtension(), setFinalSlash(), and setName().
bool INetURLObject::SetPort | ( | sal_uInt32 | nThePort | ) |
Definition at line 3994 of file urlobj.cxx.
References INetURLObject::SubString::getEnd(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, INetURLObject::SubString::set(), and u.
|
private |
Definition at line 3381 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getEnd(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aFragment, m_aPath, m_aQuery, PART_URIC, INetURLObject::SubString::set(), and u.
Referenced by SetParam().
|
inline |
Definition at line 311 of file urlobj.hxx.
|
inline |
Definition at line 1175 of file urlobj.hxx.
References setAbsURIRef().
|
inline |
Definition at line 1157 of file urlobj.hxx.
References setAbsURIRef().
|
inline |
Definition at line 461 of file urlobj.hxx.
|
inline |
Definition at line 425 of file urlobj.hxx.
|
private |
Definition at line 2277 of file urlobj.cxx.
References encodeText(), INetURLObject::SubString::getBegin(), getSchemeInfo(), INetURLObject::SubString::isPresent(), m_aAbsURIRef, m_aAuth, m_aFragment, m_aHost, m_aPath, m_aPort, m_aQuery, m_aUser, PART_USER_PASSWORD, INetURLObject::SubString::set(), u, and WasEncoded.
Referenced by SetUserAndPass().
|
inline |
Definition at line 1261 of file urlobj.hxx.
References clearPassword(), setPassword(), and setUser().
|
inline |
Definition at line 1185 of file urlobj.hxx.
References convertRelToAbs().
|
inlinestatic |
Definition at line 1231 of file urlobj.hxx.
References convertIntToExt().
Referenced by getExternalURL().
|
inlinestatic |
Definition at line 1243 of file urlobj.hxx.
References convertExtToInt().
|
private |
Definition at line 960 of file urlobj.hxx.
Referenced by changeScheme(), clearFragment(), clearPassword(), clearQuery(), ConcatData(), convertAbsToRel(), convertRelToAbs(), decode(), getAbbreviated(), getAuthorityBegin(), getBase(), getExtension(), getExternalURL(), getFSysPath(), getName(), GetPort(), getSegment(), getSegmentCount(), hasDosVolume(), hasExtension(), hasFinalSlash(), insertName(), isSchemeEqualTo(), operator==(), PathToFileName(), removeExtension(), removeFinalSlash(), removeSegment(), setAbsURIRef(), setBase(), setExtension(), setFinalSlash(), setFragment(), setHost(), setInvalid(), setName(), setPassword(), setPath(), SetPort(), setQuery(), and setUser().
|
private |
Definition at line 963 of file urlobj.hxx.
Referenced by changeScheme(), clearPassword(), ConcatData(), convertAbsToRel(), getAuthority(), setAbsURIRef(), setInvalid(), setPassword(), and setUser().
|
private |
Definition at line 968 of file urlobj.hxx.
Referenced by changeScheme(), clearFragment(), clearPassword(), clearQuery(), convertAbsToRel(), getAbbreviated(), setAbsURIRef(), setFragment(), setHost(), setInvalid(), setPassword(), setPath(), SetPort(), setQuery(), and setUser().
|
private |
Definition at line 964 of file urlobj.hxx.
Referenced by changeScheme(), clearPassword(), ConcatData(), convertAbsToRel(), getAuthority(), getAuthorityBegin(), getFSysPath(), GetHostPort(), setAbsURIRef(), setHost(), setInvalid(), setPassword(), SetPort(), and setUser().
|
private |
Definition at line 966 of file urlobj.hxx.
Referenced by changeScheme(), clearPassword(), ConcatData(), convertAbsToRel(), convertRelToAbs(), getAbbreviated(), getAuthorityBegin(), getFSysPath(), getSegment(), getSegmentCount(), hasDosVolume(), hasFinalSlash(), insertName(), PathToFileName(), removeExtension(), removeFinalSlash(), removeSegment(), setAbsURIRef(), setBase(), setExtension(), setFinalSlash(), setHost(), setInvalid(), setName(), setPassword(), setPath(), SetPort(), setQuery(), and setUser().
|
private |
Definition at line 965 of file urlobj.hxx.
Referenced by changeScheme(), clearPassword(), ConcatData(), convertAbsToRel(), getAuthority(), GetHostPort(), GetPort(), setAbsURIRef(), setHost(), setInvalid(), setPassword(), SetPort(), and setUser().
|
private |
Definition at line 967 of file urlobj.hxx.
Referenced by changeScheme(), clearPassword(), clearQuery(), convertAbsToRel(), convertRelToAbs(), getAbbreviated(), setAbsURIRef(), setHost(), setInvalid(), setPassword(), setPath(), SetPort(), setQuery(), and setUser().
|
private |
Definition at line 961 of file urlobj.hxx.
Referenced by changeScheme(), convertAbsToRel(), isSchemeEqualTo(), operator==(), setAbsURIRef(), and setInvalid().
|
private |
Definition at line 962 of file urlobj.hxx.
Referenced by changeScheme(), ConcatData(), convertAbsToRel(), getAuthority(), getAuthorityBegin(), setAbsURIRef(), setInvalid(), setPassword(), and setUser().
|
private |
Definition at line 969 of file urlobj.hxx.
Referenced by changeScheme(), checkHierarchical(), ConcatData(), convertAbsToRel(), convertRelToAbs(), getAbbreviated(), getFSysPath(), getSchemeInfo(), operator==(), PathToFileName(), setAbsURIRef(), setHost(), setInvalid(), and setPath().
|
private |
Definition at line 970 of file urlobj.hxx.
Referenced by setAbsURIRef().