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.
KDE 4.7 PyKDE API Reference