Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGHtmlParse.cxx File Reference
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include "TGHtml.h"
#include "TGHtmlTokens.h"
#include "strlcpy.h"
#include "snprintf.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".
 
static int NextColumn (int iCol, char c)
 Compute the new column index following the given character.
 
void ToLower (char *z)
 Convert a string to all lower-case letters.
 

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 183 of file TGHtmlParse.cxx.

◆ mxARG

#define mxARG   200

Function Documentation

◆ EscHash()

static int EscHash ( const char *  zName)
static

Definition at line 198 of file TGHtmlParse.cxx.

◆ EscInit()

static void EscInit ( )
static

Definition at line 243 of file TGHtmlParse.cxx.

◆ HtmlHash()

static int HtmlHash ( const char *  zName)
static

Definition at line 411 of file TGHtmlParse.cxx.

◆ HtmlHashInit()

static void HtmlHashInit ( void  )
static

Definition at line 463 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 316 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 528 of file TGHtmlParse.cxx.

◆ ToLower()

void ToLower ( char *  z)

Convert a string to all lower-case letters.

Definition at line 541 of file TGHtmlParse.cxx.

Variable Documentation

◆ gAcMsChar

char gAcMsChar[]
static

Definition at line 269 of file TGHtmlParse.cxx.

◆ gApEscHash

struct SgEsc_t* gApEscHash[ESC_HASH_SIZE]
static

Definition at line 192 of file TGHtmlParse.cxx.

◆ gApMap

Definition at line 401 of file TGHtmlParse.cxx.

◆ gEscSequences

struct SgEsc_t gEscSequences[]
static

Definition at line 75 of file TGHtmlParse.cxx.

◆ gIsInit

int gIsInit = 0
static

Definition at line 393 of file TGHtmlParse.cxx.

◆ HtmlMarkupMap

SHtmlTokenMap_t HtmlMarkupMap[]
extern

Definition at line 33 of file TGHtmlTokenMap.cxx.