LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XFastTokenHandler Interface Reference

interface to translate XML strings to integer tokens. More...

import"XFastTokenHandler.idl";

Inheritance diagram for XFastTokenHandler:
XInterface FastTokenHandler

Public Member Functions

long getTokenFromUTF8 ([in] sequence< byte > Identifier)
 returns an integer token for the given string More...
 
sequence< byte > getUTF8Identifier ([in] long Token)
 returns an identifier for the given integer token as a byte sequence encoded in UTF-8. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

interface to translate XML strings to integer tokens.

An instance of this interface can be registered at a XFastParser. It should be able to translate all XML names (element local names, attribute local names and constant attribute values) to integer tokens.

A token value must be greater or equal to zero and less than FastToken::NAMESPACE. If a string identifier is not known to this instance, FastToken::DONTKNOW is returned.

Member Function Documentation

◆ getTokenFromUTF8()

long getTokenFromUTF8 ( [in] sequence< byte >  Identifier)

returns an integer token for the given string

Parameters
Identifierthe string given as a byte sequence encoded in UTF-8
Returns
a unique integer token for the given String or FastToken::DONTKNOW if the identifier is not known to this instance.

◆ getUTF8Identifier()

sequence< byte > getUTF8Identifier ( [in] long  Token)

returns an identifier for the given integer token as a byte sequence encoded in UTF-8.


The documentation for this interface was generated from the following file: