ROOT  6.06/09
Reference Guide
Macros | Functions | Variables
TGHtmlParse.cxx File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "TGHtml.h"
#include "TGHtmlTokens.h"
+ Include dependency graph for TGHtmlParse.cxx:

Go to the source code of this file.

Macros

#define ESC_HASH_SIZE   (sizeof(gEscSequences)/sizeof(gEscSequences[0])+7)
 
#define mxARG   200
 

Functions

static int EscHash (const char *zName)
 
static void EscInit ()
 
void HtmlTranslateEscapes (char *z)
 Translate escape sequences in the string "z". More...
 
static int HtmlHash (const char *zName)
 
static void HtmlHashInit (void)
 
static int NextColumn (int iCol, char c)
 Compute the new column index following the given character. More...
 
void ToLower (char *z)
 Convert a string to all lower-case letters. More...
 

Variables

SHtmlTokenMap_t HtmlMarkupMap []
 
static struct SgEsc_t gEscSequences []
 
static struct SgEsc_t * gApEscHash [ESC_HASH_SIZE]
 
static char gAcMsChar []
 
static int gIsInit = 0
 
static SHtmlTokenMap_tgApMap [HTML_MARKUP_HASH_SIZE]
 

Macro Definition Documentation

#define ESC_HASH_SIZE   (sizeof(gEscSequences)/sizeof(gEscSequences[0])+7)

Definition at line 182 of file TGHtmlParse.cxx.

Referenced by EscHash().

#define mxARG   200

Referenced by TGHtml::Tokenize().

Function Documentation

static int EscHash ( const char *  zName)
static

Definition at line 197 of file TGHtmlParse.cxx.

Referenced by EscInit(), and HtmlTranslateEscapes().

static void EscInit ( )
static

Definition at line 242 of file TGHtmlParse.cxx.

Referenced by HtmlTranslateEscapes().

static int HtmlHash ( const char *  zName)
static
static void HtmlHashInit ( void  )
static

Definition at line 462 of file TGHtmlParse.cxx.

Referenced by TGHtml::InsertToken(), TGHtml::NameToPmap(), and TGHtml::Tokenize().

void HtmlTranslateEscapes ( char *  z)

Translate escape sequences in the string "z".

"z" is overwritten with the translated sequence.

Unrecognized escape sequences are unaltered.

Example:

 input  = "AT&amp;T &gt MCI"
 output = "AT&T > MCI"  

Definition at line 315 of file TGHtmlParse.cxx.

Referenced by TGHtml::TextInsertCmd(), TGHtmlMarkupElement::TGHtmlMarkupElement(), and TGHtml::Tokenize().

static int NextColumn ( int  iCol,
char  c 
)
static

Compute the new column index following the given character.

Definition at line 527 of file TGHtmlParse.cxx.

Referenced by TGHtml::Tokenize().

void ToLower ( char *  z)

Convert a string to all lower-case letters.

Definition at line 540 of file TGHtmlParse.cxx.

Referenced by TGHtmlMarkupElement::TGHtmlMarkupElement().

Variable Documentation

char gAcMsChar[]
static

Definition at line 268 of file TGHtmlParse.cxx.

struct SgEsc_t* gApEscHash[ESC_HASH_SIZE]
static

Definition at line 191 of file TGHtmlParse.cxx.

Definition at line 400 of file TGHtmlParse.cxx.

struct SgEsc_t gEscSequences[]
static

Definition at line 74 of file TGHtmlParse.cxx.

int gIsInit = 0
static

Definition at line 392 of file TGHtmlParse.cxx.

SHtmlTokenMap_t HtmlMarkupMap[]

Definition at line 33 of file TGHtmlTokenMap.cxx.