103 const Item &o2)
const 108 return s1.
length() == s2.length() &&
115 const Item &o2)
const 126 const Item &o2)
const 141 Q_ASSERT(v1 ==
true && v2 ==
false);
147 const Item &o2)
const 158 const Item &o2)
const 184 const Item &o2)
const 194 const Item &o2)
const 208 const Item &o2)
const 218 const Item &o2)
const 235 if(num1->
isSigned() || num2->isSigned())
262 const Item &o2)
const 271 const Item &o2)
const 280 const Item &o2)
const 300 const Item &operand2)
const 316 const Item &o2)
const 331 result = result.
addYears(signMultiplier * duration->
years());
333 result = result.
addDays(signMultiplier * duration->
days());
335 seconds = 60 * 60 * duration->
hours();
336 seconds += 60 * duration->
minutes();
337 seconds += duration->
seconds();
339 result = result.
addSecs(signMultiplier * seconds);
348 const Item &o2)
const 358 const QDateTime durationDateTime1 = addDurationToDateTime(dateTime1, duration);
359 const QDateTime durationDateTime2 = addDurationToDateTime(dateTime2, duration);
360 const QDateTime durationDateTime3 = addDurationToDateTime(dateTime3, duration);
361 const QDateTime durationDateTime4 = addDurationToDateTime(dateTime4, duration);
363 const QDateTime otherDurationDateTime1 = addDurationToDateTime(dateTime1, otherDuration);
364 const QDateTime otherDurationDateTime2 = addDurationToDateTime(dateTime2, otherDuration);
365 const QDateTime otherDurationDateTime3 = addDurationToDateTime(dateTime3, otherDuration);
366 const QDateTime otherDurationDateTime4 = addDurationToDateTime(dateTime4, otherDuration);
368 if (durationDateTime1 > otherDurationDateTime1 &&
369 durationDateTime2 > otherDurationDateTime2 &&
370 durationDateTime3 > otherDurationDateTime3 &&
371 durationDateTime4 > otherDurationDateTime4) {
373 }
else if (durationDateTime1 < otherDurationDateTime1 &&
374 durationDateTime2 < otherDurationDateTime2 &&
375 durationDateTime3 < otherDurationDateTime3 &&
376 durationDateTime4 < otherDurationDateTime4) {
378 }
else if (*duration == *otherDuration) {
QDateTime addSecs(int secs) const
Returns a QDateTime object containing a datetime s seconds later than the datetime of this object (or...
virtual bool equals(const Item &op1, const Item &op2) const
virtual SecondProperty seconds() const =0
virtual bool equals(const Item &op1, const Item &op2) const
#define QT_END_NAMESPACE
This macro expands to.
Base class for classes implementing durations.
Base class for classes implementing values related to time, date or both.
virtual xsFloat toDecimal() const =0
virtual MinuteProperty minutes() const =0
int length() const
Returns the number of characters in this string.
virtual bool equals(const Item &op1, const Item &op2) const
The QDate class provides date functions.
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
The QString class provides a Unicode character string.
virtual bool equals(const Item &op1, const Item &op2) const
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
virtual bool isSigned() const =0
Returns true if this value is signed. If false is returned, the value is unsigned.
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
virtual MonthProperty months() const =0
virtual bool equals(const Item &op1, const Item &op2) const
QDateTime addYears(int years) const
Returns a QDateTime object containing a datetime nyears years later than the datetime of this object ...
The QTime class provides clock time functions.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
virtual DayCountProperty days() const =0
Base class for all classes representing atomic values.
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
The namespace for the internal API of QtXmlPatterns.
QString stringValue() const
Returns the string value of this Item.
QDateTime addMonths(int months) const
Returns a QDateTime object containing a datetime nmonths months later than the datetime of this objec...
const QDateTime & toDateTime() const
virtual HourProperty hours() const =0
QDateTime addMSecs(qint64 msecs) const
Returns a QDateTime object containing a datetime msecs miliseconds later than the datetime of this ob...
virtual bool equals(const Item &op1, const Item &op2) const
virtual YearProperty years() const =0
virtual bool equals(const Item &op1, const Item &op2) const
QDateTime addDays(int days) const
Returns a QDateTime object containing a datetime ndays days later than the datetime of this object (o...
int compare(const QString &s) const
The QDateTime class provides date and time functions.
Represents an item in the XPath 2.0 Data Model.
static bool isEqual(const xsDouble a, const xsDouble b)
virtual bool equals(const Item &op1, const Item &op2) const
Base class for all numeric values.
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
Qt::TimeSpec timeSpec() const
Returns the time specification of the datetime.
Implements the value instance of the xs:QName type.
virtual xsDouble toDouble() const =0
virtual bool equals(const Item &op1, const Item &op2) const
static qreal toDouble(const QChar *&str)
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
virtual bool equals(const Item &op1, const Item &op2) const
static QDateTime addDurationToDateTime(const QDateTime &dateTime, const AbstractDuration *const duration)
Implements the value instance of the xs:base64Binary type.
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
virtual ComparisonResult compare(const Item &op1, const AtomicComparator::Operator op, const Item &op2) const
Contains all the classes implementing comparisons between atomic values.
virtual MSecondProperty mseconds() const =0