# class KCharMacroExpander

### abstract

Module | kdecore
Namespace |
Class | KCharMacroExpander
Inherits | KMacroExpanderBase

### methods

- KCharMacroExpander (c)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  c | QChar | QLatin1Char('%')

  Constructor.

  c - escape char indicating start of macros, or QChar.null for none

- KCharMacroExpander (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QChar | QLatin1Char('%')

- expandEscapedMacro (str, pos, ret)

  returns int

  Argument | Type | Default
  --- | --- | ---
  str | QString |
  pos | int |
  ret | QStringList |

- expandMacro (chr, ret)

  returns bool
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  chr | QChar |
  ret | QStringList |

  Return substitution list ret for single-character macro chr.

  chr - the macro to expand

  ret - return variable reference. It is guaranteed to be empty when expandMacro is entered. Returns true iff chr was a recognized macro name

- expandPlainMacro (str, pos, ret)

  returns int

  Argument | Type | Default
  --- | --- | ---
  str | QString |
  pos | int |
  ret | QStringList |