jovie
utils.cpp
Go to the documentation of this file.
63 while(doc.startsWith(QLatin1String("<!DOCTYPE")) || doc.startsWith(QLatin1String(" <!DOCTYPE"))) {
73 return (doc.startsWith(QString(QLatin1Char( '<' ) + elementName)) || doc.startsWith(QString(QLatin1String( " <" ) + elementName)));
104 // kDebug() << "KttsUtils::hasDoctype: searching " << doc.left(20) << "... for " << "<!DOCTYPE " << name;
static bool hasRootElement(const QString &xmldoc, const QString &elementName)
Check if an XML document has a certain root element.
Definition: utils.cpp:37
static bool hasDoctype(const QString &xmldoc, const QString &name)
Check if an XML document has a certain DOCTYPE.
Definition: utils.cpp:76
static void setCbItemFromText(KComboBox *cb, const QString &text)
Sets the current item in the given combobox to the item with the given text.
Definition: utils.cpp:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.