20#ifndef INCLUDED_OOX_TOKEN_TOKENMAP_HXX
21#define INCLUDED_OOX_TOKEN_TOKENMAP_HXX
28#include <com/sun/star/uno/Sequence.hxx>
29#include <oox/token/tokens.hxx>
31#include <rtl/ustring.hxx>
48 css::uno::Sequence< sal_Int8 >
const &
51 SAL_WARN_IF(nToken < 0 || nToken >= XML_TOKEN_COUNT,
"oox",
"Wrong nToken parameter");
59 const css::uno::Sequence< sal_Int8 >& rUtf8Name )
const
62 rUtf8Name.getConstArray() ),
63 rUtf8Name.getLength() );
73 if (c >=
'a' && c <=
'z')
83 std::vector< css::uno::Sequence< sal_Int8 > >
css::uno::Sequence< sal_Int8 > const & getUtf8TokenName(sal_Int32 nToken) const
Returns the UTF8 name of the passed token identifier as byte sequence.
sal_Int32 getTokenFromUtf8(const css::uno::Sequence< sal_Int8 > &rUtf8Name) const
Returns the token identifier for the passed UTF8 token name.
std::vector< css::uno::Sequence< sal_Int8 > > maTokenNames
static sal_Int32 getTokenFromUnicode(std::u16string_view rUnicodeName)
Returns the token identifier for the passed Unicode token name.
sal_Int32 getTokenFromUTF8(const char *pToken, sal_Int32 nLength) const
Returns the token identifier for a UTF8 string passed in pToken.
sal_Int32 mnAlphaTokens[26]
static sal_Int32 getTokenPerfectHash(const char *pToken, sal_Int32 nLength)
static const css::uno::Sequence< sal_Int8 > EMPTY_BYTE_SEQ
#define SAL_WARN_IF(condition, area, stream)
TokenMap & StaticTokenMap()