Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QXmlUtils Class Reference

This class contains helper functions related to XML, for validating character classes, productions in the XML specification, and so on. More...

#include <qxmlutils_p.h>

Collaboration diagram for QXmlUtils:

Static Public Member Functions

static bool isEncName (QStringView encName)
static bool isChar (const char32_t c)
static bool isNameChar (const QChar c)
static bool isLetter (const QChar c)
static bool isNCName (QStringView ncName)
static bool isPublicID (QStringView candidate)

Detailed Description

This class contains helper functions related to XML, for validating character classes, productions in the XML specification, and so on.

Definition at line 33 of file qxmlutils_p.h.

Member Function Documentation

◆ isChar()

bool QXmlUtils::isChar ( const char32_t c)
static

Determines whether c is a valid instance of production [2]Char in the XML 1.0 specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml/#NT-Char}, {Extensible Markup Language (XML) 1.0 (Fourth Edition), [2] Char}

Definition at line 239 of file qxmlutils.cpp.

◆ isEncName()

bool QXmlUtils::isEncName ( QStringView encName)
static

Determines whether encName is a valid instance of production [81]EncName in the XML 1.0 specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml/#NT-EncName}, {Extensible Markup Language (XML) 1.0 (Fourth Edition), [81] EncName}

Definition at line 199 of file qxmlutils.cpp.

◆ isLetter()

bool QXmlUtils::isLetter ( const QChar c)
static

Determines whether c is a valid instance of production [84]Letter in the XML 1.0 specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml/#NT-Letter}, {Extensible Markup Language (XML) 1.0 (Fourth Edition), [84] Letter}

Definition at line 225 of file qxmlutils.cpp.

◆ isNameChar()

bool QXmlUtils::isNameChar ( const QChar c)
static

Determines whether c is a valid instance of production [4]NameChar in the XML 1.0 specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml/#NT-NameChar}, {Extensible Markup Language (XML) 1.0 (Fourth Edition), [4] NameChar}

Definition at line 261 of file qxmlutils.cpp.

◆ isNCName()

bool QXmlUtils::isNCName ( QStringView ncName)
static

Determines whether c is a valid instance of production [4]NCName in the XML 1.0 Namespaces specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml-names/#NT-NCName}, {W3CNamespaces in XML 1.0 (Second Edition), [4] NCName}

Definition at line 336 of file qxmlutils.cpp.

◆ isPublicID()

bool QXmlUtils::isPublicID ( QStringView candidate)
static

Determines whether c is a valid instance of production [12] PubidLiteral in the XML 1.0 specification. If it is, true is returned, otherwise false.

See also
{http://www.w3.org/TR/REC-xml/#NT-PubidLiteral}, {Extensible Markup Language (XML) 1.0 (Fourth Edition), [12] PubidLiteral}

Definition at line 284 of file qxmlutils.cpp.


The documentation for this class was generated from the following files: