LibreOffice Module oox (master) 1
|
Static helpers for conversion of strings to attribute values of various different data types. More...
#include <attributelist.hxx>
Static Public Member Functions | |
static sal_Int32 | decodeToken (std::u16string_view rValue) |
Returns the XML token identifier from the passed string. More... | |
static OUString | decodeXString (const OUString &rValue) |
Returns the decoded string value. More... | |
static sal_Int32 | decodeInteger (std::u16string_view rValue) |
Returns the 32-bit signed integer value from the passed string (decimal). More... | |
static sal_uInt32 | decodeUnsigned (std::u16string_view rValue) |
Returns the 32-bit unsigned integer value from the passed string (decimal). More... | |
static sal_Int64 | decodeHyper (std::u16string_view rValue) |
Returns the 64-bit signed integer value from the passed string (decimal). More... | |
static sal_Int32 | decodeIntegerHex (std::u16string_view rValue) |
Returns the 32-bit signed integer value from the passed string (hexadecimal). More... | |
Static helpers for conversion of strings to attribute values of various different data types.
Definition at line 52 of file attributelist.hxx.
|
static |
Returns the 64-bit signed integer value from the passed string (decimal).
Definition at line 122 of file attributelist.cxx.
References o3tl::toInt64().
|
static |
Returns the 32-bit signed integer value from the passed string (decimal).
Definition at line 112 of file attributelist.cxx.
References o3tl::toInt32().
Referenced by oox::ole::AxFontDataModel::importProperty(), oox::ole::AxCommandButtonModel::importProperty(), oox::ole::AxLabelModel::importProperty(), oox::ole::AxImageModel::importProperty(), oox::ole::AxMorphDataModelBase::importProperty(), oox::ole::AxSpinButtonModel::importProperty(), and oox::ole::AxScrollBarModel::importProperty().
|
static |
Returns the 32-bit signed integer value from the passed string (hexadecimal).
Definition at line 127 of file attributelist.cxx.
References o3tl::toUInt32().
Referenced by oox::AttributeList::getIntegerHex().
|
static |
Returns the XML token identifier from the passed string.
Definition at line 91 of file attributelist.cxx.
References oox::TokenMap::getTokenFromUnicode().
Referenced by oox::vml::ConversionHelper::decodeBool(), oox::vml::ConversionHelper::decodeColor(), oox::drawingml::GetAdjCoordinate(), oox::AttributeList::getTokenList(), and oox::vml::ClientDataContext::onEndElement().
|
static |
Returns the 32-bit unsigned integer value from the passed string (decimal).
Definition at line 117 of file attributelist.cxx.
References SAL_MAX_UINT32, and o3tl::toInt64().
Referenced by oox::AttributeList::getUnsigned(), oox::ole::VbaSiteModel::importProperty(), oox::ole::AxFontDataModel::importProperty(), oox::ole::AxCommandButtonModel::importProperty(), oox::ole::AxLabelModel::importProperty(), oox::ole::AxImageModel::importProperty(), oox::ole::AxMorphDataModelBase::importProperty(), oox::ole::AxSpinButtonModel::importProperty(), and oox::ole::AxScrollBarModel::importProperty().
|
static |
Returns the decoded string value.
All characters in the format 'xHHHH' (H being a hexadecimal digit), will be decoded.
Definition at line 96 of file attributelist.cxx.
References aBuffer, comphelper::string::sanitizeStringSurrogates(), and u.
Referenced by oox::docprop::OOXMLDocPropHandler::characters(), and oox::AttributeList::getXString().