Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 32 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 238 of file qxmlutils.cpp.

Referenced by fixedCharData().

+ Here is the caller graph for this function:

◆ 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 198 of file qxmlutils.cpp.

References ch, QtMiscUtils::isAsciiLetterOrNumber(), QtMiscUtils::isAsciiLower(), and QtMiscUtils::isAsciiUpper().

+ Here is the call graph for this function:

◆ 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 224 of file qxmlutils.cpp.

Referenced by fixedXmlName(), and isNCName().

+ Here is the caller graph for this function:

◆ 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 260 of file qxmlutils.cpp.

Referenced by fixedXmlName(), and isNCName().

+ Here is the caller graph for this function:

◆ 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 335 of file qxmlutils.cpp.

References at, isLetter(), and isNameChar().

+ Here is the call graph for this function:

◆ 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 283 of file qxmlutils.cpp.

References ch, and QtMiscUtils::isAsciiLetterOrNumber().

Referenced by fixedPubidLiteral().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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