LibreOffice Module sax (master) 1
Classes | Namespaces | Macros | Functions
fastparser.cxx File Reference
#include <sax/fastparser.hxx>
#include <sax/fastattribs.hxx>
#include <utility>
#include <xml2utf.hxx>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/xml/sax/FastToken.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <com/sun/star/xml/sax/XFastContextHandler.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/conditn.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <salhelper/thread.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <o3tl/string_view.hxx>
#include <queue>
#include <memory>
#include <mutex>
#include <optional>
#include <stack>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <cassert>
#include <cstring>
#include <libxml/parser.h>
Include dependency graph for fastparser.cxx:

Go to the source code of this file.

Classes

class  sax_fastparser::FastSaxParserImpl
 

Namespaces

namespace  sax_fastparser
 

Macros

#define XML_CAST(str)   reinterpret_cast< const char* >( str )
 

Functions

static void NormalizeURI (OUString &rName)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_extensions_xml_sax_FastParser_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 
static bool NormalizeW3URI (OUString &rName)
 
static bool NormalizeOasisURN (OUString &rName)
 
constexpr OUStringLiteral XML_URI_W3_PREFIX (u"http://www.w3.org/")
 
constexpr OUStringLiteral XML_URI_XFORMS_SUFFIX (u"/xforms")
 
constexpr OUStringLiteral XML_N_XFORMS_1_0 (u"http://www.w3.org/2002/xforms")
 
constexpr OUStringLiteral XML_N_SVG (u"http://www.w3.org/2000/svg")
 
constexpr OUStringLiteral XML_N_SVG_COMPAT (u"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0")
 
constexpr OUStringLiteral XML_N_FO (u"http://www.w3.org/1999/XSL/Format")
 
constexpr OUStringLiteral XML_N_FO_COMPAT (u"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0")
 
constexpr OUStringLiteral XML_N_SMIL (u"http://www.w3.org/2001/SMIL20/")
 
constexpr OUStringLiteral XML_N_SMIL_OLD (u"http://www.w3.org/2001/SMIL20")
 
constexpr OUStringLiteral XML_N_SMIL_COMPAT (u"urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0")
 
constexpr OUStringLiteral XML_URN_OASIS_NAMES_TC (u"urn:oasis:names:tc")
 
constexpr OUStringLiteral XML_XMLNS (u"xmlns")
 
constexpr OUStringLiteral XML_OPENDOCUMENT (u"opendocument")
 
constexpr OUStringLiteral XML_1_0 (u"1.0")
 

Macro Definition Documentation

◆ XML_CAST

#define XML_CAST (   str)    reinterpret_cast< const char* >( str )

Definition at line 56 of file fastparser.cxx.

Function Documentation

◆ com_sun_star_comp_extensions_xml_sax_FastParser_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_extensions_xml_sax_FastParser_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1536 of file fastparser.cxx.

◆ NormalizeOasisURN()

static bool NormalizeOasisURN ( OUString &  rName)
static

◆ NormalizeURI()

static void NormalizeURI ( OUString &  rName)
static

◆ NormalizeW3URI()

static bool NormalizeW3URI ( OUString &  rName)
static

Definition at line 1573 of file fastparser.cxx.

References XML_N_XFORMS_1_0(), XML_URI_W3_PREFIX(), and XML_URI_XFORMS_SUFFIX().

Referenced by NormalizeURI().

◆ XML_1_0()

constexpr OUStringLiteral XML_1_0 ( u"1.0"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_FO()

constexpr OUStringLiteral XML_N_FO ( u"http://www.w3.org/1999/XSL/Format"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_FO_COMPAT()

constexpr OUStringLiteral XML_N_FO_COMPAT ( u"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_SMIL()

constexpr OUStringLiteral XML_N_SMIL ( u"http://www.w3.org/2001/SMIL20/"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_SMIL_COMPAT()

constexpr OUStringLiteral XML_N_SMIL_COMPAT ( u"urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_SMIL_OLD()

constexpr OUStringLiteral XML_N_SMIL_OLD ( u"http://www.w3.org/2001/SMIL20"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_SVG()

constexpr OUStringLiteral XML_N_SVG ( u"http://www.w3.org/2000/svg"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_SVG_COMPAT()

constexpr OUStringLiteral XML_N_SVG_COMPAT ( u"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_N_XFORMS_1_0()

constexpr OUStringLiteral XML_N_XFORMS_1_0 ( u"http://www.w3.org/2002/xforms"  )
constexpr

Referenced by NormalizeW3URI().

◆ XML_OPENDOCUMENT()

constexpr OUStringLiteral XML_OPENDOCUMENT ( u"opendocument"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_URI_W3_PREFIX()

constexpr OUStringLiteral XML_URI_W3_PREFIX ( u"http://www.w3.org/"  )
constexpr

Referenced by NormalizeW3URI().

◆ XML_URI_XFORMS_SUFFIX()

constexpr OUStringLiteral XML_URI_XFORMS_SUFFIX ( u"/xforms"  )
constexpr

Referenced by NormalizeW3URI().

◆ XML_URN_OASIS_NAMES_TC()

constexpr OUStringLiteral XML_URN_OASIS_NAMES_TC ( u"urn:oasis:names:tc"  )
constexpr

Referenced by NormalizeOasisURN().

◆ XML_XMLNS()

constexpr OUStringLiteral XML_XMLNS ( u"xmlns"  )
constexpr

Referenced by NormalizeOasisURN().

Variable Documentation

◆ m_rEntity

Entity& m_rEntity
private

Definition at line 766 of file fastparser.cxx.

◆ m_rParser

FastSaxParserImpl& m_rParser
private

Definition at line 765 of file fastparser.cxx.

◆ m_xParser

rtl::Reference<ParserThread> m_xParser
private

Definition at line 767 of file fastparser.cxx.