LibreOffice Module oox (master) 1
|
Static helper functions for formatted output to strings. More...
#include <dumperbase.hxx>
Static Public Member Functions | |
static void | appendChar (OUStringBuffer &rStr, sal_Unicode cChar, sal_Int32 nCount) |
static void | appendString (OUStringBuffer &rStr, std::u16string_view rData, sal_Int32 nWidth, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_uInt8 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_Int8 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_uInt16 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_Int16 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_uInt32 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_Int32 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_uInt64 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, sal_Int64 nData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendDec (OUStringBuffer &rStr, double fData, sal_Int32 nWidth=0, sal_Unicode cFill=' ') |
static void | appendHex (OUStringBuffer &rStr, sal_uInt8 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_Int8 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_uInt16 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_Int16 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_uInt32 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_Int32 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_uInt64 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, sal_Int64 nData, bool bPrefix=true) |
static void | appendHex (OUStringBuffer &rStr, double fData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_uInt8 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_Int8 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_uInt16 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_Int16 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_uInt32 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_Int32 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_uInt64 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, sal_Int64 nData, bool bPrefix=true) |
static void | appendShortHex (OUStringBuffer &rStr, double fData, bool bPrefix=true) |
static void | appendBin (OUStringBuffer &rStr, sal_uInt8 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_Int8 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_uInt16 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_Int16 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_uInt32 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_Int32 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_uInt64 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, sal_Int64 nData, bool bDots=true) |
static void | appendBin (OUStringBuffer &rStr, double fData, bool bDots=true) |
template<typename Type > | |
static void | appendFix (OUStringBuffer &rStr, Type nData, sal_Int32 nWidth=0) |
static void | appendBool (OUStringBuffer &rStr, bool bData) |
template<typename Type > | |
static void | appendValue (OUStringBuffer &rStr, Type nData, FormatType eFmtType) |
static void | appendCChar (OUStringBuffer &rStr, sal_Unicode cChar, bool bPrefix=true) |
static void | appendEncChar (OUStringBuffer &rStr, sal_Unicode cChar, sal_Int32 nCount, bool bPrefix=true) |
static void | appendEncString (OUStringBuffer &rStr, std::u16string_view rData, bool bPrefix=true) |
static void | appendToken (OUStringBuffer &rStr, std::u16string_view rToken, sal_Unicode cSep=OOX_DUMP_LISTSEP) |
static void | appendIndex (OUStringBuffer &rStr, sal_Int64 nIdx) |
static std::u16string_view | getToken (std::u16string_view rData, sal_Int32 &rnPos, sal_Unicode cSep=OOX_DUMP_LISTSEP) |
static void | enclose (OUStringBuffer &rStr, sal_Unicode cOpen, sal_Unicode cClose='\0') |
Encloses the passed string with the passed characters. More... | |
static std::u16string_view | trimSpaces (std::u16string_view rStr) |
static OUString | trimTrailingNul (const OUString &rStr) |
static OString | convertToUtf8 (std::u16string_view rStr) |
static DataType | convertToDataType (std::u16string_view rStr) |
static FormatType | convertToFormatType (std::u16string_view rStr) |
static bool | convertFromDec (sal_Int64 &ornData, std::u16string_view rData) |
static bool | convertFromHex (sal_Int64 &ornData, std::u16string_view rData) |
static bool | convertStringToInt (sal_Int64 &ornData, std::u16string_view rData) |
static bool | convertStringToDouble (double &orfData, std::u16string_view rData) |
static bool | convertStringToBool (std::u16string_view rData) |
static OUStringPair | convertStringToPair (const OUString &rString, sal_Unicode cSep='=') |
static void | convertStringToStringList (OUStringVector &orVec, std::u16string_view rData, bool bIgnoreEmpty) |
static void | convertStringToIntList (Int64Vector &orVec, std::u16string_view rData, bool bIgnoreEmpty) |
Static helper functions for formatted output to strings.
Definition at line 244 of file dumperbase.hxx.
|
static |
Definition at line 439 of file dumperbase.cxx.
References appendBin(), and oox::dump::lcl_ConvertDouble().
|
static |
Definition at line 408 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 421 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 434 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 395 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 400 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 413 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 426 of file dumperbase.cxx.
References appendBin().
|
static |
Definition at line 385 of file dumperbase.cxx.
Referenced by appendBin(), appendValue(), and oox::dump::Output::writeBin().
|
static |
Definition at line 446 of file dumperbase.cxx.
Referenced by appendValue(), and oox::dump::Output::writeBool().
|
static |
Definition at line 453 of file dumperbase.cxx.
References appendHex().
Referenced by appendEncChar(), and appendEncString().
|
static |
Definition at line 197 of file dumperbase.cxx.
References nCount, and nIndex.
Referenced by appendEncChar(), appendString(), oox::dump::Output::incIndent(), and oox::dump::Output::tab().
|
static |
Definition at line 258 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 226 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 236 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 253 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 216 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 221 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 231 of file dumperbase.cxx.
References appendString().
|
static |
Definition at line 241 of file dumperbase.cxx.
References aBuffer, and appendString().
|
static |
Definition at line 211 of file dumperbase.cxx.
References appendString().
Referenced by appendFix(), appendIndex(), appendValue(), oox::dump::UnitConverter::implGetNameDbl(), and oox::dump::Output::writeDec().
|
static |
Definition at line 469 of file dumperbase.cxx.
References appendCChar(), appendChar(), and nCount.
Referenced by oox::dump::Output::writeChar().
|
static |
Definition at line 486 of file dumperbase.cxx.
References appendCChar().
Referenced by oox::dump::StorageObjectBase::getSysFileName().
|
static |
Definition at line 354 of file dumperbase.hxx.
References appendDec().
Referenced by appendValue(), and oox::dump::Output::writeFix().
|
static |
Definition at line 322 of file dumperbase.cxx.
References appendHex(), and oox::dump::lcl_ConvertDouble().
|
static |
Definition at line 284 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 295 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 306 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 273 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 278 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 289 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 300 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 265 of file dumperbase.cxx.
Referenced by appendCChar(), appendHex(), appendShortHex(), appendValue(), oox::dump::InputObjectBase::dumpGuid(), and oox::dump::Output::writeHex().
|
static |
Definition at line 523 of file dumperbase.cxx.
References appendDec().
|
static |
Definition at line 378 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 347 of file dumperbase.cxx.
References appendShortHex().
|
static |
Definition at line 360 of file dumperbase.cxx.
References appendShortHex().
|
static |
Definition at line 373 of file dumperbase.cxx.
References appendShortHex().
|
static |
Definition at line 334 of file dumperbase.cxx.
References appendHex().
|
static |
Definition at line 339 of file dumperbase.cxx.
References appendHex(), and SAL_MAX_UINT8.
|
static |
Definition at line 352 of file dumperbase.cxx.
References appendHex(), appendShortHex(), and SAL_MAX_UINT16.
|
static |
Definition at line 365 of file dumperbase.cxx.
References appendHex(), appendShortHex(), and SAL_MAX_UINT32.
|
static |
Definition at line 329 of file dumperbase.cxx.
References appendHex().
Referenced by appendShortHex(), appendValue(), oox::dump::FlagsList::implGetName(), and oox::dump::Output::writeShortHex().
|
static |
|
static |
Definition at line 516 of file dumperbase.cxx.
Referenced by oox::dump::StorageObjectBase::extractItem(), oox::dump::FlagsList::implGetName(), and oox::dump::CombiList::implGetName().
|
static |
Definition at line 360 of file dumperbase.hxx.
References appendBin(), appendBool(), appendDec(), appendFix(), appendHex(), appendShortHex(), oox::dump::FORMATTYPE_BIN, oox::dump::FORMATTYPE_BOOL, oox::dump::FORMATTYPE_DEC, oox::dump::FORMATTYPE_FIX, oox::dump::FORMATTYPE_HEX, and oox::dump::FORMATTYPE_SHORTHEX.
Referenced by oox::dump::CombiList::implGetName(), and oox::dump::Output::writeValue().
|
static |
|
static |
|
static |
Definition at line 734 of file dumperbase.cxx.
References convertStringToInt(), and u.
Referenced by oox::dump::OleStorageObject::construct(), oox::dump::Config::getBoolOption(), oox::dump::ConstList::implProcessConfigItemStr(), and oox::dump::MultiList::implProcessConfigItemStr().
|
static |
Definition at line 720 of file dumperbase.cxx.
|
static |
Definition at line 713 of file dumperbase.cxx.
References convertFromDec(), and convertFromHex().
Referenced by oox::dump::OleStorageObject::construct(), convertStringToBool(), convertStringToIntList(), oox::dump::SharedConfigData::createShortList(), oox::dump::Config::getIntOption(), oox::dump::FlagsList::implProcessConfigItemStr(), and oox::dump::ConfigItemBase::processConfigItem().
|
static |
Definition at line 777 of file dumperbase.cxx.
References convertStringToInt(), getToken(), and nPos.
Referenced by oox::dump::NameListBase::exclude().
|
static |
Definition at line 744 of file dumperbase.cxx.
References trimSpaces().
Referenced by oox::dump::OleStorageObject::construct(), and oox::dump::ConfigItemBase::readConfigLine().
|
static |
Definition at line 763 of file dumperbase.cxx.
References getToken(), and nPos.
Referenced by oox::dump::SharedConfigData::createShortList(), oox::dump::SharedConfigData::createUnitConverter(), oox::dump::MultiList::implSetName(), oox::dump::NameListBase::include(), and oox::dump::ItemFormat::parse().
|
static |
Definition at line 627 of file dumperbase.cxx.
References oox::dump::DATATYPE_DOUBLE, oox::dump::DATATYPE_FLOAT, oox::dump::DATATYPE_INT16, oox::dump::DATATYPE_INT32, oox::dump::DATATYPE_INT64, oox::dump::DATATYPE_INT8, oox::dump::DATATYPE_UINT16, oox::dump::DATATYPE_UINT32, oox::dump::DATATYPE_UINT64, oox::dump::DATATYPE_UINT8, oox::dump::DATATYPE_VOID, eType, and u.
Referenced by oox::dump::ItemFormat::parse().
|
static |
Definition at line 653 of file dumperbase.cxx.
References eType, oox::dump::FORMATTYPE_BIN, oox::dump::FORMATTYPE_BOOL, oox::dump::FORMATTYPE_DEC, oox::dump::FORMATTYPE_FIX, oox::dump::FORMATTYPE_HEX, oox::dump::FORMATTYPE_NONE, oox::dump::FORMATTYPE_SHORTHEX, and u.
Referenced by oox::dump::ItemFormat::parse().
|
static |
Definition at line 622 of file dumperbase.cxx.
References OUStringToOString().
Referenced by oox::dump::OutputObjectBase::writeValueItem().
|
static |
Encloses the passed string with the passed characters.
Uses cOpen, if cClose is NUL.
Definition at line 535 of file dumperbase.cxx.
Referenced by oox::dump::InputObjectBase::dumpGuid(), oox::dump::ConstList::implGetName(), oox::dump::FlagsList::implGetName(), and oox::dump::OutputObjectBase::writeStringItem().
|
static |
Definition at line 530 of file dumperbase.cxx.
References o3tl::getToken(), and trimSpaces().
Referenced by convertStringToIntList(), and convertStringToStringList().
|
static |
Definition at line 603 of file dumperbase.cxx.
Referenced by convertStringToPair(), getToken(), and oox::dump::ConfigItemBase::readConfigLine().
|
static |
Definition at line 614 of file dumperbase.cxx.
Referenced by oox::dump::InputObjectBase::dumpCharArray(), and oox::dump::InputObjectBase::dumpUnicodeArray().