dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Enumerations | Functions | Variables
quotearg.h File Reference
#include <stddef.h>
Include dependency graph for quotearg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_QUOTING_STYLE   literal_quoting_style
 

Enumerations

enum  quoting_style {
  literal_quoting_style, shell_quoting_style, shell_always_quoting_style, shell_escape_quoting_style,
  shell_escape_always_quoting_style, c_quoting_style, c_maybe_quoting_style, escape_quoting_style,
  locale_quoting_style, clocale_quoting_style, custom_quoting_style
}
 
enum  quoting_flags { QA_ELIDE_NULL_BYTES = 0x01, QA_ELIDE_OUTER_QUOTES = 0x02, QA_SPLIT_TRIGRAPHS = 0x04 }
 

Functions

struct quoting_optionsclone_quoting_options (struct quoting_options *o)
 
enum quoting_style get_quoting_style (struct quoting_options const *o)
 
void set_quoting_style (struct quoting_options *o, enum quoting_style s)
 
int set_char_quoting (struct quoting_options *o, char c, int i)
 
int set_quoting_flags (struct quoting_options *o, int i)
 
void set_custom_quoting (struct quoting_options *o, char const *left_quote, char const *right_quote)
 
size_t quotearg_buffer (char *buffer, size_t buffersize, char const *arg, size_t argsize, struct quoting_options const *o)
 
char * quotearg_alloc (char const *arg, size_t argsize, struct quoting_options const *o)
 
char * quotearg_alloc_mem (char const *arg, size_t argsize, size_t *size, struct quoting_options const *o)
 
char * quotearg_n (int n, char const *arg)
 
char * quotearg (char const *arg)
 
char * quotearg_n_mem (int n, char const *arg, size_t argsize)
 
char * quotearg_mem (char const *arg, size_t argsize)
 
char * quotearg_n_style (int n, enum quoting_style s, char const *arg)
 
char * quotearg_n_style_mem (int n, enum quoting_style s, char const *arg, size_t argsize)
 
char * quotearg_style (enum quoting_style s, char const *arg)
 
char * quotearg_style_mem (enum quoting_style s, char const *arg, size_t argsize)
 
char * quotearg_char (char const *arg, char ch)
 
char * quotearg_char_mem (char const *arg, size_t argsize, char ch)
 
char * quotearg_colon (char const *arg)
 
char * quotearg_colon_mem (char const *arg, size_t argsize)
 
char * quotearg_n_style_colon (int n, enum quoting_style s, char const *arg)
 
char * quotearg_n_custom (int n, char const *left_quote, char const *right_quote, char const *arg)
 
char * quotearg_n_custom_mem (int n, char const *left_quote, char const *right_quote, char const *arg, size_t argsize)
 
char * quotearg_custom (char const *left_quote, char const *right_quote, char const *arg)
 
char * quotearg_custom_mem (char const *left_quote, char const *right_quote, char const *arg, size_t argsize)
 
void quotearg_free (void)
 

Variables

char const *const quoting_style_args []
 
enum quoting_style const quoting_style_vals []
 

Macro Definition Documentation

◆ DEFAULT_QUOTING_STYLE

#define DEFAULT_QUOTING_STYLE   literal_quoting_style

Enumeration Type Documentation

◆ quoting_flags

Enumerator
QA_ELIDE_NULL_BYTES 
QA_ELIDE_OUTER_QUOTES 
QA_SPLIT_TRIGRAPHS 

◆ quoting_style

Enumerator
literal_quoting_style 
shell_quoting_style 
shell_always_quoting_style 
shell_escape_quoting_style 
shell_escape_always_quoting_style 
c_quoting_style 
c_maybe_quoting_style 
escape_quoting_style 
locale_quoting_style 
clocale_quoting_style 
custom_quoting_style 

Function Documentation

◆ clone_quoting_options()

struct quoting_options* clone_quoting_options ( struct quoting_options o)
Here is the call graph for this function:

◆ get_quoting_style()

enum quoting_style get_quoting_style ( struct quoting_options const *  o)

◆ quotearg()

char* quotearg ( char const *  arg)
Here is the call graph for this function:

◆ quotearg_alloc()

char* quotearg_alloc ( char const *  arg,
size_t  argsize,
struct quoting_options const *  o 
)
Here is the call graph for this function:

◆ quotearg_alloc_mem()

char* quotearg_alloc_mem ( char const *  arg,
size_t  argsize,
size_t *  size,
struct quoting_options const *  o 
)

Referenced by quotearg_alloc().

Here is the call graph for this function:

◆ quotearg_buffer()

size_t quotearg_buffer ( char *  buffer,
size_t  buffersize,
char const *  arg,
size_t  argsize,
struct quoting_options const *  o 
)
Here is the call graph for this function:

◆ quotearg_char()

char* quotearg_char ( char const *  arg,
char  ch 
)

Referenced by quotearg_colon().

Here is the call graph for this function:

◆ quotearg_char_mem()

char* quotearg_char_mem ( char const *  arg,
size_t  argsize,
char  ch 
)

Referenced by quotearg_char(), and quotearg_colon_mem().

Here is the call graph for this function:

◆ quotearg_colon()

char* quotearg_colon ( char const *  arg)

Referenced by close_stdout().

Here is the call graph for this function:

◆ quotearg_colon_mem()

char* quotearg_colon_mem ( char const *  arg,
size_t  argsize 
)
Here is the call graph for this function:

◆ quotearg_custom()

char* quotearg_custom ( char const *  left_quote,
char const *  right_quote,
char const *  arg 
)
Here is the call graph for this function:

◆ quotearg_custom_mem()

char* quotearg_custom_mem ( char const *  left_quote,
char const *  right_quote,
char const *  arg,
size_t  argsize 
)
Here is the call graph for this function:

◆ quotearg_free()

void quotearg_free ( void  )

◆ quotearg_mem()

char* quotearg_mem ( char const *  arg,
size_t  argsize 
)
Here is the call graph for this function:

◆ quotearg_n()

char* quotearg_n ( int  n,
char const *  arg 
)

Referenced by quotearg().

Here is the call graph for this function:

◆ quotearg_n_custom()

char* quotearg_n_custom ( int  n,
char const *  left_quote,
char const *  right_quote,
char const *  arg 
)

Referenced by quotearg_custom().

Here is the call graph for this function:

◆ quotearg_n_custom_mem()

char* quotearg_n_custom_mem ( int  n,
char const *  left_quote,
char const *  right_quote,
char const *  arg,
size_t  argsize 
)

Referenced by quotearg_custom_mem(), and quotearg_n_custom().

Here is the call graph for this function:

◆ quotearg_n_mem()

char* quotearg_n_mem ( int  n,
char const *  arg,
size_t  argsize 
)

Referenced by quotearg_mem().

Here is the call graph for this function:

◆ quotearg_n_style()

char* quotearg_n_style ( int  n,
enum quoting_style  s,
char const *  arg 
)

Referenced by quotearg_style().

Here is the call graph for this function:

◆ quotearg_n_style_colon()

char* quotearg_n_style_colon ( int  n,
enum quoting_style  s,
char const *  arg 
)
Here is the call graph for this function:

◆ quotearg_n_style_mem()

char* quotearg_n_style_mem ( int  n,
enum quoting_style  s,
char const *  arg,
size_t  argsize 
)

Referenced by quotearg_style_mem().

Here is the call graph for this function:

◆ quotearg_style()

char* quotearg_style ( enum quoting_style  s,
char const *  arg 
)
Here is the call graph for this function:

◆ quotearg_style_mem()

char* quotearg_style_mem ( enum quoting_style  s,
char const *  arg,
size_t  argsize 
)
Here is the call graph for this function:

◆ set_char_quoting()

int set_char_quoting ( struct quoting_options o,
char  c,
int  i 
)

◆ set_custom_quoting()

void set_custom_quoting ( struct quoting_options o,
char const *  left_quote,
char const *  right_quote 
)

Referenced by quotearg_n_custom_mem().

◆ set_quoting_flags()

int set_quoting_flags ( struct quoting_options o,
int  i 
)

◆ set_quoting_style()

void set_quoting_style ( struct quoting_options o,
enum quoting_style  s 
)

Variable Documentation

◆ quoting_style_args

char const* const quoting_style_args[]

◆ quoting_style_vals

enum quoting_style const quoting_style_vals[]