Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
rules_parse.c File Reference
#include "buff_format.h"
Include dependency graph for rules_parse.c:

Functions

static void parse_flags (t_rules *rules, const char **const fstring)
 Parses flag characters from the format string.
 
static void parse_width (t_rules *rules, const char **const fstring)
 Parses width specifier from the format string.
 
static void parse_precision (t_rules *rules, const char **const fstring)
 Parses precision specifier from the format string.
 
static void normalize (t_rules *rules)
 Normalizes rules based on conversion specifier constraints.
 
void rules_parse (t_rules *rules, const char **const fstring)
 Parses format specifiers from a format string.
 

Function Documentation

◆ normalize()

static void normalize ( t_rules rules)
static

Normalizes rules based on conversion specifier constraints.

Parameters
rulesPointer to the rules structure.
Here is the caller graph for this function:

◆ parse_flags()

static void parse_flags ( t_rules rules,
const char **const  fstring 
)
static

Parses flag characters from the format string.

Parameters
rulesPointer to the rules structure.
fstringPointer to format string pointer.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_precision()

static void parse_precision ( t_rules rules,
const char **const  fstring 
)
static

Parses precision specifier from the format string.

Parameters
rulesPointer to the rules structure.
fstringPointer to format string pointer.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_width()

static void parse_width ( t_rules rules,
const char **const  fstring 
)
static

Parses width specifier from the format string.

Parameters
rulesPointer to the rules structure.
fstringPointer to format string pointer.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rules_parse()

void rules_parse ( t_rules rules,
const char **const  fstring 
)

Parses format specifiers from a format string.

Parameters
rulesPointer to the rules structure to populate.
fstringPointer to format string pointer (advanced by parsing).
Here is the call graph for this function:
Here is the caller graph for this function: