You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
530 lines
16 KiB
530 lines
16 KiB
15 years ago
|
/*
|
||
|
This file is part of the KDE libraries
|
||
|
|
||
|
Copyright (c) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
|
||
|
Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#include <kmacroexpander.h>
|
||
|
|
||
15 years ago
|
#include <tqvaluestack.h>
|
||
|
#include <tqregexp.h>
|
||
15 years ago
|
|
||
15 years ago
|
KMacroExpanderBase::KMacroExpanderBase( TQChar c )
|
||
15 years ago
|
{
|
||
|
escapechar = c;
|
||
|
}
|
||
|
|
||
|
KMacroExpanderBase::~KMacroExpanderBase()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void
|
||
15 years ago
|
KMacroExpanderBase::setEscapeChar( TQChar c )
|
||
15 years ago
|
{
|
||
|
escapechar = c;
|
||
|
}
|
||
|
|
||
14 years ago
|
TQChar
|
||
15 years ago
|
KMacroExpanderBase::escapeChar() const
|
||
|
{
|
||
|
return escapechar;
|
||
|
}
|
||
|
|
||
15 years ago
|
void KMacroExpanderBase::expandMacros( TQString &str )
|
||
15 years ago
|
{
|
||
|
uint pos;
|
||
|
int len;
|
||
15 years ago
|
TQChar ec( escapechar );
|
||
|
TQStringList rst;
|
||
|
TQString rsts;
|
||
15 years ago
|
|
||
|
for (pos = 0; pos < str.length(); ) {
|
||
15 years ago
|
if (ec != (QChar)0) {
|
||
14 years ago
|
if (str.tqunicode()[pos] != ec)
|
||
15 years ago
|
goto nohit;
|
||
|
if (!(len = expandEscapedMacro( str, pos, rst )))
|
||
|
goto nohit;
|
||
|
} else {
|
||
|
if (!(len = expandPlainMacro( str, pos, rst )))
|
||
|
goto nohit;
|
||
|
}
|
||
|
if (len < 0) {
|
||
|
pos -= len;
|
||
|
continue;
|
||
|
}
|
||
|
rsts = rst.join( " " );
|
||
|
rst.clear();
|
||
14 years ago
|
str.replace( pos, len, rsts );
|
||
15 years ago
|
pos += rsts.length();
|
||
|
continue;
|
||
|
nohit:
|
||
|
pos++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
namespace KMacroExpander {
|
||
|
|
||
|
/** @intern Quoting state of the expander code. Not available publicly. */
|
||
|
enum Quoting { noquote, singlequote, doublequote, dollarquote,
|
||
|
paren, subst, group, math };
|
||
|
typedef struct {
|
||
|
Quoting current;
|
||
|
bool dquote;
|
||
|
} State;
|
||
|
typedef struct {
|
||
15 years ago
|
TQString str;
|
||
15 years ago
|
uint pos;
|
||
|
} Save;
|
||
|
|
||
|
}
|
||
|
|
||
|
using namespace KMacroExpander;
|
||
|
|
||
15 years ago
|
bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
|
||
15 years ago
|
{
|
||
|
int len;
|
||
|
uint pos2;
|
||
15 years ago
|
TQChar ec( escapechar );
|
||
15 years ago
|
State state = { noquote, false };
|
||
15 years ago
|
TQValueStack<State> sstack;
|
||
|
TQValueStack<Save> ostack;
|
||
|
TQStringList rst;
|
||
|
TQString rsts;
|
||
15 years ago
|
|
||
|
while (pos < str.length()) {
|
||
14 years ago
|
TQChar cc( str.tqunicode()[pos] );
|
||
15 years ago
|
if (ec != (QChar)0) {
|
||
15 years ago
|
if (cc != ec)
|
||
|
goto nohit;
|
||
|
if (!(len = expandEscapedMacro( str, pos, rst )))
|
||
|
goto nohit;
|
||
|
} else {
|
||
|
if (!(len = expandPlainMacro( str, pos, rst )))
|
||
|
goto nohit;
|
||
|
}
|
||
|
if (len < 0) {
|
||
|
pos -= len;
|
||
|
continue;
|
||
|
}
|
||
|
if (state.dquote) {
|
||
|
rsts = rst.join( " " );
|
||
14 years ago
|
rsts.replace( TQRegExp("([$`\"\\\\])"), "\\\\1" );
|
||
15 years ago
|
} else if (state.current == dollarquote) {
|
||
|
rsts = rst.join( " " );
|
||
14 years ago
|
rsts.replace( TQRegExp("(['\\\\])"), "\\\\1" );
|
||
15 years ago
|
} else if (state.current == singlequote) {
|
||
|
rsts = rst.join( " " );
|
||
14 years ago
|
rsts.replace( '\'', "'\\''");
|
||
15 years ago
|
} else {
|
||
|
if (rst.isEmpty()) {
|
||
|
str.remove( pos, len );
|
||
|
continue;
|
||
|
} else {
|
||
|
rsts = "'";
|
||
|
#if 0 // this could pay off if join() would be cleverer and the strings were long
|
||
15 years ago
|
for (TQStringList::Iterator it = rst.begin(); it != rst.end(); ++it)
|
||
14 years ago
|
(*it).replace( '\'', "'\\''" );
|
||
15 years ago
|
rsts += rst.join( "' '" );
|
||
|
#else
|
||
15 years ago
|
for (TQStringList::ConstIterator it = rst.begin(); it != rst.end(); ++it) {
|
||
15 years ago
|
if (it != rst.begin())
|
||
|
rsts += "' '";
|
||
15 years ago
|
TQString trsts( *it );
|
||
14 years ago
|
trsts.replace( '\'', "'\\''" );
|
||
15 years ago
|
rsts += trsts;
|
||
|
}
|
||
|
#endif
|
||
|
rsts += "'";
|
||
|
}
|
||
|
}
|
||
|
rst.clear();
|
||
14 years ago
|
str.replace( pos, len, rsts );
|
||
15 years ago
|
pos += rsts.length();
|
||
|
continue;
|
||
|
nohit:
|
||
|
if (state.current == singlequote) {
|
||
15 years ago
|
if (cc == (QChar)'\'')
|
||
15 years ago
|
state = sstack.pop();
|
||
15 years ago
|
} else if (cc == (QChar)'\\') {
|
||
15 years ago
|
// always swallow the char -> prevent anomalies due to expansion
|
||
|
pos += 2;
|
||
|
continue;
|
||
|
} else if (state.current == dollarquote) {
|
||
15 years ago
|
if (cc == (QChar)'\'')
|
||
15 years ago
|
state = sstack.pop();
|
||
15 years ago
|
} else if (cc == (QChar)'$') {
|
||
15 years ago
|
cc = str[++pos];
|
||
15 years ago
|
if (cc == (QChar)'(') {
|
||
15 years ago
|
sstack.push( state );
|
||
15 years ago
|
if (str[pos + 1] == (QChar)'(') {
|
||
15 years ago
|
Save sav = { str, pos + 2 };
|
||
|
ostack.push( sav );
|
||
|
state.current = math;
|
||
|
pos += 2;
|
||
|
continue;
|
||
|
} else {
|
||
|
state.current = paren;
|
||
|
state.dquote = false;
|
||
|
}
|
||
15 years ago
|
} else if (cc == (QChar)'{') {
|
||
15 years ago
|
sstack.push( state );
|
||
|
state.current = subst;
|
||
|
} else if (!state.dquote) {
|
||
15 years ago
|
if (cc == (QChar)'\'') {
|
||
15 years ago
|
sstack.push( state );
|
||
|
state.current = dollarquote;
|
||
15 years ago
|
} else if (cc == (QChar)'"') {
|
||
15 years ago
|
sstack.push( state );
|
||
|
state.current = doublequote;
|
||
|
state.dquote = true;
|
||
|
}
|
||
|
}
|
||
|
// always swallow the char -> prevent anomalies due to expansion
|
||
15 years ago
|
} else if (cc == (QChar)'`') {
|
||
14 years ago
|
str.replace( pos, 1, "$( " ); // add space -> avoid creating $((
|
||
15 years ago
|
pos2 = pos += 3;
|
||
|
for (;;) {
|
||
|
if (pos2 >= str.length()) {
|
||
|
pos = pos2;
|
||
|
return false;
|
||
|
}
|
||
14 years ago
|
cc = str.tqunicode()[pos2];
|
||
15 years ago
|
if (cc == (QChar)'`')
|
||
15 years ago
|
break;
|
||
15 years ago
|
if (cc == (QChar)'\\') {
|
||
15 years ago
|
cc = str[++pos2];
|
||
15 years ago
|
if (cc == (QChar)'$' || cc == (QChar)'`' || cc == (QChar)'\\' ||
|
||
|
(cc == (QChar)'"' && state.dquote))
|
||
15 years ago
|
{
|
||
|
str.remove( pos2 - 1, 1 );
|
||
|
continue;
|
||
|
}
|
||
|
}
|
||
|
pos2++;
|
||
|
}
|
||
|
str[pos2] = ')';
|
||
|
sstack.push( state );
|
||
|
state.current = paren;
|
||
|
state.dquote = false;
|
||
|
continue;
|
||
|
} else if (state.current == doublequote) {
|
||
15 years ago
|
if (cc == (QChar)'"')
|
||
15 years ago
|
state = sstack.pop();
|
||
15 years ago
|
} else if (cc == (QChar)'\'') {
|
||
15 years ago
|
if (!state.dquote) {
|
||
|
sstack.push( state );
|
||
|
state.current = singlequote;
|
||
|
}
|
||
15 years ago
|
} else if (cc == (QChar)'"') {
|
||
15 years ago
|
if (!state.dquote) {
|
||
|
sstack.push( state );
|
||
|
state.current = doublequote;
|
||
|
state.dquote = true;
|
||
|
}
|
||
|
} else if (state.current == subst) {
|
||
15 years ago
|
if (cc == (QChar)'}')
|
||
15 years ago
|
state = sstack.pop();
|
||
15 years ago
|
} else if (cc == (QChar)')') {
|
||
15 years ago
|
if (state.current == math) {
|
||
15 years ago
|
if (str[pos + 1] == (QChar)')') {
|
||
15 years ago
|
state = sstack.pop();
|
||
|
pos += 2;
|
||
|
} else {
|
||
|
// false hit: the $(( was a $( ( in fact
|
||
|
// ash does not care, but bash does
|
||
|
pos = ostack.top().pos;
|
||
|
str = ostack.top().str;
|
||
|
ostack.pop();
|
||
|
state.current = paren;
|
||
|
state.dquote = false;
|
||
|
sstack.push( state );
|
||
|
}
|
||
|
continue;
|
||
|
} else if (state.current == paren)
|
||
|
state = sstack.pop();
|
||
|
else
|
||
|
break;
|
||
15 years ago
|
} else if (cc == (QChar)'}') {
|
||
15 years ago
|
if (state.current == KMacroExpander::group)
|
||
|
state = sstack.pop();
|
||
|
else
|
||
|
break;
|
||
15 years ago
|
} else if (cc == (QChar)'(') {
|
||
15 years ago
|
sstack.push( state );
|
||
|
state.current = paren;
|
||
15 years ago
|
} else if (cc == (QChar)'{') {
|
||
15 years ago
|
sstack.push( state );
|
||
|
state.current = KMacroExpander::group;
|
||
|
}
|
||
|
pos++;
|
||
|
}
|
||
|
return sstack.empty();
|
||
|
}
|
||
|
|
||
15 years ago
|
bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str )
|
||
15 years ago
|
{
|
||
|
uint pos = 0;
|
||
|
return expandMacrosShellQuote( str, pos ) && pos == str.length();
|
||
|
}
|
||
|
|
||
15 years ago
|
int KMacroExpanderBase::expandPlainMacro( const TQString &, uint, TQStringList & )
|
||
15 years ago
|
{ qFatal( "KMacroExpanderBase::expandPlainMacro called!" ); return 0; }
|
||
|
|
||
15 years ago
|
int KMacroExpanderBase::expandEscapedMacro( const TQString &, uint, TQStringList & )
|
||
15 years ago
|
{ qFatal( "KMacroExpanderBase::expandEscapedMacro called!" ); return 0; }
|
||
|
|
||
|
|
||
|
//////////////////////////////////////////////////
|
||
|
|
||
|
template<class KT,class VT>
|
||
|
class KMacroMapExpander : public KMacroExpanderBase {
|
||
|
|
||
|
public:
|
||
15 years ago
|
KMacroMapExpander( const TQMap<KT,VT> &map, TQChar c = '%' ) :
|
||
15 years ago
|
KMacroExpanderBase( c ), macromap( map ) {}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
virtual int expandPlainMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
|
virtual int expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQMap<KT,VT> macromap;
|
||
15 years ago
|
};
|
||
|
|
||
15 years ago
|
static TQStringList &operator+=( TQStringList &s, const TQString &n) { s << n; return s; }
|
||
15 years ago
|
|
||
|
////////
|
||
|
|
||
|
static bool
|
||
|
isIdentifier( uint c )
|
||
|
{
|
||
15 years ago
|
return c == '_' || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9');
|
||
15 years ago
|
}
|
||
|
|
||
|
////////
|
||
|
|
||
|
template<class VT>
|
||
15 years ago
|
class KMacroMapExpander<TQChar,VT> : public KMacroExpanderBase {
|
||
15 years ago
|
|
||
|
public:
|
||
15 years ago
|
KMacroMapExpander( const TQMap<TQChar,VT> &map, TQChar c = '%' ) :
|
||
15 years ago
|
KMacroExpanderBase( c ), macromap( map ) {}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
virtual int expandPlainMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
|
virtual int expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQMap<TQChar,VT> macromap;
|
||
15 years ago
|
};
|
||
|
|
||
|
template<class VT>
|
||
|
int
|
||
15 years ago
|
KMacroMapExpander<TQChar,VT>::expandPlainMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
13 years ago
|
TQMapConstIterator<TQChar,VT> it = macromap.find(str[pos]);
|
||
15 years ago
|
if (it != macromap.end()) {
|
||
|
ret += it.data();
|
||
|
return 1;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
template<class VT>
|
||
|
int
|
||
15 years ago
|
KMacroMapExpander<TQChar,VT>::expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
|
if (str[pos + 1] == escapeChar()) {
|
||
15 years ago
|
ret += TQString( escapeChar() );
|
||
15 years ago
|
return 2;
|
||
|
}
|
||
13 years ago
|
TQMapConstIterator<TQChar,VT> it = macromap.find(str[pos+1]);
|
||
15 years ago
|
if (it != macromap.end()) {
|
||
|
ret += it.data();
|
||
|
return 2;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
template<class VT>
|
||
15 years ago
|
class KMacroMapExpander<TQString,VT> : public KMacroExpanderBase {
|
||
15 years ago
|
|
||
|
public:
|
||
15 years ago
|
KMacroMapExpander( const TQMap<TQString,VT> &map, TQChar c = '%' ) :
|
||
15 years ago
|
KMacroExpanderBase( c ), macromap( map ) {}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
virtual int expandPlainMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
|
virtual int expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret );
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQMap<TQString,VT> macromap;
|
||
15 years ago
|
};
|
||
|
|
||
|
template<class VT>
|
||
|
int
|
||
15 years ago
|
KMacroMapExpander<TQString,VT>::expandPlainMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (isIdentifier( str[pos - 1].tqunicode() ))
|
||
15 years ago
|
return 0;
|
||
|
uint sl;
|
||
14 years ago
|
for (sl = 0; isIdentifier( str[pos + sl].tqunicode() ); sl++);
|
||
15 years ago
|
if (!sl)
|
||
|
return 0;
|
||
15 years ago
|
TQMapConstIterator<TQString,VT> it =
|
||
13 years ago
|
macromap.find( TQConstString( str.tqunicode() + pos, sl ).string() );
|
||
15 years ago
|
if (it != macromap.end()) {
|
||
|
ret += it.data();
|
||
|
return sl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
template<class VT>
|
||
|
int
|
||
15 years ago
|
KMacroMapExpander<TQString,VT>::expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
|
if (str[pos + 1] == escapeChar()) {
|
||
15 years ago
|
ret += TQString( escapeChar() );
|
||
15 years ago
|
return 2;
|
||
|
}
|
||
|
uint sl, rsl, rpos;
|
||
15 years ago
|
if (str[pos + 1] == (QChar)'{') {
|
||
15 years ago
|
rpos = pos + 2;
|
||
15 years ago
|
for (sl = 0; str[rpos + sl] != (QChar)'}'; sl++)
|
||
15 years ago
|
if (rpos + sl >= str.length())
|
||
|
return 0;
|
||
|
rsl = sl + 3;
|
||
|
} else {
|
||
|
rpos = pos + 1;
|
||
14 years ago
|
for (sl = 0; isIdentifier( str[rpos + sl].tqunicode() ); sl++);
|
||
15 years ago
|
rsl = sl + 1;
|
||
|
}
|
||
|
if (!sl)
|
||
|
return 0;
|
||
15 years ago
|
TQMapConstIterator<TQString,VT> it =
|
||
13 years ago
|
macromap.find( TQConstString( str.tqunicode() + rpos, sl ).string() );
|
||
15 years ago
|
if (it != macromap.end()) {
|
||
|
ret += it.data();
|
||
|
return rsl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
////////////
|
||
|
|
||
|
int
|
||
15 years ago
|
KCharMacroExpander::expandPlainMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
|
if (expandMacro( str[pos], ret ))
|
||
|
return 1;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
15 years ago
|
KCharMacroExpander::expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
|
if (str[pos + 1] == escapeChar()) {
|
||
15 years ago
|
ret += TQString( escapeChar() );
|
||
15 years ago
|
return 2;
|
||
|
}
|
||
|
if (expandMacro( str[pos+1], ret ))
|
||
|
return 2;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
15 years ago
|
KWordMacroExpander::expandPlainMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (isIdentifier( str[pos - 1].tqunicode() ))
|
||
15 years ago
|
return 0;
|
||
|
uint sl;
|
||
14 years ago
|
for (sl = 0; isIdentifier( str[pos + sl].tqunicode() ); sl++);
|
||
15 years ago
|
if (!sl)
|
||
|
return 0;
|
||
14 years ago
|
if (expandMacro( TQConstString( str.tqunicode() + pos, sl ).string(), ret ))
|
||
15 years ago
|
return sl;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int
|
||
15 years ago
|
KWordMacroExpander::expandEscapedMacro( const TQString &str, uint pos, TQStringList &ret )
|
||
15 years ago
|
{
|
||
|
if (str[pos + 1] == escapeChar()) {
|
||
15 years ago
|
ret += TQString( escapeChar() );
|
||
15 years ago
|
return 2;
|
||
|
}
|
||
|
uint sl, rsl, rpos;
|
||
15 years ago
|
if (str[pos + 1] == (QChar)'{') {
|
||
15 years ago
|
rpos = pos + 2;
|
||
15 years ago
|
for (sl = 0; str[rpos + sl] != (QChar)'}'; sl++)
|
||
15 years ago
|
if (rpos + sl >= str.length())
|
||
|
return 0;
|
||
|
rsl = sl + 3;
|
||
|
} else {
|
||
|
rpos = pos + 1;
|
||
14 years ago
|
for (sl = 0; isIdentifier( str[rpos + sl].tqunicode() ); sl++);
|
||
15 years ago
|
rsl = sl + 1;
|
||
|
}
|
||
|
if (!sl)
|
||
|
return 0;
|
||
14 years ago
|
if (expandMacro( TQConstString( str.tqunicode() + rpos, sl ).string(), ret ))
|
||
15 years ago
|
return rsl;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
////////////
|
||
|
|
||
|
template<class KT,class VT>
|
||
|
inline QString
|
||
15 years ago
|
TexpandMacros( const TQString &ostr, const TQMap<KT,VT> &map, TQChar c )
|
||
15 years ago
|
{
|
||
15 years ago
|
TQString str( ostr );
|
||
15 years ago
|
KMacroMapExpander<KT,VT> kmx( map, c );
|
||
|
kmx.expandMacros( str );
|
||
|
return str;
|
||
|
}
|
||
|
|
||
|
template<class KT,class VT>
|
||
|
inline QString
|
||
15 years ago
|
TexpandMacrosShellQuote( const TQString &ostr, const TQMap<KT,VT> &map, TQChar c )
|
||
15 years ago
|
{
|
||
15 years ago
|
TQString str( ostr );
|
||
15 years ago
|
KMacroMapExpander<KT,VT> kmx( map, c );
|
||
|
if (!kmx.expandMacrosShellQuote( str ))
|
||
14 years ago
|
return TQString();
|
||
15 years ago
|
return str;
|
||
|
}
|
||
|
|
||
|
// public API
|
||
|
namespace KMacroExpander {
|
||
|
|
||
15 years ago
|
TQString expandMacros( const TQString &ostr, const TQMap<TQChar,TQString> &map, TQChar c ) { return TexpandMacros( ostr, map, c ); }
|
||
|
TQString expandMacrosShellQuote( const TQString &ostr, const TQMap<TQChar,TQString> &map, TQChar c ) { return TexpandMacrosShellQuote( ostr, map, c ); }
|
||
|
TQString expandMacros( const TQString &ostr, const TQMap<TQString,TQString> &map, TQChar c ) { return TexpandMacros( ostr, map, c ); }
|
||
|
TQString expandMacrosShellQuote( const TQString &ostr, const TQMap<TQString,TQString> &map, TQChar c ) { return TexpandMacrosShellQuote( ostr, map, c ); }
|
||
|
TQString expandMacros( const TQString &ostr, const TQMap<TQChar,TQStringList> &map, TQChar c ) { return TexpandMacros( ostr, map, c ); }
|
||
|
TQString expandMacrosShellQuote( const TQString &ostr, const TQMap<TQChar,TQStringList> &map, TQChar c ) { return TexpandMacrosShellQuote( ostr, map, c ); }
|
||
|
TQString expandMacros( const TQString &ostr, const TQMap<TQString,TQStringList> &map, TQChar c ) { return TexpandMacros( ostr, map, c ); }
|
||
|
TQString expandMacrosShellQuote( const TQString &ostr, const TQMap<TQString,TQStringList> &map, TQChar c ) { return TexpandMacrosShellQuote( ostr, map, c ); }
|
||
15 years ago
|
|
||
|
} // namespace
|