Qt 4.8
|
Implements the value instance of the xs:string
type.
More...
#include <qatomicstring_p.h>
Public Types | |
typedef AtomicValue::Ptr | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &) const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | hasError () const |
virtual | ~AtomicValue () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
const TCastTarget * | as () const |
TCastTarget * | as () |
Static Public Functions | |
static AtomicString::Ptr | fromValue (const QString &value) |
static AtomicString::Ptr | fromValue (const QUrl &value) |
Static Public Functions inherited from QPatternist::AtomicValue | |
static ItemType::Ptr | qtToXDMType (const QXmlItem &item) |
static QVariant | toQt (const AtomicValue *const value) |
static QVariant | toQt (const AtomicValue::Ptr &value) |
static Item | toXDM (const QVariant &value) |
Protected Functions | |
AtomicString (const QString &value) | |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Protected Variables | |
const QString | m_value |
Friends | |
class | CommonValues |
class | CompareFN |
class | StringComparator |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Implements the value instance of the xs:string
type.
This class was originally called String, and correspondingly the header file was called String.h. However, this broke building on OS X, which looks up file names case insensitively, and therefore found string.h.
Definition at line 77 of file qatomicstring_p.h.
Definition at line 82 of file qatomicstring_p.h.
|
protected |
|
virtual |
Get the Effective Boolean Value of this string. A zero-length string has an effective boolean value of false
, in all other cases true
.
false
if the contained string has a zero-length, otherwise true
. Reimplemented from QPatternist::AtomicValue.
Definition at line 59 of file qatomicstring.cpp.
|
static |
Creates an instance representing value
.
Definition at line 54 of file qatomicstring.cpp.
Referenced by QPatternist::InScopePrefixesFN::evaluateSequence(), QPatternist::UnparsedEntityPublicIDFN::evaluateSingleton(), QPatternist::SystemPropertyFN::evaluateSingleton(), QPatternist::XSLTSimpleContentConstructor::evaluateSingleton(), QPatternist::GenerateIDFN::evaluateSingleton(), QPatternist::SimpleContentConstructor::evaluateSingleton(), QPatternist::NCNameConstructor::evaluateSingleton(), QPatternist::NameFN::evaluateSingleton(), QPatternist::CodepointsToStringFN::evaluateSingleton(), QPatternist::ConcatFN::evaluateSingleton(), QPatternist::LocalNameFN::evaluateSingleton(), QPatternist::ReplaceFN::evaluateSingleton(), QPatternist::StringJoinFN::evaluateSingleton(), QPatternist::StringFN::evaluateSingleton(), QPatternist::PrefixFromQNameFN::evaluateSingleton(), QPatternist::SubstringFN::evaluateSingleton(), QPatternist::SubstringBeforeFN::evaluateSingleton(), QPatternist::LocalNameFromQNameFN::evaluateSingleton(), QPatternist::SubstringAfterFN::evaluateSingleton(), QPatternist::NormalizeSpaceFN::evaluateSingleton(), QPatternist::NormalizeUnicodeFN::evaluateSingleton(), QPatternist::UpperCaseFN::evaluateSingleton(), QPatternist::LowerCaseFN::evaluateSingleton(), QPatternist::TranslateFN::evaluateSingleton(), QPatternist::EncodeString::evaluateSingleton(), QPatternist::ValueFactory::fromLexical(), QPatternist::StringListIterator::inputToOutputItem(), QPatternist::TokenizeFN::mapToItem(), QPatternist::AccelTreeResourceLoader::openUnparsedText(), QPatternist::AccelTree::sequencedTypedValue(), QPatternist::AtomicValue::toXDM(), QPatternist::DefaultCollationFN::typeCheck(), and QPatternist::yyparse().
|
inlinestatic |
Definition at line 91 of file qatomicstring_p.h.
|
virtual |
The string value of a AtomicString instance is the value space.
Implements QPatternist::AtomicValue.
Definition at line 64 of file qatomicstring.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Reimplemented in QPatternist::AnyURI, and QPatternist::UntypedAtomic.
Definition at line 69 of file qatomicstring.cpp.
|
friend |
Definition at line 80 of file qatomicstring_p.h.
Definition at line 113 of file qatomicstring_p.h.
|
friend |
Definition at line 112 of file qatomicstring_p.h.
|
protected |
Definition at line 115 of file qatomicstring_p.h.
Referenced by evaluateEBV(), stringValue(), and QPatternist::AnyURI::toQUrl().