dhcpd-pools
3.0
ISC dhcpd lease usage analyser
|
#include <config.h>
#include "quotearg.h"
#include "quote.h"
#include "minmax.h"
#include "xalloc.h"
#include "c-strcaseeq.h"
#include "localcharset.h"
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include "gettext.h"
Data Structures | |
struct | quoting_options |
struct | slotvec |
Macros | |
#define | _(msgid) gettext (msgid) |
#define | N_(msgid) msgid |
#define | SIZE_MAX ((size_t) -1) |
#define | INT_BITS (sizeof (int) * CHAR_BIT) |
#define | FALLTHROUGH ((void) 0) |
#define | STORE(c) |
#define | START_ESC() |
#define | END_ESC() |
Functions | |
struct quoting_options * | clone_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) |
static struct quoting_options | quoting_options_from_style (enum quoting_style style) |
static char const * | gettext_quote (char const *msgid, enum quoting_style s) |
static size_t | quotearg_buffer_restyled (char *buffer, size_t buffersize, char const *arg, size_t argsize, enum quoting_style quoting_style, int flags, unsigned int const *quote_these_too, 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) |
void | quotearg_free (void) |
static char * | quotearg_n_options (int n, char const *arg, size_t argsize, struct quoting_options const *options) |
char * | quotearg_n (int n, char const *arg) |
char * | quotearg_n_mem (int n, char const *arg, size_t argsize) |
char * | quotearg (char const *arg) |
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_mem (char const *arg, size_t argsize, char ch) |
char * | quotearg_char (char const *arg, 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) |
char const * | quote_n_mem (int n, char const *arg, size_t argsize) |
char const * | quote_mem (char const *arg, size_t argsize) |
char const * | quote_n (int n, char const *arg) |
char const * | quote (char const *arg) |
Variables | |
char const *const | quoting_style_args [] |
enum quoting_style const | quoting_style_vals [] |
static struct quoting_options | default_quoting_options |
static char | slot0 [256] |
static int | nslots = 1 |
static struct slotvec | slotvec0 = {sizeof slot0, slot0} |
static struct slotvec * | slotvec = &slotvec0 |
struct quoting_options | quote_quoting_options |
#define _ | ( | msgid | ) | gettext (msgid) |
Referenced by gettext_quote().
#define END_ESC | ( | ) |
Referenced by quotearg_buffer_restyled().
#define FALLTHROUGH ((void) 0) |
Referenced by quotearg_buffer_restyled().
#define INT_BITS (sizeof (int) * CHAR_BIT) |
Referenced by quotearg_buffer_restyled(), and set_char_quoting().
#define N_ | ( | msgid | ) | msgid |
Referenced by quotearg_buffer_restyled().
#define SIZE_MAX ((size_t) -1) |
#define START_ESC | ( | ) |
Referenced by quotearg_buffer_restyled().
#define STORE | ( | c | ) |
Referenced by quotearg_buffer_restyled().
struct quoting_options* clone_quoting_options | ( | struct quoting_options * | o | ) |
enum quoting_style get_quoting_style | ( | struct quoting_options const * | o | ) |
|
static |
char const* quote | ( | char const * | arg | ) |
Referenced by field_selector(), parse_command_line_opts(), parse_config(), return_limit(), and strtod_or_err().
char const* quote_mem | ( | char const * | arg, |
size_t | argsize | ||
) |
char const* quote_n | ( | int | n, |
char const * | arg | ||
) |
char const* quote_n_mem | ( | int | n, |
char const * | arg, | ||
size_t | argsize | ||
) |
char* quotearg | ( | char const * | arg | ) |
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 | ||
) |
size_t quotearg_buffer | ( | char * | buffer, |
size_t | buffersize, | ||
char const * | arg, | ||
size_t | argsize, | ||
struct quoting_options const * | o | ||
) |
|
static |
Referenced by quotearg_alloc_mem(), quotearg_buffer(), and quotearg_n_options().
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_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 | ) |
char* quotearg_mem | ( | char const * | arg, |
size_t | argsize | ||
) |
char* quotearg_n | ( | int | n, |
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 | ||
) |
Referenced by quotearg_custom_mem(), and quotearg_n_custom().
char* quotearg_n_mem | ( | int | n, |
char const * | arg, | ||
size_t | argsize | ||
) |
|
static |
Referenced by quote_n_mem(), quotearg_char_mem(), quotearg_n(), quotearg_n_custom_mem(), quotearg_n_mem(), quotearg_n_style(), quotearg_n_style_colon(), and quotearg_n_style_mem().
char* quotearg_n_style | ( | int | n, |
enum quoting_style | s, | ||
char const * | arg | ||
) |
char* quotearg_n_style_colon | ( | 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 | ||
) |
|
static |
Referenced by quotearg_n_style(), quotearg_n_style_colon(), and quotearg_n_style_mem().
int set_char_quoting | ( | struct quoting_options * | o, |
char | c, | ||
int | i | ||
) |
Referenced by quotearg_char_mem(), and quotearg_n_style_colon().
void set_custom_quoting | ( | struct quoting_options * | o, |
char const * | left_quote, | ||
char const * | right_quote | ||
) |
Referenced by quotearg_n_custom_mem().
int set_quoting_flags | ( | struct quoting_options * | o, |
int | i | ||
) |
void set_quoting_style | ( | struct quoting_options * | o, |
enum quoting_style | s | ||
) |
|
static |
|
static |
Referenced by quotearg_free(), and quotearg_n_options().
struct quoting_options quote_quoting_options |
char const* const quoting_style_args[] |
enum quoting_style const quoting_style_vals[] |
|
static |
Referenced by quotearg_free(), and quotearg_n_options().
Referenced by quotearg_free(), and quotearg_n_options().
Referenced by quotearg_free(), and quotearg_n_options().