FD.io VPP  v20.09-64-g4f7b92f0a
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)
 
uword unformat_data_size (unformat_input_t *input, va_list *args)
 

Macro Definition Documentation

◆ UNFORMAT_INTEGER_SIGNED

#define UNFORMAT_INTEGER_SIGNED   1

Definition at line 426 of file unformat.c.

◆ UNFORMAT_INTEGER_UNSIGNED

#define UNFORMAT_INTEGER_UNSIGNED   0

Definition at line 427 of file unformat.c.

Function Documentation

◆ clib_file_fill_buffer()

static uword clib_file_fill_buffer ( unformat_input_t input)
static

Definition at line 1046 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ di()

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:

◆ do_percent()

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

Definition at line 719 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_unformat_error()

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:

◆ format_unformat_input()

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:

◆ is_white_space()

static uword is_white_space ( uword  c)
inlinestatic

Definition at line 74 of file unformat.c.

+ Here is the caller graph for this function:

◆ match_input_with_format()

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

Definition at line 697 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ times_power_of_ten()

static f64 times_power_of_ten ( f64  x,
int  n 
)
static

Definition at line 551 of file unformat.c.

+ Here is the caller graph for this function:

◆ unformat()

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

Definition at line 978 of file unformat.c.

+ Here is the call graph for this function:

◆ unformat_data_size()

uword unformat_data_size ( unformat_input_t input,
va_list *  args 
)

Definition at line 1081 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_eof()

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:

◆ unformat_float()

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

Definition at line 577 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_hex_string()

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:

◆ unformat_init_clib_file()

void unformat_init_clib_file ( unformat_input_t input,
int  file_descriptor 
)

Definition at line 1064 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_init_command_line()

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

Definition at line 1013 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_init_string()

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

Definition at line 1029 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_init_unix_env()

uword unformat_init_unix_env ( unformat_input_t input,
char *  var 
)

Definition at line 1072 of file unformat.c.

+ Here is the call graph for this function:

◆ unformat_init_vector()

void unformat_init_vector ( unformat_input_t input,
u8 vector_string 
)

Definition at line 1037 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_input()

uword unformat_input ( unformat_input_t i,
va_list *  args 
)

Definition at line 383 of file unformat.c.

+ Here is the call graph for this function:

◆ unformat_integer()

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

Definition at line 430 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_line()

uword unformat_line ( unformat_input_t i,
va_list *  va 
)

Definition at line 399 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_line_input()

uword unformat_line_input ( unformat_input_t i,
va_list *  va 
)

Definition at line 415 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_skip_white_space()

uword unformat_skip_white_space ( unformat_input_t input)

Definition at line 821 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unformat_string()

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:

◆ unformat_token()

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:

◆ unformat_user()

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

Definition at line 989 of file unformat.c.

◆ va_unformat()

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

Definition at line 839 of file unformat.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: