FD.io VPP  v18.01.2-1-g9b554f3
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 clib_file_fill_buffer (unformat_input_t *input)
 
void unformat_init_clib_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 420 of file unformat.c.

#define UNFORMAT_INTEGER_UNSIGNED   0

Definition at line 421 of file unformat.c.

Function Documentation

static uword clib_file_fill_buffer ( unformat_input_t input)
static

Definition at line 1040 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 713 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 691 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 545 of file unformat.c.

+ Here is the caller graph for this function:

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

Definition at line 972 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 571 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_clib_file ( unformat_input_t input,
int  file_descriptor 
)

Definition at line 1058 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1007 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 1023 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 1066 of file unformat.c.

+ Here is the call graph for this function:

void unformat_init_vector ( unformat_input_t input,
u8 vector_string 
)

Definition at line 1031 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 424 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 815 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 983 of file unformat.c.

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

Definition at line 833 of file unformat.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: