From: Kevin Day Date: Fri, 5 Jan 2024 02:30:45 +0000 (-0600) Subject: Update: Add %ul strings as a common format string structure. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=c309dc77a32852a958c0ec4c4d5e3beab841092e;p=fll Update: Add %ul strings as a common format string structure. Printing color coded unsigned longs, which are generally f_number_unsigned_t, is expected to be common. --- diff --git a/level_0/f_string/c/string/static.c b/level_0/f_string/c/string/static.c index 442d0b1..94bb14c 100644 --- a/level_0/f_string/c/string/static.c +++ b/level_0/f_string/c/string/static.c @@ -157,6 +157,8 @@ extern "C" { const f_string_static_t f_string_format_rr_single_s = macro_f_string_static_t_initialize_1(F_string_format_rr_single_s, 0, F_string_format_rr_single_s_length); const f_string_static_t f_string_format_sentence_end_s = macro_f_string_static_t_initialize_1(F_string_format_sentence_end_s, 0, F_string_format_sentence_end_s_length); const f_string_static_t f_string_format_sentence_end_quote_s = macro_f_string_static_t_initialize_1(F_string_format_sentence_end_quote_s, 0, F_string_format_sentence_end_quote_s_length); + const f_string_static_t f_string_format_ul_double_s = macro_f_string_static_t_initialize_1(F_string_format_ul_double_s, 0, F_string_format_ul_double_s_length); + const f_string_static_t f_string_format_ul_single_s = macro_f_string_static_t_initialize_1(F_string_format_ul_single_s, 0, F_string_format_ul_single_s_length); #endif // _di_f_string_format_s_ #ifdef __cplusplus diff --git a/level_0/f_string/c/string/static.h b/level_0/f_string/c/string/static.h index 8a80779..22d7f36 100644 --- a/level_0/f_string/c/string/static.h +++ b/level_0/f_string/c/string/static.h @@ -509,6 +509,8 @@ extern "C" { #define F_string_format_rr_single_s "%[%r%r%]" #define F_string_format_sentence_end_s "%[.%]%r" #define F_string_format_sentence_end_quote_s "%['.%]%r" + #define F_string_format_ul_double_s "%[%[%ul%]%]" + #define F_string_format_ul_single_s "%[%ul%]" #define F_string_format_Q_double_s_length 10 #define F_string_format_Q_single_s_length 6 @@ -520,6 +522,8 @@ extern "C" { #define F_string_format_rr_single_s_length 8 #define F_string_format_sentence_end_s_length 7 #define F_string_format_sentence_end_quote_s_length 6 + #define F_string_format_ul_single_s_length 11 + #define F_string_format_ul_double_s_length 7 extern const f_string_static_t f_string_format_Q_double_s; extern const f_string_static_t f_string_format_Q_single_s; @@ -531,6 +535,8 @@ extern "C" { extern const f_string_static_t f_string_format_rr_single_s; extern const f_string_static_t f_string_format_sentence_end_s; extern const f_string_static_t f_string_format_sentence_end_quote_s; + extern const f_string_static_t f_string_format_ul_double_s; + extern const f_string_static_t f_string_format_ul_single_s; #endif // _di_f_string_format_s_ /**