KDECore
Go to the documentation of this file.
28 #include <QStringList>
36 bool shellQuote =
false;
37 bool crtQuote =
false;
44 while (pos < str.length()) {
45 ushort cc = str.unicode()[pos].unicode();
61 if (shellQuote != crtQuote)
67 str.remove( pos, len );
73 while (pos2 < rsts.length() &&
74 ((uc = rsts.unicode()[pos2].unicode()) ==
'\\' || uc ==
'^'))
76 if (pos2 < rsts.length() && rsts.unicode()[pos2].unicode() ==
'"') {
78 bsl.reserve( bslashes );
79 for (; bslashes; bslashes--)
80 bsl.append( QLatin1String(
"\\") );
85 str.replace( pos, len, rsts );
89 if (!escaped && !shellQuote && cc ==
'^') {
98 shellQuote = !shellQuote;
100 crtQuote = !crtQuote;
101 }
else if (!shellQuote) {
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:23:54 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.