LibreOffice Module oox (master) 1
|
#include <tokenmap.hxx>
Public Member Functions | |
TokenMap () | |
~TokenMap () | |
css::uno::Sequence< sal_Int8 > const & | getUtf8TokenName (sal_Int32 nToken) const |
Returns the UTF8 name of the passed token identifier as byte sequence. More... | |
sal_Int32 | getTokenFromUtf8 (const css::uno::Sequence< sal_Int8 > &rUtf8Name) const |
Returns the token identifier for the passed UTF8 token name. More... | |
sal_Int32 | getTokenFromUTF8 (const char *pToken, sal_Int32 nLength) const |
Returns the token identifier for a UTF8 string passed in pToken. More... | |
Static Public Member Functions | |
static sal_Int32 | getTokenFromUnicode (std::u16string_view rUnicodeName) |
Returns the token identifier for the passed Unicode token name. More... | |
Static Private Member Functions | |
static sal_Int32 | getTokenPerfectHash (const char *pToken, sal_Int32 nLength) |
Private Attributes | |
std::vector< css::uno::Sequence< sal_Int8 > > | maTokenNames |
sal_Int32 | mnAlphaTokens [26] |
Static Private Attributes | |
static const css::uno::Sequence< sal_Int8 > | EMPTY_BYTE_SEQ |
Definition at line 38 of file tokenmap.hxx.
|
explicit |
Definition at line 47 of file tokenmap.cxx.
References maTokenNames, mnAlphaTokens, and XML_TOKEN_INVALID.
oox::TokenMap::~TokenMap | ( | ) |
Definition at line 73 of file tokenmap.cxx.
|
static |
Returns the token identifier for the passed Unicode token name.
Definition at line 77 of file tokenmap.cxx.
References OUStringToOString(), and XML_TOKEN_INVALID.
Referenced by oox::AttributeConversion::decodeToken(), and oox::drawingml::CustomShapeProperties::initializePresetDataMap().
|
inline |
Returns the token identifier for a UTF8 string passed in pToken.
Definition at line 67 of file tokenmap.hxx.
References getTokenPerfectHash(), mnAlphaTokens, and nLength.
Referenced by oox::core::FastTokenHandler::getTokenDirect(), and getTokenFromUtf8().
|
inline |
Returns the token identifier for the passed UTF8 token name.
Definition at line 58 of file tokenmap.hxx.
References getTokenFromUTF8().
|
staticprivate |
Definition at line 84 of file tokenmap.cxx.
References nLength, and XML_TOKEN_INVALID.
Referenced by getTokenFromUTF8().
|
inline |
Returns the UTF8 name of the passed token identifier as byte sequence.
Definition at line 49 of file tokenmap.hxx.
References EMPTY_BYTE_SEQ, maTokenNames, nToken, and SAL_WARN_IF.
Referenced by oox::drawingml::CustomShapeProperties::getShapePresetTypeName(), oox::core::FastTokenHandler::getUTF8Identifier(), and oox::drawingml::table::TableCell::pushToXCell().
|
staticprivate |
Definition at line 81 of file tokenmap.hxx.
Referenced by getUtf8TokenName().
|
private |
Definition at line 84 of file tokenmap.hxx.
Referenced by getUtf8TokenName(), and TokenMap().
|
private |
Definition at line 85 of file tokenmap.hxx.
Referenced by getTokenFromUTF8(), and TokenMap().