Logo ROOT   6.18/05
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:

Macros

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

Functions

static int EscHash (const char *zName)
 
static void EscInit ()
 
static int HtmlHash (const char *zName)
 
static void HtmlHashInit (void)
 
void HtmlTranslateEscapes (char *z)
 Translate escape sequences in the string "z". More...
 
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

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

Macro Definition Documentation

◆ ESC_HASH_SIZE

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

Definition at line 182 of file TGHtmlParse.cxx.

◆ mxARG

#define mxARG   200

Function Documentation

◆ EscHash()

static int EscHash ( const char *  zName)
static

Definition at line 197 of file TGHtmlParse.cxx.

◆ EscInit()

static void EscInit ( )
static

Definition at line 242 of file TGHtmlParse.cxx.

◆ HtmlHash()

static int HtmlHash ( const char *  zName)
static

Definition at line 410 of file TGHtmlParse.cxx.

◆ HtmlHashInit()

static void HtmlHashInit ( void  )
static

Definition at line 462 of file TGHtmlParse.cxx.

◆ HtmlTranslateEscapes()

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.

◆ NextColumn()

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.

◆ ToLower()

void ToLower ( char *  z)

Convert a string to all lower-case letters.

Definition at line 540 of file TGHtmlParse.cxx.

Variable Documentation

◆ gAcMsChar

char gAcMsChar[]
static

Definition at line 268 of file TGHtmlParse.cxx.

◆ gApEscHash

struct SgEsc_t* gApEscHash[ESC_HASH_SIZE]
static

Definition at line 191 of file TGHtmlParse.cxx.

◆ gApMap

Definition at line 400 of file TGHtmlParse.cxx.

◆ gEscSequences

struct SgEsc_t gEscSequences[]
static

Definition at line 74 of file TGHtmlParse.cxx.

◆ gIsInit

int gIsInit = 0
static

Definition at line 392 of file TGHtmlParse.cxx.

◆ HtmlMarkupMap

SHtmlTokenMap_t HtmlMarkupMap[]
extern

Definition at line 33 of file TGHtmlTokenMap.cxx.