From 72f0612d0f8029aeec3c60093451b3a17f3f72e5 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 14 Jan 2024 21:03:09 -0600 Subject: [PATCH] Update: Add %/Q strings as a common format string structure. --- level_0/f_string/c/string/static.c | 2 ++ level_0/f_string/c/string/static.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/level_0/f_string/c/string/static.c b/level_0/f_string/c/string/static.c index 94bb14c..b53a6b4 100644 --- a/level_0/f_string/c/string/static.c +++ b/level_0/f_string/c/string/static.c @@ -148,6 +148,8 @@ extern "C" { #ifndef _di_f_string_format_s_ const f_string_static_t f_string_format_Q_double_s = macro_f_string_static_t_initialize_1(F_string_format_Q_double_s, 0, F_string_format_Q_double_s_length); + const f_string_static_t f_string_format_Q_range_double_s = macro_f_string_static_t_initialize_1(F_string_format_Q_range_double_s, 0, F_string_format_Q_range_double_s_length); + const f_string_static_t f_string_format_Q_range_single_s = macro_f_string_static_t_initialize_1(F_string_format_Q_range_single_s, 0, F_string_format_Q_range_single_s_length); const f_string_static_t f_string_format_Q_single_s = macro_f_string_static_t_initialize_1(F_string_format_Q_single_s, 0, F_string_format_Q_single_s_length); const f_string_static_t f_string_format_QQ_double_s = macro_f_string_static_t_initialize_1(F_string_format_QQ_double_s, 0, F_string_format_QQ_double_s_length); const f_string_static_t f_string_format_QQ_single_s = macro_f_string_static_t_initialize_1(F_string_format_QQ_single_s, 0, F_string_format_QQ_single_s_length); diff --git a/level_0/f_string/c/string/static.h b/level_0/f_string/c/string/static.h index 22d7f36..adf8c28 100644 --- a/level_0/f_string/c/string/static.h +++ b/level_0/f_string/c/string/static.h @@ -500,6 +500,8 @@ extern "C" { */ #ifndef _di_f_string_format_s_ #define F_string_format_Q_double_s "%[%[%Q%]%]" + #define F_string_format_Q_range_double_s "%[%[%/Q%]%]" + #define F_string_format_Q_range_single_s "%[%/Q%]" #define F_string_format_Q_single_s "%[%Q%]" #define F_string_format_QQ_double_s "%[%[%Q%Q%]%]" #define F_string_format_QQ_single_s "%[%Q%Q%]" @@ -513,6 +515,8 @@ extern "C" { #define F_string_format_ul_single_s "%[%ul%]" #define F_string_format_Q_double_s_length 10 + #define F_string_format_Q_range_double_s_length 11 + #define F_string_format_Q_range_single_s_length 7 #define F_string_format_Q_single_s_length 6 #define F_string_format_QQ_double_s_length 12 #define F_string_format_QQ_single_s_length 8 @@ -526,6 +530,8 @@ extern "C" { #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_range_double_s; + extern const f_string_static_t f_string_format_Q_range_single_s; extern const f_string_static_t f_string_format_Q_single_s; extern const f_string_static_t f_string_format_QQ_double_s; extern const f_string_static_t f_string_format_QQ_single_s; -- 1.8.3.1