FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
unformat.c File Reference
+ Include dependency graph for unformat.c:

Go to the source code of this file.

Macros

#define UNFORMAT_INTEGER_SIGNED   1
 
#define UNFORMAT_INTEGER_UNSIGNED   0
 

Functions

static uword is_white_space (uword c)
 
u8format_unformat_error (u8 *s, va_list *va)
 
u8format_unformat_input (u8 *s, va_list *va)
 
void di (unformat_input_t *i)
 
static uword unformat_string (unformat_input_t *input, uword delimiter_character, uword format_character, va_list *va)
 
uword unformat_hex_string (unformat_input_t *input, va_list *va)
 
uword unformat_eof (unformat_input_t *input, va_list *va)
 
uword unformat_token (unformat_input_t *input, va_list *va)
 
uword unformat_input (unformat_input_t *i, va_list *args)
 
uword unformat_line (unformat_input_t *i, va_list *va)
 
uword unformat_line_input (unformat_input_t *i, va_list *va)
 
static uword unformat_integer (unformat_input_t *input, va_list *va, uword base, uword is_signed, uword data_bytes)
 
static f64 times_power_of_ten (f64 x, int n)
 
static uword unformat_float (unformat_input_t *input, va_list *va)
 
static char * match_input_with_format (unformat_input_t *input, char *f)
 
static char * do_percent (unformat_input_t *input, va_list *va, char *f)
 
uword unformat_skip_white_space (unformat_input_t *input)
 
uword va_unformat (unformat_input_t *input, char *fmt, va_list *va)
 
uword unformat (unformat_input_t *input, char *fmt,...)
 
uword unformat_user (unformat_input_t *input, unformat_function_t *func,...)
 
void unformat_init_command_line (unformat_input_t *input, char *argv[])
 
void unformat_init_string (unformat_input_t *input, char *string, int string_len)
 
void unformat_init_vector (unformat_input_t *input, u8 *vector_string)
 
static uword unix_file_fill_buffer (unformat_input_t *input)
 
void unformat_init_unix_file (unformat_input_t *input, int file_descriptor)
 
uword unformat_init_unix_env (unformat_input_t *input, char *var)
 

Macro Definition Documentation

#define UNFORMAT_INTEGER_SIGNED   1

Definition at line 414 of file unformat.c.

#define UNFORMAT_INTEGER_UNSIGNED   0

Definition at line 415 of file unformat.c.

Function Documentation

void di ( unformat_input_t i)

Definition at line 163 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* do_percent ( unformat_input_t input,
va_list *  va,
char *  f 
)
static

Definition at line 707 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_unformat_error ( u8 s,
va_list *  va 
)

Definition at line 91 of file unformat.c.

+ Here is the call graph for this function:

u8* format_unformat_input ( u8 s,
va_list *  va 
)

Definition at line 143 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword is_white_space ( uword  c)
inlinestatic

Definition at line 74 of file unformat.c.

+ Here is the caller graph for this function:

static char* match_input_with_format ( unformat_input_t input,
char *  f 
)
static

Definition at line 685 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static f64 times_power_of_ten ( f64  x,
int  n 
)
static

Definition at line 539 of file unformat.c.

+ Here is the caller graph for this function:

uword unformat ( unformat_input_t input,
char *  fmt,
  ... 
)

Definition at line 966 of file unformat.c.

+ Here is the call graph for this function:

uword unformat_eof ( unformat_input_t input,
va_list *  va 
)

Definition at line 316 of file unformat.c.

+ Here is the call graph for this function:

static uword unformat_float ( unformat_input_t input,
va_list *  va 
)
static

Definition at line 565 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_hex_string ( unformat_input_t input,
va_list *  va 
)

Definition at line 272 of file unformat.c.

+ Here is the call graph for this function:

void unformat_init_command_line ( unformat_input_t input,
char *  argv[] 
)

Definition at line 1001 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void unformat_init_string ( unformat_input_t input,
char *  string,
int  string_len 
)

Definition at line 1017 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_init_unix_env ( unformat_input_t input,
char *  var 
)

Definition at line 1060 of file unformat.c.

+ Here is the call graph for this function:

void unformat_init_unix_file ( unformat_input_t input,
int  file_descriptor 
)

Definition at line 1052 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void unformat_init_vector ( unformat_input_t input,
u8 vector_string 
)

Definition at line 1025 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_input ( unformat_input_t i,
va_list *  args 
)

Definition at line 372 of file unformat.c.

+ Here is the call graph for this function:

static uword unformat_integer ( unformat_input_t input,
va_list *  va,
uword  base,
uword  is_signed,
uword  data_bytes 
)
static

Definition at line 418 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_line ( unformat_input_t i,
va_list *  va 
)

Definition at line 388 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_line_input ( unformat_input_t i,
va_list *  va 
)

Definition at line 404 of file unformat.c.

+ Here is the call graph for this function:

uword unformat_skip_white_space ( unformat_input_t input)

Definition at line 809 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword unformat_string ( unformat_input_t input,
uword  delimiter_character,
uword  format_character,
va_list *  va 
)
static

Definition at line 173 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_token ( unformat_input_t input,
va_list *  va 
)

Definition at line 323 of file unformat.c.

+ Here is the call graph for this function:

uword unformat_user ( unformat_input_t input,
unformat_function_t func,
  ... 
)

Definition at line 977 of file unformat.c.

static uword unix_file_fill_buffer ( unformat_input_t input)
static

Definition at line 1034 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword va_unformat ( unformat_input_t input,
char *  fmt,
va_list *  va 
)

Definition at line 827 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: