Lines Matching refs:rString

57 								const OUString& rString,  in convertMeasure()  argument
66 sal_Int32 nLen = rString.getLength(); in convertMeasure()
69 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
72 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertMeasure()
80 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
81 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
85 nVal += (rString[nPos] - sal_Unicode('0')); in convertMeasure()
89 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in convertMeasure()
94 sal_Unicode('0') <= rString[nPos] && in convertMeasure()
95 sal_Unicode('9') >= rString[nPos] ) in convertMeasure()
99 nVal += ( ((double)(rString[nPos] - sal_Unicode('0'))) / nDiv ); in convertMeasure()
105 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertMeasure()
113 if( sal_Unicode('%') != rString[nPos] ) in convertMeasure()
119 (sal_Unicode('p') != rString[nPos] && in convertMeasure()
120 sal_Unicode('P') != rString[nPos])|| in convertMeasure()
121 (sal_Unicode('x') != rString[nPos+1] && in convertMeasure()
122 sal_Unicode('X') != rString[nPos+1]) ) in convertMeasure()
135 switch( rString[nPos] ) in convertMeasure()
170 switch( rString[nPos] ) in convertMeasure()
204 if( rString[nPos] == 'p' || rString[nPos] == 'P' ) in convertMeasure()
224 sal_Unicode c = rString[nPos]; in convertMeasure()
231 if( !*pL && (nPos == nLen || ' ' == rString[nPos]) ) in convertMeasure()
475 bool Converter::convertBool( bool& rBool, const OUString& rString ) in convertBool() argument
477 rBool = rString == getTrueString(); in convertBool()
479 return rBool || (rString == getFalseString()); in convertBool()
489 bool Converter::convertPercent( sal_Int32& rPercent, const OUString& rString ) in convertPercent() argument
491 return convertMeasure( rPercent, rString, MeasureUnit::PERCENT ); in convertPercent()
502 bool Converter::convertMeasurePx( sal_Int32& rPixel, const OUString& rString ) in convertMeasurePx() argument
504 return convertMeasure( rPixel, rString, MeasureUnit::PIXEL ); in convertMeasurePx()
572 const OUString& rString, in convertNumber() argument
579 sal_Int32 nLen = rString.getLength(); in convertNumber()
582 while( (nPos < nLen) && (rString[nPos] <= sal_Unicode(' ')) ) in convertNumber()
585 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in convertNumber()
593 sal_Unicode('0') <= rString[nPos] && in convertNumber()
594 sal_Unicode('9') >= rString[nPos] ) in convertNumber()
598 rValue += (rString[nPos] - sal_Unicode('0')); in convertNumber()
647 const ::rtl::OUString& rString, sal_Int16 nTargetUnit) in convertDouble()
649 sal_Int16 nSourceUnit = GetUnitFromString(rString, nTargetUnit); in convertDouble()
651 return convertDouble(rValue, rString, nSourceUnit, nTargetUnit ); in convertDouble()
656 const ::rtl::OUString& rString, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit) in convertDouble()
659 …rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, N… in convertDouble()
673 bool Converter::convertDouble(double& rValue, const ::rtl::OUString& rString) in convertDouble() argument
676 …rValue = ::rtl::math::stringToDouble( rString, (sal_Unicode)('.'), (sal_Unicode)(','), &eStatus, N… in convertDouble()
753 const ::rtl::OUString& rString) in convertDuration()
755 rtl::OUString aTrimmed = rString.trim().toAsciiUpperCase(); in convertDuration()
970 readUnsignedNumber(const ::rtl::OUString & rString, in readUnsignedNumber() argument
977 while (nPos < rString.getLength()) in readUnsignedNumber()
979 const sal_Unicode c = rString[nPos]; in readUnsignedNumber()
1008 readDurationT(const ::rtl::OUString & rString, sal_Int32 & io_rnPos) in readDurationT() argument
1010 if ((io_rnPos < rString.getLength()) && in readDurationT()
1011 (rString[io_rnPos] == sal_Unicode('T'))) in readDurationT()
1020 readDurationComponent(const ::rtl::OUString & rString, in readDurationComponent() argument
1024 if ((io_rnPos < rString.getLength())) in readDurationComponent()
1026 if (c == rString[io_rnPos]) in readDurationComponent()
1035 io_rbTimePart = readDurationT(rString, io_rnPos); in readDurationComponent()
1038 readUnsignedNumber(rString, io_rnPos, io_rnTemp)); in readDurationComponent()
1051 const ::rtl::OUString& rString) in convertDuration()
1053 const ::rtl::OUString string = rString.trim().toAsciiUpperCase(); in convertDuration()
1291 const ::rtl::OUString& rString ) in convertDateTime()
1295 if (convertDateOrDateTime(date, rDateTime, isDateTime, rString)) in convertDateTime()
1316 readDateTimeComponent(const ::rtl::OUString & rString, in readDateTimeComponent() argument
1322 if (R_SUCCESS != readUnsignedNumber(rString, io_rnPos, nTemp)) in readDateTimeComponent()
1358 bool & rbDateTime, const ::rtl::OUString & rString ) in convertDateOrDateTime()
1362 const ::rtl::OUString string = rString.trim().toAsciiUpperCase(); in convertDateOrDateTime()
2009 sal_Int16 Converter::GetUnitFromString(const ::rtl::OUString& rString, sal_Int16 nDefaultUnit) in GetUnitFromString() argument
2012 sal_Int32 nLen = rString.getLength(); in GetUnitFromString()
2016 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString()
2020 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in GetUnitFromString()
2024 while( nPos < nLen && sal_Unicode('0') <= rString[nPos] && sal_Unicode('9') >= rString[nPos] ) in GetUnitFromString()
2027 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in GetUnitFromString()
2030 while( nPos < nLen && sal_Unicode('0') <= rString[nPos] && sal_Unicode('9') >= rString[nPos] ) in GetUnitFromString()
2035 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString()
2040 switch(rString[nPos]) in GetUnitFromString()
2050 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString()
2051 || rString[nPos+1] == sal_Unicode('M'))) in GetUnitFromString()
2064 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('n') in GetUnitFromString()
2065 || rString[nPos+1] == sal_Unicode('n'))) in GetUnitFromString()
2072 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString()
2073 || rString[nPos+1] == sal_Unicode('M'))) in GetUnitFromString()
2080 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('t') in GetUnitFromString()
2081 || rString[nPos+1] == sal_Unicode('T'))) in GetUnitFromString()
2083 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('c') in GetUnitFromString()
2084 || rString[nPos+1] == sal_Unicode('C'))) in GetUnitFromString()