52 #ifndef Patternist_Locale_H 53 #define Patternist_Locale_H 55 #include <QCoreApplication> 164 escape(type->displayName(np)) +
174 escape(np->displayName(name)) +
196 return QLatin1String(
"<span class='XQuery-filepath'><a href='") +
224 const QUrl realURI(uri);
272 #ifdef Q_NO_TYPESAFE_FLAGS 273 #error "Patternist does not compile with Q_NO_TYPESAFE_FLAGS set, because the code uses negative enum values. qglobal.h has typedef uint Flags." 276 #ifdef QT_NO_EXCEPTIONS 277 #error "Patternist uses exceptions and cannot be built without." static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString toString() const
Returns a copy of the string reference as a QString object.
QString Q_AUTOTEST_EXPORT escape(const QString &input)
Similar to Qt::escape(), but also escapes apostrophes and quotes, such that the result is suitable as...
#define QT_END_NAMESPACE
This macro expands to.
static QString formatResourcePath(const QUrl &uri)
Formats uri as a path to a resource, typically it's a filename or a URI.
QString displayName(const CustomizeDisplayName explanation) const
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
QString formatKeyword(const QString &keyword)
Provides a translation context & functions for the QtXmlPatterns module.
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QString formatElement(const QString &element)
Formats element name.
The namespace for the internal API of QtXmlPatterns.
static const char * data(const QByteArray &arr)
static QString formatData(const QString &data)
The QStringRef class provides a thin wrapper around QString substrings.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
static QString formatExpression(const QString &expr)
Contains enumerators and typedefs applying for Patternist on a global scale, as well as central docum...
Represents a cardinality, a possible , often represented by occurrence indicators.
static QString formatURI(const NamePool::Ptr &np, const QXmlName::NamespaceCode &uri)
Formats uri, that's considered to be a URI, for display.
static QString formatAttribute(const QString &attribute)
Formats attribute name.
#define Q_DECLARE_TR_FUNCTIONS(context)
The Q_DECLARE_TR_FUNCTIONS() macro declares and implements two translation functions, tr() and trUtf8(), with these signatures:
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.