FAUST compiler  0.9.9.6b8
Functions | Variables
SVGDev.cpp File Reference
#include "SVGDev.h"
#include "stdio.h"
#include <iostream>
Include dependency graph for SVGDev.cpp:

Go to the source code of this file.

Functions

static char * xmlcode (const char *name, char *name2)
 

Variables

bool gShadowBlur
 

Function Documentation

static char* xmlcode ( const char *  name,
char *  name2 
)
static

Definition at line 33 of file SVGDev.cpp.

Referenced by SVGDev::label(), SVGDev::rect(), SVGDev::text(), and SVGDev::triangle().

34 {
35  int i,j;
36 
37  // SUBSTITUTION DES CARACTeRES INTERDITS EN XML
38 
39  for (i=0, j=0; (name[i] != 0) && (j < 250); i++) {
40  switch (name[i]) {
41  case '<' : name2[j++] = '&'; name2[j++] = 'l'; name2[j++] = 't'; name2[j++] = ';'; break;
42  case '>' : name2[j++] = '&'; name2[j++] = 'g'; name2[j++] = 't'; name2[j++] = ';'; break;
43  case '\'' : name2[j++] = '&'; name2[j++] = 'a'; name2[j++] = 'p'; name2[j++] = 'o'; name2[j++] = 's'; name2[j++] = ';'; break;
44  case '"' : name2[j++] = '&'; name2[j++] = 'q'; name2[j++] = 'u'; name2[j++] = 'o'; name2[j++] = 't'; name2[j++] = ';'; break;
45  case '&' : name2[j++] = '&'; name2[j++] = 'a'; name2[j++] = 'm'; name2[j++] = 'p'; name2[j++] = ';'; break;
46  default : name2[j++] = name[i];
47  }
48  }
49  name2[j] = 0;
50 
51  return name2;
52 }
const char * name(Symbol *sym)
Returns the name of a symbol.
Definition: symbol.hh:98

Here is the caller graph for this function:

Variable Documentation

bool gShadowBlur

Definition at line 117 of file main.cpp.

Referenced by process_cmdline(), SVGDev::rect(), and SVGDev::SVGDev().