Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Expander Class Reference

#include <expander.h>

Public Member Functions

 Expander (const std::string &leftMarker, const std::string &rightMarker)
 
void addExpansion (const std::string &key, const std::string val)
 
void clear (void)
 
void expand (const std::string &input, std::string &output, bool stripUnknown=false)
 

Protected Attributes

ExpansionMap m_expansions
 
std::string m_left
 
std::string m_right
 

Detailed Description

Definition at line 35 of file expander.h.

Constructor & Destructor Documentation

◆ Expander()

Expander::Expander ( const std::string & leftMarker,
const std::string & rightMarker )

Definition at line 29 of file expander.cpp.

Member Function Documentation

◆ addExpansion()

void Expander::addExpansion ( const std::string & key,
const std::string val )

Definition at line 34 of file expander.cpp.

◆ clear()

void Expander::clear ( void )

Definition at line 39 of file expander.cpp.

◆ expand()

void Expander::expand ( const std::string & input,
std::string & output,
bool stripUnknown = false )

Definition at line 44 of file expander.cpp.

Member Data Documentation

◆ m_expansions

ExpansionMap Expander::m_expansions
protected

Definition at line 48 of file expander.h.

◆ m_left

std::string Expander::m_left
protected

Definition at line 49 of file expander.h.

◆ m_right

std::string Expander::m_right
protected

Definition at line 50 of file expander.h.


The documentation for this class was generated from the following files: