Logo Search packages:      
Sourcecode: q4wine version File versions  Download package

QString corelib::getEscapeString ( const QString  string,
const bool  spaces = true 
) const

Get's string with escaped special characters.

string Base string

Definition at line 1136 of file q4wine-lib.cpp.

Referenced by mountImage(), and umountImage().

            if (spaces){
                return QRegExp::escape(string).replace(" ", "\\ ").replace("'", "\\'").replace("\"", "\\\"");
            } else {
                return QRegExp::escape(string).replace("'", "\\'").replace("\"", "\\\"");

Generated by  Doxygen 1.6.0   Back to index