VoiceMan
Public Member Functions | Public Attributes
Replacement Struct Reference

Stores all information about a replacement item. More...

List of all members.

Public Member Functions

 Replacement ()
 The default constructor.
 Replacement (LangId lang, const std::wstring &oldString, const std::wstring &newString)
 The constructor.

Public Attributes

LangId langId
 The language this replacement is associated with.
std::wstring newValue
 The string to replace with.
std::wstring oldValue
 The string to replace.

Detailed Description

There are lists of replacements associated with each language. Replacements can be used for punctuation processing or any other purpose. This struct contains all necessary information about one replacement. String fields must store exact values, no pattern or expressions are allowed.


Constructor & Destructor Documentation

Replacement::Replacement ( LangId  lang,
const std::wstring &  oldString,
const std::wstring &  newString 
) [inline]
Parameters:
[in]langThe ID of the language this replacement is associated with
[in]oldstringThe string to replace
[in]newstringThe string to replace with