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

KMacroExpander Namespace Reference

from PyKDE5.kcoreaddons.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=QLatin1Char('%'))
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=QLatin1Char('%')
)

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

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal