/************************************************************************** TODO **************************************************************************
// Note: Maybe it's a re-init, setUri only resets m_aPath!
m_aService.clear();
m_aParentUri.clear();
// URI must match at least: <scheme>: if ( m_aUri.getLength() < HIERARCHY_URL_SCHEME.getLength() + 1 )
{ // error, but remember that we did an init().
m_aPath = "/"; return;
}
// Scheme is case insensitive.
OUString aScheme
= m_aUri.copy( 0, HIERARCHY_URL_SCHEME.getLength() ).toAsciiLowerCase(); if ( aScheme == HIERARCHY_URL_SCHEME )
{
m_aUri = m_aUri.replaceAt( 0, aScheme.getLength(), aScheme );
sal_Int32 nPos = 0;
// If the URI has no service specifier, insert default service. // This is for backward compatibility and for convenience.
if ( m_aUri.getLength() == HIERARCHY_URL_SCHEME.getLength() + 1 )
{ // root folder URI without path and service specifier.
m_aUri += "//" + DEFAULT_DATA_SOURCE_SERVICE + "/";
m_aService = DEFAULT_DATA_SOURCE_SERVICE ;
// Here: - m_aUri has at least the form "<scheme>://<service>/" // - m_aService was set // - m_aPath, m_aParentPath, m_aName not yet set // - nPos points to slash after service specifier
// Remove trailing slash, if not a root folder URI.
sal_Int32 nEnd = m_aUri.lastIndexOf( '/' ); if ( ( nEnd > nPos ) && ( nEnd == ( m_aUri.getLength() - 1 ) ) )
m_aUri = m_aUri.copy( 0, nEnd );
// Path (includes leading slash)
m_aPath = m_aUri.copy( nPos );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.