LibreOffice Module sax (master) 1
|
#include "fastserializer.hxx"
#include <com/sun/star/xml/sax/FastTokenHandler.hpp>
#include <rtl/math.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <cassert>
#include <optional>
#include <string.h>
#include <string_view>
#include <utility>
#include <iostream>
#include <set>
Go to the source code of this file.
Namespaces | |
namespace | sax_fastparser |
Macros | |
#define | HAS_NAMESPACE(x) ((x & 0xffff0000) != 0) |
#define | NAMESPACE(x) (x >> 16) |
#define | TOKEN(x) (x & 0xffff) |
#define | N_CHARS(string) (SAL_N_ELEMENTS(string) - 1) |
Functions | |
template<typename Int > | |
static std::optional< std::pair< unsigned, Int > > | sax_fastparser::invalidChar (char const *string, Int length, Int index) |
Characters not allowed in XML 1.0 XML 1.1 would exclude only U+0000. More... | |
static bool | sax_fastparser::isHexDigit (char c) |
static void | sax_fastparser::lcl_DebugMergeAppend (std::deque< sal_Int32 > &rLeftEndedElements, std::deque< sal_Int32 > &rLeftStartedElements, std::deque< sal_Int32 > &rRightEndedElements, std::deque< sal_Int32 > &rRightStartedElements) |
static void | sax_fastparser::lcl_DebugMergePrepend (std::deque< sal_Int32 > &rLeftEndedElements, std::deque< sal_Int32 > &rLeftStartedElements, std::deque< sal_Int32 > &rRightEndedElements, std::deque< sal_Int32 > &rRightStartedElements) |
Variables | |
const char | sClosingBracket [] = ">" |
const char | sSlashAndClosingBracket [] = "/>" |
constexpr OStringLiteral | sColon = ":" |
const char | sOpeningBracket [] = "<" |
const char | sOpeningBracketAndSlash [] = "</" |
const char | sQuote [] = "\"" |
const char | sEqualSignAndQuote [] = "=\"" |
const char | sSpace [] = " " |
const char | sXmlHeader [] = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" |
Definition at line 43 of file fastserializer.cxx.
#define N_CHARS | ( | string | ) | (SAL_N_ELEMENTS(string) - 1) |
Definition at line 47 of file fastserializer.cxx.
Definition at line 44 of file fastserializer.cxx.
Definition at line 45 of file fastserializer.cxx.
const char sClosingBracket[] = ">" |
Definition at line 49 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::endFastElement(), and sax_fastparser::FastSaxSerializer::startFastElement().
|
constexpr |
Definition at line 51 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::getId(), and sax_fastparser::FastSaxSerializer::writeId().
const char sEqualSignAndQuote[] = "=\"" |
Definition at line 55 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::writeFastAttributeList(), and sax_fastparser::FastSaxSerializer::writeTokenValueList().
const char sOpeningBracket[] = "<" |
Definition at line 52 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::singleFastElement(), and sax_fastparser::FastSaxSerializer::startFastElement().
const char sOpeningBracketAndSlash[] = "</" |
Definition at line 53 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::endFastElement().
const char sQuote[] = "\"" |
Definition at line 54 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::writeFastAttributeList(), and sax_fastparser::FastSaxSerializer::writeTokenValueList().
const char sSlashAndClosingBracket[] = "/>" |
Definition at line 50 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::singleFastElement().
const char sSpace[] = " " |
Definition at line 56 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::writeFastAttributeList(), and sax_fastparser::FastSaxSerializer::writeTokenValueList().
const char sXmlHeader[] = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" |
Definition at line 57 of file fastserializer.cxx.
Referenced by sax_fastparser::FastSaxSerializer::startDocument().