63 OUString sEncodedUser = (
m_sUser.isEmpty() ?
65 rtl::Uri::encode(
m_sUser, rtl_UriCharClassUserinfo,
66 rtl_UriEncodeIgnoreEscapes, RTL_TEXTENCODING_UTF8) );
67 OUString sEncodedBinding = rtl::Uri::encode(
69 rtl_UriCharClassRelSegment,
70 rtl_UriEncodeKeepEscapes,
71 RTL_TEXTENCODING_UTF8 );
72 sUrl =
"vnd.libreoffice.cmis://" +
73 ( sEncodedUser.isEmpty() ? OUString( ) : (sEncodedUser +
"@") ) +
79 OUStringBuffer sEncodedPath;
82 sal_Int32 nStartPos =
nPos + 1;
84 sal_Int32 nLen =
nPos - nStartPos;
86 nLen =
m_sPath.getLength( ) - nStartPos;
87 OUString sSegment =
m_sPath.copy( nStartPos, nLen );
89 if ( !sSegment.isEmpty( ) )
91 sEncodedPath.append(
"/" + rtl::Uri::encode( sSegment,
92 rtl_UriCharClassRelSegment,
93 rtl_UriEncodeKeepEscapes,
94 RTL_TEXTENCODING_UTF8 ));
99 }
else if ( !
m_sId.isEmpty( ) )
101 sUrl +=
"#" + rtl::Uri::encode(
m_sId,
102 rtl_UriCharClassRelSegment,
103 rtl_UriEncodeKeepEscapes,
104 RTL_TEXTENCODING_UTF8 );
OUString GetMark(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
OUString GetPass(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 GetUser(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
OUString GetURLPath(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
OUString GetHost(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
void setObjectId(const OUString &sId)
void setObjectPath(const OUString &sPath)
void setUsername(const OUString &sUser)
OUString asString() const
URL(std::u16string_view urlStr)