Lines Matching refs:rStr
230 void StringHelper::appendChar( OUStringBuffer& rStr, sal_Unicode cChar, sal_Int32 nCount ) in appendChar() argument
233 rStr.append( cChar ); in appendChar()
236 void StringHelper::appendString( OUStringBuffer& rStr, const OUString& rData, sal_Int32 nWidth, sal… in appendString() argument
238 appendChar( rStr, cFill, nWidth - rData.getLength() ); in appendString()
239 rStr.append( rData ); in appendString()
244 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt8 nData, sal_Int32 nWidth, sal_Unicode … in appendDec() argument
246 appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill ); in appendDec()
249 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int8 nData, sal_Int32 nWidth, sal_Unicode c… in appendDec() argument
251 appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill ); in appendDec()
254 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt16 nData, sal_Int32 nWidth, sal_Unicode… in appendDec() argument
256 appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill ); in appendDec()
259 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int16 nData, sal_Int32 nWidth, sal_Unicode … in appendDec() argument
261 appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill ); in appendDec()
264 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt32 nData, sal_Int32 nWidth, sal_Unicode… in appendDec() argument
266 appendString( rStr, OUString::valueOf( static_cast< sal_Int64 >( nData ) ), nWidth, cFill ); in appendDec()
269 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int32 nData, sal_Int32 nWidth, sal_Unicode … in appendDec() argument
271 appendString( rStr, OUString::valueOf( nData ), nWidth, cFill ); in appendDec()
274 void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt64 nData, sal_Int32 nWidth, sal_Unicode… in appendDec() argument
283 appendString( rStr, aBuffer.makeStringAndClear(), nWidth, cFill ); in appendDec()
286 void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int64 nData, sal_Int32 nWidth, sal_Unicode … in appendDec() argument
288 appendString( rStr, OUString::valueOf( nData ), nWidth, cFill ); in appendDec()
291 void StringHelper::appendDec( OUStringBuffer& rStr, double fData, sal_Int32 nWidth, sal_Unicode cFi… in appendDec() argument
293 …appendString( rStr, ::rtl::math::doubleToUString( fData, rtl_math_StringFormat_G, 15, '.', true ),… in appendDec()
298 void StringHelper::appendHex( OUStringBuffer& rStr, sal_uInt8 nData, bool bPrefix ) in appendHex() argument
302 rStr.appendAscii( "0x" ); in appendHex()
303 rStr.append( spcHexDigits[ (nData >> 4) & 0x0F ] ).append( spcHexDigits[ nData & 0x0F ] ); in appendHex()
306 void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int8 nData, bool bPrefix ) in appendHex() argument
308 appendHex( rStr, static_cast< sal_uInt8 >( nData ), bPrefix ); in appendHex()
311 void StringHelper::appendHex( OUStringBuffer& rStr, sal_uInt16 nData, bool bPrefix ) in appendHex() argument
313 appendHex( rStr, static_cast< sal_uInt8 >( nData >> 8 ), bPrefix ); in appendHex()
314 appendHex( rStr, static_cast< sal_uInt8 >( nData ), false ); in appendHex()
317 void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int16 nData, bool bPrefix ) in appendHex() argument
319 appendHex( rStr, static_cast< sal_uInt16 >( nData ), bPrefix ); in appendHex()
322 void StringHelper::appendHex( OUStringBuffer& rStr, sal_uInt32 nData, bool bPrefix ) in appendHex() argument
324 appendHex( rStr, static_cast< sal_uInt16 >( nData >> 16 ), bPrefix ); in appendHex()
325 appendHex( rStr, static_cast< sal_uInt16 >( nData ), false ); in appendHex()
328 void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int32 nData, bool bPrefix ) in appendHex() argument
330 appendHex( rStr, static_cast< sal_uInt32 >( nData ), bPrefix ); in appendHex()
333 void StringHelper::appendHex( OUStringBuffer& rStr, sal_uInt64 nData, bool bPrefix ) in appendHex() argument
335 appendHex( rStr, static_cast< sal_uInt32 >( nData >> 32 ), bPrefix ); in appendHex()
336 appendHex( rStr, static_cast< sal_uInt32 >( nData ), false ); in appendHex()
339 void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int64 nData, bool bPrefix ) in appendHex() argument
341 appendHex( rStr, static_cast< sal_uInt64 >( nData ), bPrefix ); in appendHex()
344 void StringHelper::appendHex( OUStringBuffer& rStr, double fData, bool bPrefix ) in appendHex() argument
346 appendHex( rStr, *reinterpret_cast< const sal_uInt64* >( &fData ), bPrefix ); in appendHex()
351 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_uInt8 nData, bool bPrefix ) in appendShortHex() argument
353 appendHex( rStr, nData, bPrefix ); in appendShortHex()
356 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_Int8 nData, bool bPrefix ) in appendShortHex() argument
358 appendHex( rStr, nData, bPrefix ); in appendShortHex()
361 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_uInt16 nData, bool bPrefix ) in appendShortHex() argument
364 appendHex( rStr, nData, bPrefix ); in appendShortHex()
366 appendHex( rStr, static_cast< sal_uInt8 >( nData ), bPrefix ); in appendShortHex()
369 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_Int16 nData, bool bPrefix ) in appendShortHex() argument
371 appendShortHex( rStr, static_cast< sal_uInt16 >( nData ), bPrefix ); in appendShortHex()
374 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_uInt32 nData, bool bPrefix ) in appendShortHex() argument
377 appendHex( rStr, nData, bPrefix ); in appendShortHex()
379 appendShortHex( rStr, static_cast< sal_uInt16 >( nData ), bPrefix ); in appendShortHex()
382 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_Int32 nData, bool bPrefix ) in appendShortHex() argument
384 appendShortHex( rStr, static_cast< sal_uInt32 >( nData ), bPrefix ); in appendShortHex()
387 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_uInt64 nData, bool bPrefix ) in appendShortHex() argument
390 appendHex( rStr, nData, bPrefix ); in appendShortHex()
392 appendShortHex( rStr, static_cast< sal_uInt32 >( nData ), bPrefix ); in appendShortHex()
395 void StringHelper::appendShortHex( OUStringBuffer& rStr, sal_Int64 nData, bool bPrefix ) in appendShortHex() argument
397 appendShortHex( rStr, static_cast< sal_uInt64 >( nData ), bPrefix ); in appendShortHex()
400 void StringHelper::appendShortHex( OUStringBuffer& rStr, double fData, bool bPrefix ) in appendShortHex() argument
402 appendHex( rStr, fData, bPrefix ); in appendShortHex()
407 void StringHelper::appendBin( OUStringBuffer& rStr, sal_uInt8 nData, bool bDots ) in appendBin() argument
411 rStr.append( static_cast< sal_Unicode >( (nData & nMask) ? '1' : '0' ) ); in appendBin()
413 rStr.append( OOX_DUMP_BINDOT ); in appendBin()
417 void StringHelper::appendBin( OUStringBuffer& rStr, sal_Int8 nData, bool bDots ) in appendBin() argument
419 appendBin( rStr, static_cast< sal_uInt8 >( nData ), bDots ); in appendBin()
422 void StringHelper::appendBin( OUStringBuffer& rStr, sal_uInt16 nData, bool bDots ) in appendBin() argument
424 appendBin( rStr, static_cast< sal_uInt8 >( nData >> 8 ), bDots ); in appendBin()
426 rStr.append( OOX_DUMP_BINDOT ); in appendBin()
427 appendBin( rStr, static_cast< sal_uInt8 >( nData ), bDots ); in appendBin()
430 void StringHelper::appendBin( OUStringBuffer& rStr, sal_Int16 nData, bool bDots ) in appendBin() argument
432 appendBin( rStr, static_cast< sal_uInt16 >( nData ), bDots ); in appendBin()
435 void StringHelper::appendBin( OUStringBuffer& rStr, sal_uInt32 nData, bool bDots ) in appendBin() argument
437 appendBin( rStr, static_cast< sal_uInt16 >( nData >> 16 ), bDots ); in appendBin()
439 rStr.append( OOX_DUMP_BINDOT ); in appendBin()
440 appendBin( rStr, static_cast< sal_uInt16 >( nData ), bDots ); in appendBin()
443 void StringHelper::appendBin( OUStringBuffer& rStr, sal_Int32 nData, bool bDots ) in appendBin() argument
445 appendBin( rStr, static_cast< sal_uInt32 >( nData ), bDots ); in appendBin()
448 void StringHelper::appendBin( OUStringBuffer& rStr, sal_uInt64 nData, bool bDots ) in appendBin() argument
450 appendBin( rStr, static_cast< sal_uInt32 >( nData >> 32 ), bDots ); in appendBin()
452 rStr.append( OOX_DUMP_BINDOT ); in appendBin()
453 appendBin( rStr, static_cast< sal_uInt32 >( nData ), bDots ); in appendBin()
456 void StringHelper::appendBin( OUStringBuffer& rStr, sal_Int64 nData, bool bDots ) in appendBin() argument
458 appendBin( rStr, static_cast< sal_uInt64 >( nData ), bDots ); in appendBin()
461 void StringHelper::appendBin( OUStringBuffer& rStr, double fData, bool bDots ) in appendBin() argument
463 appendBin( rStr, *reinterpret_cast< const sal_uInt64* >( &fData ), bDots ); in appendBin()
468 void StringHelper::appendBool( OUStringBuffer& rStr, bool bData ) in appendBool() argument
470 rStr.appendAscii( bData ? "true" : "false" ); in appendBool()
475 void StringHelper::appendAddrCol( OUStringBuffer& rStr, sal_Int32 nCol, bool bRel ) in appendAddrCol() argument
477 if( !bRel ) rStr.append( OOX_DUMP_ADDRABS ); in appendAddrCol()
478 sal_Int32 nPos = rStr.getLength(); in appendAddrCol()
480 rStr.insert( nPos, static_cast< sal_Unicode >( 'A' + (nTemp % 26) ) ); in appendAddrCol()
483 void StringHelper::appendAddrRow( OUStringBuffer& rStr, sal_Int32 nRow, bool bRel ) in appendAddrRow() argument
485 if( !bRel ) rStr.append( OOX_DUMP_ADDRABS ); in appendAddrRow()
486 appendDec( rStr, nRow + 1 ); in appendAddrRow()
489 void StringHelper::appendAddrName( OUStringBuffer& rStr, sal_Unicode cPrefix, sal_Int32 nColRow, bo… in appendAddrName() argument
491 rStr.append( cPrefix ); in appendAddrName()
494 rStr.append( OOX_DUMP_R1C1OPEN ); in appendAddrName()
495 appendDec( rStr, nColRow ); in appendAddrName()
496 rStr.append( OOX_DUMP_R1C1CLOSE ); in appendAddrName()
499 appendDec( rStr, nColRow + 1 ); in appendAddrName()
502 void StringHelper::appendAddress( OUStringBuffer& rStr, const Address& rPos ) in appendAddress() argument
504 appendAddrCol( rStr, rPos.mnCol, true ); in appendAddress()
505 appendAddrRow( rStr, rPos.mnRow, true ); in appendAddress()
508 void StringHelper::appendRange( OUStringBuffer& rStr, const Range& rRange ) in appendRange() argument
510 appendAddress( rStr, rRange.maFirst ); in appendRange()
511 rStr.append( OOX_DUMP_RANGESEP ); in appendRange()
512 appendAddress( rStr, rRange.maLast ); in appendRange()
515 void StringHelper::appendRangeList( OUStringBuffer& rStr, const RangeList& rRanges ) in appendRangeList() argument
524 rStr.append( aData.makeStringAndClear() ); in appendRangeList()
527 void StringHelper::appendAddress( OUStringBuffer& rStr, const TokenAddress& rPos, bool bR1C1 ) in appendAddress() argument
531 appendAddrName( rStr, OOX_DUMP_R1C1ROW, rPos.mnRow, rPos.mbRelRow ); in appendAddress()
532 appendAddrName( rStr, OOX_DUMP_R1C1COL, rPos.mnCol, rPos.mbRelCol ); in appendAddress()
536 appendAddrCol( rStr, rPos.mnCol, rPos.mbRelCol ); in appendAddress()
537 appendAddrRow( rStr, rPos.mnRow, rPos.mbRelRow ); in appendAddress()
541 void StringHelper::appendRange( OUStringBuffer& rStr, const TokenRange& rRange, bool bR1C1 ) in appendRange() argument
543 appendAddress( rStr, rRange.maFirst, bR1C1 ); in appendRange()
544 rStr.append( OOX_DUMP_RANGESEP ); in appendRange()
545 appendAddress( rStr, rRange.maLast, bR1C1 ); in appendRange()
550 void StringHelper::appendCChar( OUStringBuffer& rStr, sal_Unicode cChar, bool bPrefix ) in appendCChar() argument
555 rStr.appendAscii( "\\u" ); in appendCChar()
556 appendHex( rStr, static_cast< sal_uInt16 >( cChar ), false ); in appendCChar()
561 rStr.appendAscii( "\\x" ); in appendCChar()
562 appendHex( rStr, static_cast< sal_uInt8 >( cChar ), false ); in appendCChar()
566 void StringHelper::appendEncChar( OUStringBuffer& rStr, sal_Unicode cChar, sal_Int32 nCount, bool b… in appendEncChar() argument
574 rStr.append( aCode ); in appendEncChar()
578 appendChar( rStr, cChar, nCount ); in appendEncChar()
582 void StringHelper::appendEncString( OUStringBuffer& rStr, const OUString& rData, bool bPrefix ) in appendEncString() argument
595 rStr.append( rData ); in appendEncString()
597 rStr.append( rData.copy( nBeg, nIdx - nBeg ) ); in appendEncString()
602 appendCChar( rStr, rData[ nIdx ], bPrefix ); in appendEncString()
612 void StringHelper::appendToken( OUStringBuffer& rStr, const OUString& rToken, sal_Unicode cSep ) in appendToken() argument
614 if( (rStr.getLength() > 0) && (rToken.getLength() > 0) ) in appendToken()
615 rStr.append( cSep ); in appendToken()
616 rStr.append( rToken ); in appendToken()
619 void StringHelper::appendToken( OUStringBuffer& rStr, sal_Int64 nToken, sal_Unicode cSep ) in appendToken() argument
623 appendToken( rStr, aToken.makeStringAndClear(), cSep ); in appendToken()
626 void StringHelper::prependToken( OUStringBuffer& rStr, const OUString& rToken, sal_Unicode cSep ) in prependToken() argument
628 if( (rStr.getLength() > 0) && (rToken.getLength() > 0) ) in prependToken()
629 rStr.insert( 0, cSep ); in prependToken()
630 rStr.insert( 0, rToken ); in prependToken()
633 void StringHelper::prependToken( OUStringBuffer& rStr, sal_Int64 nToken, sal_Unicode cSep ) in prependToken() argument
637 prependToken( rStr, aToken.makeStringAndClear(), cSep ); in prependToken()
640 void StringHelper::appendIndex( OUStringBuffer& rStr, const OUString& rIdx ) in appendIndex() argument
642 rStr.append( sal_Unicode( '[' ) ).append( rIdx ).append( sal_Unicode( ']' ) ); in appendIndex()
645 void StringHelper::appendIndex( OUStringBuffer& rStr, sal_Int64 nIdx ) in appendIndex() argument
649 appendIndex( rStr, aToken.makeStringAndClear() ); in appendIndex()
652 void StringHelper::appendIndexedText( OUStringBuffer& rStr, const OUString& rData, const OUString& … in appendIndexedText() argument
654 rStr.append( rData ); in appendIndexedText()
655 appendIndex( rStr, rIdx ); in appendIndexedText()
658 void StringHelper::appendIndexedText( OUStringBuffer& rStr, const OUString& rData, sal_Int64 nIdx ) in appendIndexedText() argument
660 rStr.append( rData ); in appendIndexedText()
661 appendIndex( rStr, nIdx ); in appendIndexedText()
669 void StringHelper::enclose( OUStringBuffer& rStr, sal_Unicode cOpen, sal_Unicode cClose ) in enclose() argument
671 rStr.insert( 0, cOpen ).append( cClose ? cClose : cOpen ); in enclose()
678 sal_Int32 lclIndexOf( const OUString& rStr, sal_Unicode cChar, sal_Int32 nStartPos ) in lclIndexOf() argument
680 sal_Int32 nIndex = rStr.indexOf( cChar, nStartPos ); in lclIndexOf()
681 return (nIndex < 0) ? rStr.getLength() : nIndex; in lclIndexOf()
684 OUString lclTrimQuotedStringList( const OUString& rStr ) in lclTrimQuotedStringList() argument
688 sal_Int32 nLen = rStr.getLength(); in lclTrimQuotedStringList()
691 if( rStr[ nPos ] == OOX_DUMP_CFG_QUOTE ) in lclTrimQuotedStringList()
700 sal_Int32 nEnd = lclIndexOf( rStr, OOX_DUMP_CFG_QUOTE, nPos ); in lclTrimQuotedStringList()
701 aToken.append( rStr.copy( nPos, nEnd - nPos ) ); in lclTrimQuotedStringList()
703 …while( (nEnd + 1 < nLen) && (rStr[ nEnd ] == OOX_DUMP_CFG_QUOTE) && (rStr[ nEnd + 1 ] == OOX_DUMP_… in lclTrimQuotedStringList()
711 while( (nPos < nLen) && (rStr[ nPos ] != OOX_DUMP_CFG_QUOTE) ); in lclTrimQuotedStringList()
714 nPos = lclIndexOf( rStr, OOX_DUMP_CFG_LISTSEP, nPos ); in lclTrimQuotedStringList()
723 sal_Int32 nEnd = lclIndexOf( rStr, OOX_DUMP_CFG_LISTSEP, nPos ); in lclTrimQuotedStringList()
724 aBuffer.append( rStr.copy( nPos, nEnd - nPos ) ); in lclTrimQuotedStringList()
737 OUString StringHelper::trimSpaces( const OUString& rStr ) in trimSpaces() argument
740 while( (nBeg < rStr.getLength()) && ((rStr[ nBeg ] == ' ') || (rStr[ nBeg ] == '\t')) ) in trimSpaces()
742 sal_Int32 nEnd = rStr.getLength(); in trimSpaces()
743 while( (nEnd > nBeg) && ((rStr[ nEnd - 1 ] == ' ') || (rStr[ nEnd - 1 ] == '\t')) ) in trimSpaces()
745 return rStr.copy( nBeg, nEnd - nBeg ); in trimSpaces()
748 OUString StringHelper::trimTrailingNul( const OUString& rStr ) in trimTrailingNul() argument
750 sal_Int32 nLastPos = rStr.getLength() - 1; in trimTrailingNul()
751 if( (nLastPos >= 0) && (rStr[ nLastPos ] == 0) ) in trimTrailingNul()
752 return rStr.copy( 0, nLastPos ); in trimTrailingNul()
753 return rStr; in trimTrailingNul()
756 OString StringHelper::convertToUtf8( const OUString& rStr ) in convertToUtf8() argument
758 return OUStringToOString( rStr, RTL_TEXTENCODING_UTF8 ); in convertToUtf8()
761 DataType StringHelper::convertToDataType( const OUString& rStr ) in convertToDataType() argument
764 if( rStr.equalsAscii( "int8" ) ) in convertToDataType()
766 else if( rStr.equalsAscii( "uint8" ) ) in convertToDataType()
768 else if( rStr.equalsAscii( "int16" ) ) in convertToDataType()
770 else if( rStr.equalsAscii( "uint16" ) ) in convertToDataType()
772 else if( rStr.equalsAscii( "int32" ) ) in convertToDataType()
774 else if( rStr.equalsAscii( "uint32" ) ) in convertToDataType()
776 else if( rStr.equalsAscii( "int64" ) ) in convertToDataType()
778 else if( rStr.equalsAscii( "uint64" ) ) in convertToDataType()
780 else if( rStr.equalsAscii( "float" ) ) in convertToDataType()
782 else if( rStr.equalsAscii( "double" ) ) in convertToDataType()
787 FormatType StringHelper::convertToFormatType( const OUString& rStr ) in convertToFormatType() argument
790 if( rStr.equalsAscii( "dec" ) ) in convertToFormatType()
792 else if( rStr.equalsAscii( "hex" ) ) in convertToFormatType()
794 else if( rStr.equalsAscii( "shorthex" ) ) in convertToFormatType()
796 else if( rStr.equalsAscii( "bin" ) ) in convertToFormatType()
798 else if( rStr.equalsAscii( "fix" ) ) in convertToFormatType()
800 else if( rStr.equalsAscii( "bool" ) ) in convertToFormatType()
1961 void Output::writeString( const OUString& rStr ) in writeString() argument
1963 StringHelper::appendEncString( maLine, rStr ); in writeString()