summaryrefslogtreecommitdiffstats
path: root/kttsd/libkttsd/utils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 22:17:08 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 22:17:08 +0000
commitf138d74fe16092003b06f5bde9663841929cde7f (patch)
treee9c497a0e59bc7d34264ac9404740d2ea76f3de4 /kttsd/libkttsd/utils.cpp
parent3a3c4b256baee79bdcfe72c5e01b9ded9b525900 (diff)
downloadtdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.tar.gz
tdeaccessibility-f138d74fe16092003b06f5bde9663841929cde7f.zip
TQt4 port kdeaccessibility
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1237325 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kttsd/libkttsd/utils.cpp')
-rw-r--r--kttsd/libkttsd/utils.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kttsd/libkttsd/utils.cpp b/kttsd/libkttsd/utils.cpp
index ed9200b..df24e35 100644
--- a/kttsd/libkttsd/utils.cpp
+++ b/kttsd/libkttsd/utils.cpp
@@ -41,7 +41,7 @@ bool KttsUtils::hasRootElement(const TQString &xmldoc, const TQString &elementNa
if(doc.startsWith("<?xml")) {
// Look for ?> and strip everything off from there to the start - effectively removing
// <?xml...?>
- int xmlStatementEnd = doc.find("?>");
+ int xmlStatementEnd = doc.tqfind("?>");
if(xmlStatementEnd == -1) {
kdDebug() << "KttsUtils::hasRootElement: Bad XML file syntax\n";
return false;
@@ -51,7 +51,7 @@ bool KttsUtils::hasRootElement(const TQString &xmldoc, const TQString &elementNa
}
// Take off leading comments, if they exist.
while(doc.startsWith("<!--") || doc.startsWith(" <!--")) {
- int commentStatementEnd = doc.find("-->");
+ int commentStatementEnd = doc.tqfind("-->");
if(commentStatementEnd == -1) {
kdDebug() << "KttsUtils::hasRootElement: Bad XML file syntax\n";
return false;
@@ -61,7 +61,7 @@ bool KttsUtils::hasRootElement(const TQString &xmldoc, const TQString &elementNa
}
// Take off the doctype statement if it exists.
while(doc.startsWith("<!DOCTYPE") || doc.startsWith(" <!DOCTYPE")) {
- int doctypeStatementEnd = doc.find(">");
+ int doctypeStatementEnd = doc.tqfind(">");
if(doctypeStatementEnd == -1) {
kdDebug() << "KttsUtils::hasRootElement: Bad XML file syntax\n";
return false;
@@ -76,9 +76,9 @@ bool KttsUtils::hasRootElement(const TQString &xmldoc, const TQString &elementNa
/**
* Check if an XML document has a certain DOCTYPE.
* @param xmldoc The document to check for the doctype.
- * @param name The doctype name to check for. Pass TQString::null to not check the name.
- * @param publicId The public ID to check for. Pass TQString::null to not check the ID.
- * @param systemId The system ID to check for. Pass TQString::null to not check the ID.
+ * @param name The doctype name to check for. Pass TQString() to not check the name.
+ * @param publicId The public ID to check for. Pass TQString() to not check the ID.
+ * @param systemId The system ID to check for. Pass TQString() to not check the ID.
* @returns True if the parameters match the doctype, false otherwise.
*/
bool KttsUtils::hasDoctype(const TQString &xmldoc, const TQString &name/*, const TQString &publicId, const TQString &systemId*/) {
@@ -88,7 +88,7 @@ bool KttsUtils::hasDoctype(const TQString &xmldoc, const TQString &name/*, const
if(doc.startsWith("<?xml")) {
// Look for ?> and strip everything off from there to the start - effectively removing
// <?xml...?>
- int xmlStatementEnd = doc.find("?>");
+ int xmlStatementEnd = doc.tqfind("?>");
if(xmlStatementEnd == -1) {
kdDebug() << "KttsUtils::hasDoctype: Bad XML file syntax\n";
return false;
@@ -99,7 +99,7 @@ bool KttsUtils::hasDoctype(const TQString &xmldoc, const TQString &name/*, const
}
// Take off leading comments, if they exist.
while(doc.startsWith("<!--")) {
- int commentStatementEnd = doc.find("-->");
+ int commentStatementEnd = doc.tqfind("-->");
if(commentStatementEnd == -1) {
kdDebug() << "KttsUtils::hasDoctype: Bad XML file syntax\n";
return false;