12#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
15#include <xmloff/token/tokens.hxx>
30 SAL_WARN_IF(nToken < 0 || nToken >= XML_TOKEN_COUNT,
"xmloff",
"Wrong nToken parameter");
38 SAL_WARN_IF(nToken < 0 || nToken >= XML_TOKEN_COUNT,
"xmloff",
"Wrong nToken parameter");
48 rUtf8Name.getConstArray() ), rUtf8Name.getLength() );
78 virtual sal_Int32 SAL_CALL
getTokenFromUTF8(
const css::uno::Sequence< sal_Int8 >& Identifier )
override;
virtual sal_Int32 getTokenDirect(const char *pToken, sal_Int32 nLength) const override
const OUString & getIdentifier(sal_Int32 nToken) const
virtual ~FastTokenHandler() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getUTF8Identifier(sal_Int32 nToken) override
virtual sal_Int32 SAL_CALL getTokenFromUTF8(const css::uno::Sequence< sal_Int8 > &Identifier) override
css::uno::Sequence< sal_Int8 > const & getUtf8TokenName(sal_Int32 nToken) const
Returns the UTF-8 name of the passed token identifier as byte sequence.
const OUString & getTokenName(sal_Int32 nToken) const
static sal_Int32 getTokenFromUtf8(const css::uno::Sequence< sal_Int8 > &rUtf8Name)
Returns the token identifier for the passed UTF-8 token name.
static sal_Int32 getTokenPerfectHash(const char *pToken, sal_Int32 nLength)
static const OUString EMPTY_STRING
static const css::uno::Sequence< sal_Int8 > EMPTY_BYTE_SEQ
std::vector< css::uno::Sequence< sal_Int8 > > maTokenNamesUtf8
static sal_Int32 getTokenFromUTF8(const char *pToken, sal_Int32 nLength)
Returns the token identifier for a UTF-8 string.
std::vector< OUString > maTokenNames
#define SAL_WARN_IF(condition, area, stream)
Handling of tokens in XML:
TokenMap & StaticTokenMap()