Minishell
 
Loading...
Searching...
No Matches
Parsing Functions

Functions to make parsing efficient. More...

Functions

char ** parse_line (t_data *data, char *line)
 Prototype for parsing.
 
char ** ft_split_charset (const char *s, char *charset)
 
char * fill_string (char *result, char *temp)
 
char * handle_expand (t_data *data, char *str)
 
char * setup_string (t_data *data, char *str)
 
char ** expand_tildes_tokens (t_garbage *garbage, char **tokens)
 Expands all the tildes found in array with HOME.
 
size_t ft_strlen_charset (const char *str, const char *charset)
 
t_bool is_dollar (char *str)
 
t_bool detect_quote (const char *str)
 
size_t ft_strlen_choose_c (const char *str, char c)
 

Detailed Description

Functions to make parsing efficient.

Functions to parse the initial line.

Function Documentation

◆ detect_quote()

t_bool detect_quote ( const char * str)

◆ expand_tildes_tokens()

char ** expand_tildes_tokens ( t_garbage * garbage,
char ** tokens )

Expands all the tildes found in array with HOME.

Parameters
garbagegarbage structure
tokensarray of strings
Returns
char** tokens if OK, NULL otherwise
Here is the call graph for this function:

◆ fill_string()

char * fill_string ( char * result,
char * temp )

◆ ft_split_charset()

char ** ft_split_charset ( const char * s,
char * charset )
Here is the call graph for this function:

◆ ft_strlen_charset()

size_t ft_strlen_charset ( const char * str,
const char * charset )

◆ ft_strlen_choose_c()

size_t ft_strlen_choose_c ( const char * str,
char c )

◆ handle_expand()

char * handle_expand ( t_data * data,
char * str )
Here is the call graph for this function:

◆ is_dollar()

t_bool is_dollar ( char * str)

◆ parse_line()

char ** parse_line ( t_data * data,
char * line )

Prototype for parsing.

Parameters
datadata structure
lineline to parse
Returns
char**
Here is the call graph for this function:

◆ setup_string()

char * setup_string ( t_data * data,
char * str )
Here is the call graph for this function: