GDB (xrefs)
Classes | Functions
cli-utils.h File Reference

Go to the source code of this file.

Classes

class  number_or_range_parser
 

Functions

int get_number_trailer (const char **pp, int trailer)
 
int get_number (const char **)
 
int get_number (char **)
 
int number_is_in_list (const char *list, int number)
 
const char * remove_trailing_whitespace (const char *start, const char *s)
 
static char * remove_trailing_whitespace (const char *start, char *s)
 
std::string extract_arg (char **arg)
 
std::string extract_arg (const char **arg)
 
int check_for_argument (const char **str, const char *arg, int arg_len)
 
static int check_for_argument (char **str, const char *arg, int arg_len)
 

Function Documentation

◆ check_for_argument() [1/2]

int check_for_argument ( const char **  str,
const char *  arg,
int  arg_len 
)

◆ check_for_argument() [2/2]

static int check_for_argument ( char **  str,
const char *  arg,
int  arg_len 
)
inlinestatic

Definition at line 170 of file cli-utils.h.

References check_for_argument().

◆ extract_arg() [1/2]

std::string extract_arg ( char **  arg)

Definition at line 284 of file cli-utils.c.

References extract_arg(), and string.

◆ extract_arg() [2/2]

std::string extract_arg ( const char **  arg)

◆ get_number() [1/2]

int get_number ( const char **  )

◆ get_number() [2/2]

int get_number ( char **  )

Definition at line 118 of file cli-utils.c.

References get_number_trailer().

◆ get_number_trailer()

int get_number_trailer ( const char **  pp,
int  trailer 
)

◆ number_is_in_list()

int number_is_in_list ( const char *  list,
int  number 
)

◆ remove_trailing_whitespace() [1/2]

const char* remove_trailing_whitespace ( const char *  start,
const char *  s 
)

◆ remove_trailing_whitespace() [2/2]

static char* remove_trailing_whitespace ( const char *  start,
char *  s 
)
inlinestatic

Definition at line 146 of file cli-utils.h.

References remove_trailing_whitespace().