HTML Helper and Utility Functions
[HTML]

Collaboration diagram for HTML Helper and Utility Functions:


Classes

class  CHTMLHelper
class  CIDs
 CIDs class to hold sorted list of IDs. More...

Functions

static string CHTMLHelper::HTMLJavaScriptEncode (const string &str, THTMLEncodeFlags flags=fEncodeAll)
 Encode a string for JavaScript.
static string CHTMLHelper::StripHTML (const string &str)
 Strip all HTML code from a string.
bool CIDs::ExtractID (int id)
int CIDs::GetNumber (const string &str)
void CIDs::Decode (const string &str)
int CIDs::AddID (char cmd, int id, int number)
string CIDs::Encode (void) const


Function Documentation

int CIDs::AddID char  cmd,
int  id,
int  number
[inline, private, inherited]
 

Definition at line 227 of file htmlhelper.hpp.

References CIDs::AddID().

void CIDs::Decode const string &  str  )  [inline, inherited]
 

Definition at line 198 of file htmlhelper.hpp.

Referenced by CSelection::CSelection().

string CIDs::Encode void   )  const [inline, inherited]
 

Definition at line 246 of file htmlhelper.hpp.

References id, NStr::IntToString(), and out().

Referenced by CSelection::CreateSubNodes().

bool CIDs::ExtractID int  id  )  [inline, inherited]
 

Definition at line 180 of file htmlhelper.hpp.

int CIDs::GetNumber const string &  str  )  [inline, private, inherited]
 

Definition at line 191 of file htmlhelper.hpp.

References NStr::StringToInt().

string CHTMLHelper::HTMLJavaScriptEncode const string &  str,
THTMLEncodeFlags  flags = fEncodeAll
[inline, static, inherited]
 

Encode a string for JavaScript.

Call HTMLEncode and also encode all non-printable characters. The non-printable characters will be represented as "\S" where S is the symbol code or as "\xDD" where DD is the character's code in hexadecimal.

See also:
NStr::JavaScriptEncode, HTMLEncode

Definition at line 167 of file htmlhelper.hpp.

References CHTMLHelper::HTMLEncode(), and NStr::JavaScriptEncode().

string CHTMLHelper::StripHTML const string &  str  )  [inline, static, inherited]
 

Strip all HTML code from a string.

Definition at line 174 of file htmlhelper.hpp.

References CHTMLHelper::StripSpecialChars(), and CHTMLHelper::StripTags().

Referenced by CHTMLText::PrintString().


Generated on Mon Dec 7 16:02:29 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:36 2009 by modify_doxy.py rev. 173732