plptools
Loading...
Searching...
No Matches
cli_utils Namespace Reference

Functions

bool is_number (const std::string &s)
 
int lookup_default_port ()
 
bool parse_port (const std::string &arg, std::string *host, int *port)
 
bool parse_port (std::nullptr_t, std::string *, int *)=delete
 

Function Documentation

◆ is_number()

bool cli_utils::is_number ( const std::string &  s)

Definition at line 34 of file cli_utils.cc.

◆ lookup_default_port()

int cli_utils::lookup_default_port ( )

Definition at line 43 of file cli_utils.cc.

◆ parse_port() [1/2]

bool cli_utils::parse_port ( const std::string &  arg,
std::string *  host,
int *  port 
)

Definition at line 52 of file cli_utils.cc.

◆ parse_port() [2/2]

bool cli_utils::parse_port ( std::nullptr_t  ,
std::string *  ,
int *   
)
delete