Lines Matching refs:rString
161 const OUString& rString, in convertMeasure() argument
164 return SvXMLUnitConverter::convertMeasure( nValue, rString, in convertMeasure()
170 void SvXMLUnitConverter::convertMeasure( OUStringBuffer& rString, in convertMeasure() argument
173 SvXMLUnitConverter::convertMeasure( rString, nMeasure, in convertMeasure()
179 void SvXMLUnitConverter::convertMeasure( OUStringBuffer& rString, in convertMeasure() argument
183 SvXMLUnitConverter::convertMeasure( rString, nMeasure, in convertMeasure()
192 const OUString& rString, in convertMeasure() argument
200 const sal_Int32 nLen = rString.getLength(); in convertMeasure()
203 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
206 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertMeasure()
214 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
215 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
219 nVal += (rString[nPos] - sal_Unicode('0')); in convertMeasure()
223 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in convertMeasure()
228 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
229 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
233 nVal += ( ((double)(rString[nPos] - sal_Unicode('0'))) / nDiv ); in convertMeasure()
239 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
247 if( sal_Unicode('%') != rString[nPos] ) in convertMeasure()
253 (sal_Unicode('p') != rString[nPos] && in convertMeasure()
254 sal_Unicode('P') != rString[nPos])|| in convertMeasure()
255 (sal_Unicode('x') != rString[nPos+1] && in convertMeasure()
256 sal_Unicode('X') != rString[nPos+1]) ) in convertMeasure()
269 switch( rString[nPos] ) in convertMeasure()
315 switch( rString[nPos] ) in convertMeasure()
360 if( rString[nPos] == 'p' || rString[nPos] == 'P' ) in convertMeasure()
380 sal_Unicode c = rString[nPos]; in convertMeasure()
387 if( !*pL && (nPos == nLen || ' ' == rString[nPos]) ) in convertMeasure()
441 const OUString& rString ) in convertBool() argument
443 rBool = IsXMLToken(rString, XML_TRUE); in convertBool()
445 return rBool || IsXMLToken(rString, XML_FALSE); in convertBool()
457 const OUString& rString ) in convertPercent() argument
459 return convertMeasure( rPercent, rString, MAP_RELATIVE ); in convertPercent()
472 const OUString& rString ) in convertMeasurePx() argument
474 return convertMeasure( rPixel, rString, MAP_PIXEL ); in convertMeasurePx()
652 const OUString& rString, in convertNumber() argument
657 sal_Bool bRet = convertNumber64(nNumber,rString,nMin,nMax); in convertNumber()
672 const OUString& rString, in convertNumber64() argument
679 const sal_Int32 nLen = rString.getLength(); in convertNumber64()
682 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertNumber64()
685 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertNumber64()
693 sal_Unicode('0') <= rString[nPos] && in convertNumber64()
694 sal_Unicode('9') >= rString[nPos] ) in convertNumber64()
698 rValue += (rString[nPos] - sal_Unicode('0')); in convertNumber64()
747 const ::rtl::OUString& rString, sal_Bool bLookForUnits) const in convertDouble()
751 MapUnit eSrcUnit = SvXMLExportHelper::GetUnitFromString(rString, meCoreMeasureUnit); in convertDouble()
753 return SvXMLUnitConverter::convertDouble(rValue, rString, in convertDouble()
758 return SvXMLUnitConverter::convertDouble(rValue, rString); in convertDouble()
764 const ::rtl::OUString& rString, MapUnit eSrcUnit, MapUnit eCoreUnit) in convertDouble()
767 …rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, N… in convertDouble()
781 sal_Bool SvXMLUnitConverter::convertDouble(double& rValue, const ::rtl::OUString& rString) in convertDouble() argument
784 …rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, N… in convertDouble()
873 static bool lcl_convertTime( const ::rtl::OUString& rString, sal_Int32& o_rDays, sal_Int32& o_rHour… in lcl_convertTime() argument
876 rtl::OUString aTrimmed = rString.trim().toAsciiUpperCase(); in lcl_convertTime()
976 const ::rtl::OUString& rString) in convertTime()
984 …if ( lcl_convertTime( rString, nDays, nHours, nMins, nSecs, bIsNegativeDuration, fFractionalSecs )… in convertTime()
1028 const ::rtl::OUString& rString ) in convertTime()
1033 …if ( lcl_convertTime( rString, nDays, nHours, nMins, nSecs, bIsNegativeDuration, fFractionalSecs )… in convertTime()
1151 … const ::rtl::OUString& rString, const com::sun::star::util::Date& aTempNullDate) in convertDateTime()
1154 sal_Bool bSuccess = convertDateTime(aDateTime,rString); in convertDateTime()
1223 const ::rtl::OUString& rString ) in convertDateTime()
1228 sal_Int32 nPos = rString.indexOf( (sal_Unicode) 'T' ); in convertDateTime()
1229 sal_Int32 nPos2 = rString.indexOf( (sal_Unicode) ',' ); in convertDateTime()
1231 nPos2 = rString.indexOf( (sal_Unicode) '.' ); in convertDateTime()
1234 aDateStr = rString.copy( 0, nPos ); in convertDateTime()
1237 aTimeStr = rString.copy( nPos + 1, nPos2 - nPos - 1 ); in convertDateTime()
1239 sDoubleStr += rString.copy( nPos2 + 1 ); in convertDateTime()
1243 aTimeStr = rString.copy(nPos + 1); in convertDateTime()
1248 aDateStr = rString; // no separator: only date part in convertDateTime()
1357 SvXMLTokenEnumerator::SvXMLTokenEnumerator( const OUString& rString, sal_Unicode cSeperator /* = sa… in SvXMLTokenEnumerator() argument
1358 : maTokenString( rString ), mnNextTokenPos(0), mcSeperator( cSeperator ) in SvXMLTokenEnumerator()
2020 bool SvXMLUnitConverter::convertTimeDuration( const rtl::OUString& rString, Time& rTime, sal_Int32*… in convertTimeDuration() argument
2022 rtl::OUString aTrimmed = rString.trim().toAsciiUpperCase(); in convertTimeDuration()