FD.io VPP  v21.06-3-gbb25fbf28
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)
 
__clib_export u8format_unformat_error (u8 *s, va_list *va)
 
__clib_export 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)
 
__clib_export uword unformat_hex_string (unformat_input_t *input, va_list *va)
 
__clib_export uword unformat_eof (unformat_input_t *input, va_list *va)
 
__clib_export uword unformat_token (unformat_input_t *input, va_list *va)
 
__clib_export uword unformat_input (unformat_input_t *i, va_list *args)
 
__clib_export uword unformat_line (unformat_input_t *i, va_list *va)
 
__clib_export 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)
 
__clib_export uword unformat_skip_white_space (unformat_input_t *input)
 
__clib_export uword va_unformat (unformat_input_t *input, const char *fmt, va_list *va)
 
__clib_export uword unformat (unformat_input_t *input, const char *fmt,...)
 
__clib_export uword unformat_user (unformat_input_t *input, unformat_function_t *func,...)
 
__clib_export void unformat_init_command_line (unformat_input_t *input, char *argv[])
 
__clib_export void unformat_init_string (unformat_input_t *input, char *string, int string_len)
 
__clib_export void unformat_init_vector (unformat_input_t *input, u8 *vector_string)
 
static uword clib_file_fill_buffer (unformat_input_t *input)
 
__clib_export void unformat_init_clib_file (unformat_input_t *input, int file_descriptor)
 
uword unformat_init_unix_env (unformat_input_t *input, char *var)
 
__clib_export 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()

__clib_export 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()

__clib_export u8* format_unformat_input ( u8 s,
va_list *  va 
)

Definition at line 143 of file unformat.c.

+ 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

__clib_export 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()

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

Definition at line 989 of file unformat.c.

◆ va_unformat()

__clib_export 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: