Lines Matching refs:rBuffer
263 void Converter::convertMeasure( OUStringBuffer& rBuffer, in convertMeasure() argument
269 (void)rBuffer; in convertMeasure()
279 rBuffer.append( nMeasure ); in convertMeasure()
280 rBuffer.append( sal_Unicode('%' ) ); in convertMeasure()
288 rBuffer.append( sal_Unicode('-') ); in convertMeasure()
420 rBuffer.append( (sal_Int32)(nBigVal / nBigFac2) ); in convertMeasure()
423 rBuffer.append( sal_Unicode('.') ); in convertMeasure()
428 rBuffer.append( (sal_Int32)((nBigVal / nBigFac2) % nBig10 ) ); in convertMeasure()
444 rBuffer.append( (sal_Int32)(nLongVal / nFac) ); in convertMeasure()
447 rBuffer.append( sal_Unicode('.') ); in convertMeasure()
451 rBuffer.append( (sal_Int32)((nLongVal / nFac) % 10) ); in convertMeasure()
457 rBuffer.appendAscii( psUnit ); in convertMeasure()
483 void Converter::convertBool( OUStringBuffer& rBuffer, bool bValue ) in convertBool() argument
485 rBuffer.append( bValue ? getTrueString() : getFalseString() ); in convertBool()
495 void Converter::convertPercent( OUStringBuffer& rBuffer, sal_Int32 nValue ) in convertPercent() argument
497 rBuffer.append( nValue ); in convertPercent()
498 rBuffer.append( sal_Unicode('%' ) ); in convertPercent()
508 void Converter::convertMeasurePx( OUStringBuffer& rBuffer, sal_Int32 nValue ) in convertMeasurePx() argument
510 rBuffer.append( nValue ); in convertMeasurePx()
511 rBuffer.append( sal_Unicode('p' ) ); in convertMeasurePx()
512 rBuffer.append( sal_Unicode('x' ) ); in convertMeasurePx()
547 void Converter::convertColor( OUStringBuffer& rBuffer, sal_Int32 nColor ) in convertColor() argument
549 rBuffer.append( sal_Unicode( '#' ) ); in convertColor()
552 rBuffer.append( sal_Unicode( aHexTab[ nCol >> 4 ] ) ); in convertColor()
553 rBuffer.append( sal_Unicode( aHexTab[ nCol & 0xf ] ) ); in convertColor()
556 rBuffer.append( sal_Unicode( aHexTab[ nCol >> 4 ] ) ); in convertColor()
557 rBuffer.append( sal_Unicode( aHexTab[ nCol & 0xf ] ) ); in convertColor()
560 rBuffer.append( sal_Unicode( aHexTab[ nCol >> 4 ] ) ); in convertColor()
561 rBuffer.append( sal_Unicode( aHexTab[ nCol & 0xf ] ) ); in convertColor()
565 void Converter::convertNumber( OUStringBuffer& rBuffer, sal_Int32 nNumber ) in convertNumber() argument
567 rBuffer.append( nNumber ); in convertNumber()
614 void Converter::convertDouble( OUStringBuffer& rBuffer, in convertDouble() argument
623 …::rtl::math::doubleToUStringBuffer( rBuffer, fNumber, rtl_math_StringFormat_Automatic, rtl_math_De… in convertDouble()
625 rBuffer.append(sal_Unicode('%')); in convertDouble()
633 …::rtl::math::doubleToUStringBuffer( rBuffer, fNumber, rtl_math_StringFormat_Automatic, rtl_math_De… in convertDouble()
635 rBuffer.append(sUnit); in convertDouble()
640 void Converter::convertDouble( ::rtl::OUStringBuffer& rBuffer, double fNumber) in convertDouble() argument
642 …::rtl::math::doubleToUStringBuffer( rBuffer, fNumber, rtl_math_StringFormat_Automatic, rtl_math_De… in convertDouble()
681 void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer, in convertDuration() argument
690 rBuffer.append(sal_Unicode('-')); in convertDuration()
694 rBuffer.appendAscii(RTL_CONSTASCII_STRINGPARAM( "PT" )); in convertDuration()
727 rBuffer.append( sal_Unicode('0')); in convertDuration()
728 rBuffer.append( sal_Int32( fHoursValue)); in convertDuration()
729 rBuffer.append( sal_Unicode('H')); in convertDuration()
731 rBuffer.append( sal_Unicode('0')); in convertDuration()
732 rBuffer.append( sal_Int32( fMinsValue)); in convertDuration()
733 rBuffer.append( sal_Unicode('M')); in convertDuration()
735 rBuffer.append( sal_Unicode('0')); in convertDuration()
736 rBuffer.append( sal_Int32( fSecsValue)); in convertDuration()
744 rBuffer.append( sal_Unicode('.')); in convertDuration()
745 rBuffer.append( a100th.copy( 2 ) ); // strip 0. in convertDuration()
748 rBuffer.append( sal_Unicode('S')); in convertDuration()
882 void Converter::convertDuration(::rtl::OUStringBuffer& rBuffer, in convertDuration() argument
887 rBuffer.append(sal_Unicode('-')); in convertDuration()
889 rBuffer.append(sal_Unicode('P')); in convertDuration()
895 rBuffer.append(static_cast<sal_Int32>(rDuration.Years)); in convertDuration()
896 rBuffer.append(sal_Unicode('Y')); in convertDuration()
900 rBuffer.append(static_cast<sal_Int32>(rDuration.Months)); in convertDuration()
901 rBuffer.append(sal_Unicode('M')); in convertDuration()
905 rBuffer.append(static_cast<sal_Int32>(rDuration.Days)); in convertDuration()
906 rBuffer.append(sal_Unicode('D')); in convertDuration()
913 rBuffer.append(sal_Unicode('T')); // time separator in convertDuration()
916 rBuffer.append(static_cast<sal_Int32>(rDuration.Hours)); in convertDuration()
917 rBuffer.append(sal_Unicode('H')); in convertDuration()
921 rBuffer.append(static_cast<sal_Int32>(rDuration.Minutes)); in convertDuration()
922 rBuffer.append(sal_Unicode('M')); in convertDuration()
927 rBuffer.append(static_cast<sal_Int32>(rDuration.Seconds)); in convertDuration()
930 rBuffer.append(sal_Unicode('.')); in convertDuration()
934 rBuffer.append(sal_Unicode('0')); in convertDuration()
938 rBuffer.append(sal_Unicode('0')); in convertDuration()
944 rBuffer.append(nMilliSeconds / 100); in convertDuration()
948 rBuffer.append(nMilliSeconds / 10); in convertDuration()
953 rBuffer.append(nMilliSeconds); in convertDuration()
956 rBuffer.append(sal_Unicode('S')); in convertDuration()
962 rBuffer.append(sal_Unicode('0')); in convertDuration()
963 rBuffer.append(sal_Unicode('D')); in convertDuration()