LibreOffice Module oox (master) 1
Static Public Member Functions | List of all members
oox::AttributeConversion Class Reference

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...
 

Detailed Description

Static helpers for conversion of strings to attribute values of various different data types.

Definition at line 52 of file attributelist.hxx.

Member Function Documentation

◆ decodeHyper()

sal_Int64 oox::AttributeConversion::decodeHyper ( std::u16string_view  rValue)
static

Returns the 64-bit signed integer value from the passed string (decimal).

Definition at line 122 of file attributelist.cxx.

References o3tl::toInt64().

◆ decodeInteger()

sal_Int32 oox::AttributeConversion::decodeInteger ( std::u16string_view  rValue)
static

◆ decodeIntegerHex()

sal_Int32 oox::AttributeConversion::decodeIntegerHex ( std::u16string_view  rValue)
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().

◆ decodeToken()

sal_Int32 oox::AttributeConversion::decodeToken ( std::u16string_view  rValue)
static

◆ decodeUnsigned()

sal_uInt32 oox::AttributeConversion::decodeUnsigned ( std::u16string_view  rValue)
static

◆ decodeXString()

OUString oox::AttributeConversion::decodeXString ( const OUString &  rValue)
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().


The documentation for this class was generated from the following files: