Lines Matching refs:_sInPath

85 sal_Bool splitLastFromConfigurationPath(OUString const& _sInPath,   in splitLastFromConfigurationPath()  argument
91 sal_Int32 nPos = _sInPath.getLength()-1; in splitLastFromConfigurationPath()
94 if (nPos > 0 && _sInPath[ nPos ] == sal_Unicode('/')) in splitLastFromConfigurationPath()
101 if (nPos > 0 && _sInPath[ nPos ] == sal_Unicode(']')) in splitLastFromConfigurationPath()
103 sal_Unicode chQuote = _sInPath[--nPos]; in splitLastFromConfigurationPath()
108 nPos = _sInPath.lastIndexOf(chQuote,nEnd); in splitLastFromConfigurationPath()
115 nPos = _sInPath.lastIndexOf('[',nEnd); in splitLastFromConfigurationPath()
119 …OSL_ENSURE(nPos >= 0 && _sInPath[nPos] == '[', "Invalid config path: unmatched quotes or brackets"… in splitLastFromConfigurationPath()
120 if (nPos >= 0 && _sInPath[nPos] == '[') in splitLastFromConfigurationPath()
122 nPos = _sInPath.lastIndexOf('/',nPos); in splitLastFromConfigurationPath()
126 nStart = 0, nEnd = _sInPath.getLength(); in splitLastFromConfigurationPath()
134 nPos = _sInPath.lastIndexOf('/',nEnd); in splitLastFromConfigurationPath()
140 nEnd <= _sInPath.getLength() ); in splitLastFromConfigurationPath()
142 OSL_ASSERT(nPos == -1 || _sInPath[nPos] == '/'); in splitLastFromConfigurationPath()
145 _rsLocalName = _sInPath.copy(nStart, nEnd-nStart); in splitLastFromConfigurationPath()
146 _rsOutPath = (nPos > 0) ? _sInPath.copy(0,nPos) : OUString(); in splitLastFromConfigurationPath()
153 OUString extractFirstFromConfigurationPath(OUString const& _sInPath, OUString* _sOutPath) in extractFirstFromConfigurationPath() argument
155 sal_Int32 nSep = _sInPath.indexOf('/'); in extractFirstFromConfigurationPath()
156 sal_Int32 nBracket = _sInPath.indexOf('['); in extractFirstFromConfigurationPath()
165 sal_Unicode chQuote = _sInPath[nStart]; in extractFirstFromConfigurationPath()
169 nEnd = _sInPath.indexOf(chQuote, nStart+1); in extractFirstFromConfigurationPath()
174 nEnd = _sInPath.indexOf(']',nStart); in extractFirstFromConfigurationPath()
177 …OSL_ENSURE(nEnd > nStart && _sInPath[nBracket] == ']', "Invalid config path: improper mismatch of … in extractFirstFromConfigurationPath()
178 …OSL_ENSURE((nBracket+1 == _sInPath.getLength() && nSep == -1) || (_sInPath[nBracket+1] == '/' && n… in extractFirstFromConfigurationPath()
184 OUString sResult = (nEnd >= 0) ? _sInPath.copy(nStart, nEnd-nStart) : _sInPath; in extractFirstFromConfigurationPath()
189 *_sOutPath = (nSep >= 0) ? _sInPath.copy(nSep + 1) : OUString(); in extractFirstFromConfigurationPath()