GSoC - implement global tokenhandler for odf-tokens

Desktop / LibreOffice - Daniel Sikeler [gmail.com] - 16 August 2016 15:31 UTC

This generates perfect hash for odf-tokens and use them with the tokenhandler. With added test case to check to and fro mapping between tokens. This is taken from Daniel's work in feature/fastparser branch.

Change-Id: I7cf77c1eb6c9dd68fd78108c6e0726507c7672e1 Reviewed-on: https://gerrit.libreoffice.org/28073

f577a422 GSoC - implement global tokenhandler for odf-tokens
include/xmloff/fasttokenhandler.hxx | 88 +
xmloff/CppunitTest_xmloff_tokenmap.mk | 44 +
xmloff/CustomTarget_generated.mk | 26 +
xmloff/Library_xo.mk | 2 +
xmloff/Module_xmloff.mk | 2 +
xmloff/qa/unit/tokenmap-test.cxx | 54 +
xmloff/source/core/fasttokenhandler.cxx | 102 ++
xmloff/source/token/tokens.hxx.head | 15 +
xmloff/source/token/tokens.hxx.tail | 6 +
xmloff/source/token/tokens.txt | 2815 +++++++++++++++++++++++++++++++
10 files changed, 3154 insertions(+)

Upstream: cgit.freedesktop.org


  • Share