FD.io VPP  v17.04.2-2-ga8f93f8
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 const char * match_input_with_format (unformat_input_t *input, const char *f)
 
static const char * do_percent (unformat_input_t *input, va_list *va, const char *f)
 
uword unformat_skip_white_space (unformat_input_t *input)
 
uword va_unformat (unformat_input_t *input, const char *fmt, va_list *va)
 
uword unformat (unformat_input_t *input, const 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 419 of file unformat.c.

#define UNFORMAT_INTEGER_UNSIGNED   0

Definition at line 420 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 const char* do_percent ( unformat_input_t input,
va_list *  va,
const char *  f 
)
static

Definition at line 712 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 const char* match_input_with_format ( unformat_input_t input,
const char *  f 
)
static

Definition at line 690 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 544 of file unformat.c.

+ Here is the caller graph for this function:

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

Definition at line 971 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 321 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 570 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 1006 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 1022 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 1065 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 1057 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 1030 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 377 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 423 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 393 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 409 of file unformat.c.

+ Here is the call graph for this function:

uword unformat_skip_white_space ( unformat_input_t input)

Definition at line 814 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 328 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 982 of file unformat.c.

static uword unix_file_fill_buffer ( unformat_input_t input)
static

Definition at line 1039 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,
const char *  fmt,
va_list *  va 
)

Definition at line 832 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: