26using json = nlohmann::json;
json read_json(string string_path)
Reads and parses a JSON file, uses nlohmann json library.
vector< string > split_string(string s, char delimiter)
Splits a string by a delimiter into tokens.
bool is_special_char(char c)
Checks if a character is special (non-alphanumeric and not underscore)
COLOR
Enumeration of available colors for formatted messages.
@ RESET
Reset to default color.
@ BRIGHT_YELLOW
Bright yellow color.
bool is_regular_file(string path)
Determines if a path refers to a regular file.
const vector< string > COLOR_TOKENS_UTILS_LIGTH
ANSI color codes for light terminal backgrounds.
void create_parents_folder_of_file_path(string file_path)
Creates all parent directories for a given file path.
bool does_file_exist(string file_path)
Checks if a file exists at the given path.
string format_colored_message(string message, COLOR color)
Formats a message with ANSI color codes.
bool is_empty_char(char c)
Checks if a character is considered empty/whitespace.
void ensure_file_is_open(std::ifstream &file, string file_name)
Ensures that a file stream is successfully opened.
vector< string > read_file_generic(string string_path)
Reads a file line by line into a vector of strings.
const int MKDIR_FLAG
Permission flags used when creating directories (rwx for owner)
const vector< string > COLOR_TOKENS_UTILS_DARK
ANSI color codes for dark terminal backgrounds.
const string LIMITER_PRINT
Constant string used as a visual delimiter/separator in prints.
void write_file_generic(string file_path, vector< string > content)
Writes content to a file at specified path.