]> Kevux Git Server - fll/commitdiff
Update: Add %ul strings as a common format string structure.
authorKevin Day <thekevinday@gmail.com>
Fri, 5 Jan 2024 02:30:45 +0000 (20:30 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 5 Jan 2024 02:30:45 +0000 (20:30 -0600)
Printing color coded unsigned longs, which are generally f_number_unsigned_t, is expected to be common.

level_0/f_string/c/string/static.c
level_0/f_string/c/string/static.h

index 442d0b1c6df8a289da557b89758e5075bf3eaef5..94bb14ca168408cbf8f7178986da8dabc011350c 100644 (file)
@@ -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
index 8a807792331b6095c5c5651d22514c9607ee4139..22d7f36906e5240c7a72eec2b96663799e0ef5f5 100644 (file)
@@ -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_
 
 /**