Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
fmtesc.c File Reference
#include <ast/ast.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <util/agxbuf.h>
#include <util/gv_ctype.h>
Include dependency graph for fmtesc.c:

Go to the source code of this file.

Macros

#define PUT(ch)
 

Functions

char * fmtquote (const char *as, const char *qb, const char *qe)
 quote string as with qb...qe
 
char * fmtesq (const char *as, const char *qs)
 
char * fmtesc (const char *as)
 

Macro Definition Documentation

◆ PUT

#define PUT (   ch)
Value:
do { \
last = (ch); \
agxbputc(&b, (ch)); \
} while (0)
static agxbuf last
last message
Definition agerror.c:29

Function Documentation

◆ fmtesc()

char * fmtesc ( const char *  as)

Definition at line 132 of file fmtesc.c.

References fmtquote(), and NULL.

Here is the call graph for this function:

◆ fmtesq()

char * fmtesq ( const char *  as,
const char *  qs 
)

Definition at line 123 of file fmtesc.c.

References fmtquote(), and NULL.

Referenced by gen(), print(), and scan().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fmtquote()

char * fmtquote ( const char *  as,
const char *  qb,
const char *  qe 
)

Definition at line 26 of file fmtesc.c.

References agxbdisown(), agxbput(), CC_bel, CC_esc, CC_vt, free(), gv_iscntrl(), gv_isprint(), gv_isspace(), last, and PUT.

Referenced by fmtesc(), fmtesq(), and prformat().

Here is the call graph for this function:
Here is the caller graph for this function: