Lines Matching refs:_sNestedPath
199 sal_Int32 lcl_findPrefixEnd(OUString const& _sNestedPath, OUString const& _sPrefixPath) in lcl_findPrefixEnd() argument
208 if (_sNestedPath.getLength() > nPrefixLength) in lcl_findPrefixEnd()
210 bIsPrefix = _sNestedPath[nPrefixLength] == '/' && in lcl_findPrefixEnd()
211 _sNestedPath.compareTo(_sPrefixPath,nPrefixLength) == 0; in lcl_findPrefixEnd()
214 else if (_sNestedPath.getLength() == nPrefixLength) in lcl_findPrefixEnd()
216 bIsPrefix = _sNestedPath.equals(_sPrefixPath); in lcl_findPrefixEnd()
227 sal_Bool isPrefixOfConfigurationPath(OUString const& _sNestedPath, in isPrefixOfConfigurationPath() argument
230 return _sPrefixPath.getLength() == 0 || lcl_findPrefixEnd(_sNestedPath,_sPrefixPath) != 0; in isPrefixOfConfigurationPath()
234 OUString dropPrefixFromConfigurationPath(OUString const& _sNestedPath, in dropPrefixFromConfigurationPath() argument
237 if ( sal_Int32 nPrefixEnd = lcl_findPrefixEnd(_sNestedPath,_sPrefixPath) ) in dropPrefixFromConfigurationPath()
239 return _sNestedPath.copy(nPrefixEnd); in dropPrefixFromConfigurationPath()
245 return _sNestedPath; in dropPrefixFromConfigurationPath()