diff options
Diffstat (limited to 'src/tools/qregexp.cpp')
-rw-r--r-- | src/tools/qregexp.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/tools/qregexp.cpp b/src/tools/qregexp.cpp index 7d4946d..5b990f8 100644 --- a/src/tools/qregexp.cpp +++ b/src/tools/qregexp.cpp @@ -1516,49 +1516,49 @@ void QRegExpEngine::heuristicallyChooseHeuristic() void QRegExpEngine::dump() const { int i, j; - tqDebug( "Case %ssensitive engine", cs ? "" : "in" ); - tqDebug( " States" ); + qDebug( "Case %ssensitive engine", cs ? "" : "in" ); + qDebug( " States" ); for ( i = 0; i < ns; i++ ) { - tqDebug( " %d%s", i, + qDebug( " %d%s", i, i == InitialState ? " (initial)" : i == FinalState ? " (final)" : "" ); #ifndef QT_NO_REGEXP_CAPTURE - tqDebug( " in atom %d", s[i]->atom ); + qDebug( " in atom %d", s[i]->atom ); #endif int m = s[i]->match; if ( (m & CharClassBit) != 0 ) { - tqDebug( " match character class %d", m ^ CharClassBit ); + qDebug( " match character class %d", m ^ CharClassBit ); #ifndef QT_NO_REGEXP_CCLASS cl[m ^ CharClassBit]->dump(); #else - tqDebug( " negative character class" ); + qDebug( " negative character class" ); #endif } else if ( (m & BackRefBit) != 0 ) { - tqDebug( " match back-reference %d", m ^ BackRefBit ); + qDebug( " match back-reference %d", m ^ BackRefBit ); } else if ( m >= 0x20 && m <= 0x7e ) { - tqDebug( " match 0x%.4x (%c)", m, m ); + qDebug( " match 0x%.4x (%c)", m, m ); } else { - tqDebug( " match 0x%.4x", m ); + qDebug( " match 0x%.4x", m ); } for ( j = 0; j < (int) s[i]->outs.size(); j++ ) { int next = s[i]->outs[j]; - tqDebug( " -> %d", next ); + qDebug( " -> %d", next ); if ( s[i]->reenter != 0 && s[i]->reenter->contains(next) ) - tqDebug( " [reenter %d]", (*s[i]->reenter)[next] ); + qDebug( " [reenter %d]", (*s[i]->reenter)[next] ); if ( s[i]->anchors != 0 && at(*s[i]->anchors, next) != 0 ) - tqDebug( " [anchors 0x%.8x]", (*s[i]->anchors)[next] ); + qDebug( " [anchors 0x%.8x]", (*s[i]->anchors)[next] ); } } #ifndef QT_NO_REGEXP_CAPTURE if ( nf > 0 ) { - tqDebug( " Atom Parent Capture" ); + qDebug( " Atom Parent Capture" ); for ( i = 0; i < nf; i++ ) - tqDebug( " %6d %6d %6d", i, f[i].parent, f[i].capture ); + qDebug( " %6d %6d %6d", i, f[i].parent, f[i].capture ); } #endif #ifndef QT_NO_REGEXP_ANCHOR_ALT for ( i = 0; i < (int) aa.size(); i++ ) - tqDebug( " Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a, + qDebug( " Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a, aa[i].b ); #endif } @@ -2290,13 +2290,13 @@ bool QRegExpEngine::CharClass::in( QChar ch ) const void QRegExpEngine::CharClass::dump() const { int i; - tqDebug( " %stive character class", n ? "nega" : "posi" ); + qDebug( " %stive character class", n ? "nega" : "posi" ); #ifndef QT_NO_REGEXP_CCLASS if ( c != 0 ) - tqDebug( " categories 0x%.8x", c ); + qDebug( " categories 0x%.8x", c ); #endif for ( i = 0; i < (int) r.size(); i++ ) - tqDebug( " 0x%.4x through 0x%.4x", r[i].from, r[i].to ); + qDebug( " 0x%.4x through 0x%.4x", r[i].from, r[i].to ); } #endif #endif @@ -2559,22 +2559,22 @@ void QRegExpEngine::Box::setupHeuristics() void QRegExpEngine::Box::dump() const { int i; - tqDebug( "Box of at least %d character%s", minl, minl == 1 ? "" : "s" ); - tqDebug( " Left states:" ); + qDebug( "Box of at least %d character%s", minl, minl == 1 ? "" : "s" ); + qDebug( " Left states:" ); for ( i = 0; i < (int) ls.size(); i++ ) { if ( at(lanchors, ls[i]) == 0 ) - tqDebug( " %d", ls[i] ); + qDebug( " %d", ls[i] ); else - tqDebug( " %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]] ); + qDebug( " %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]] ); } - tqDebug( " Right states:" ); + qDebug( " Right states:" ); for ( i = 0; i < (int) rs.size(); i++ ) { if ( at(ranchors, rs[i]) == 0 ) - tqDebug( " %d", rs[i] ); + qDebug( " %d", rs[i] ); else - tqDebug( " %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]] ); + qDebug( " %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]] ); } - tqDebug( " Skip anchors: 0x%.8x", skipanchors ); + qDebug( " Skip anchors: 0x%.8x", skipanchors ); } #endif |