ADTF  3.18.2
cHTMLConverter

this class provides conversion methods between plain text strings and HTML strings More...

Classes

struct  tMapping
 

Public Member Functions

tResult ToHTML (const cString &strInput, cString &strOutputHTML)
 will convert a given string to string that is conform to html More...
 
tResult FromHTML (const cString &strInputHTML, cString &strOutput)
 will convert a given html string to a plain text one More...
 
tResult ShowMappings (cStringList &strHTML, cStringList &strString)
 this helper method will show the user all possible mappings More...
 

Private Member Functions

tResult CreateMapping (cString strString, cString strHTML)
 inserts the data into the string maps More...
 
tResult Initialize ()
 Inits the maps for conversion.
 

Private Attributes

std::list< tMappingm_oStringMapping
 

Detailed Description

this class provides conversion methods between plain text strings and HTML strings

Definition at line 16 of file html.h.

Member Function Documentation

◆ CreateMapping()

tResult CreateMapping ( cString  strString,
cString  strHTML 
)
private

inserts the data into the string maps

Parameters
[in]strStringplain text
[in]strHTMLhtml text
Return values
ERR_NOERROR

◆ FromHTML()

tResult FromHTML ( const cString strInputHTML,
cString strOutput 
)

will convert a given html string to a plain text one

Parameters
[in]strInputHTMLhtml string
[out]strOutputplain text string
Return values
ERR_NOERROReverything is fine

◆ ShowMappings()

tResult ShowMappings ( cStringList strHTML,
cStringList strString 
)

this helper method will show the user all possible mappings

Parameters
[out]strHTMLlist containing all html-string that will be replaced
[out]strStringlsit containing all characters that will be replaced
Return values
ERR_NOERROReverything is fine
Remarks
StringLists will be cleared

◆ ToHTML()

tResult ToHTML ( const cString strInput,
cString strOutputHTML 
)

will convert a given string to string that is conform to html

Parameters
[in]strInputplain text string
[out]strOutputHTMLconverted string, conform to html
Return values
ERR_NOERROReverything is fine