KDE 4.7 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KMacroExpander Namespace Reference

from PyKDE4.kdecore.KMacroExpander import *

Detailed Description

A group of functions providing macro expansion (substitution) in strings, optionally with quoting appropriate for shell execution.


Functions

QString expandMacros (QString str, {QChar:QString} map, QChar c='%')
QString expandMacros (QString str, {QString:QString} map, QChar c=QLatin1Char('%'))
QString expandMacros (QString str, {QChar:QStringList} map, QChar c=QLatin1Char('%'))
QString expandMacros (QString str, {QString:QStringList} map, QChar c=QLatin1Char('%'))
QString expandMacrosShellQuote (QString str, {QChar:QString} map, QChar c=QLatin1Char('%'))
QString expandMacrosShellQuote (QString str, {QString:QString} map, QChar c=QLatin1Char('%'))
QString expandMacrosShellQuote (QString str, {QChar:QStringList} map, QChar c=QLatin1Char('%'))
QString expandMacrosShellQuote (QString str, {QString:QStringList} map, QChar c=QLatin1Char('%'))

Function Documentation

QString expandMacros ( QString  str,
{QChar:QString}  map,
QChar  c='%'
)

Same as above, except that the macros expand to string lists that are simply join(" ")ed together.

QString expandMacros ( QString  str,
{QString:QString}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists that are simply join(" ")ed together.

QString expandMacros ( QString  str,
{QChar:QStringList}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists that are simply join(" ")ed together.

QString expandMacros ( QString  str,
{QString:QStringList}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists that are simply join(" ")ed together.

QString expandMacrosShellQuote ( QString  str,
{QChar:QString}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists. If the macro appears inside a quoted string, the list is simply join(" ")ed together; otherwise every element expands to a separate quoted string.

QString expandMacrosShellQuote ( QString  str,
{QString:QString}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists. If the macro appears inside a quoted string, the list is simply join(" ")ed together; otherwise every element expands to a separate quoted string.

QString expandMacrosShellQuote ( QString  str,
{QChar:QStringList}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists. If the macro appears inside a quoted string, the list is simply join(" ")ed together; otherwise every element expands to a separate quoted string.

QString expandMacrosShellQuote ( QString  str,
{QString:QStringList}  map,
QChar  c=QLatin1Char('%')
)

Same as above, except that the macros expand to string lists. If the macro appears inside a quoted string, the list is simply join(" ")ed together; otherwise every element expands to a separate quoted string.

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal