From: Kevin Day Date: Mon, 28 Mar 2022 04:27:56 +0000 (-0500) Subject: Cleanup: The f_string project. X-Git-Tag: 0.5.9~55 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=f858ca05b6438663424a0c3f682dade4fff7d5ff;p=fll Cleanup: The f_string project. --- diff --git a/level_0/f_string/c/string.c b/level_0/f_string/c/string.c index e431f9b..0e81725 100644 --- a/level_0/f_string/c/string.c +++ b/level_0/f_string/c/string.c @@ -11,9 +11,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; return private_f_string_append(source, length, destination); } @@ -25,9 +23,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (destination->used < length) { return private_f_string_append(source, length, destination); @@ -68,9 +64,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (!destination->used) { return private_f_string_append_nulless(source, length, destination); @@ -111,9 +105,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; return private_f_string_append_nulless(source, length, destination); } @@ -125,9 +117,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (glue_length && destination->used) { f_status_t status = private_f_string_append(glue, glue_length, destination); @@ -144,9 +134,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (glue_length && destination->used) { f_status_t status = private_f_string_append_nulless(glue, glue_length, destination); @@ -163,9 +151,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (glue_length && destination->used) { f_status_t status = private_f_string_prepend(glue, glue_length, destination); @@ -182,9 +168,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (glue_length && destination->used) { f_status_t status = private_f_string_prepend_nulless(glue, glue_length, destination); @@ -201,9 +185,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; return private_f_string_prepend(source, length, destination); } @@ -215,9 +197,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (destination->used < length) { return private_f_string_prepend(source, length, destination); @@ -258,9 +238,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; if (!destination->used) { return private_f_string_prepend_nulless(source, length, destination); @@ -301,9 +279,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length) { - return F_data_not; - } + if (!length) return F_data_not; return private_f_string_prepend_nulless(source, length, destination); } diff --git a/level_0/f_string/c/string.h b/level_0/f_string/c/string.h index 7433156..cf256f8 100644 --- a/level_0/f_string/c/string.h +++ b/level_0/f_string/c/string.h @@ -53,6 +53,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_append_ extern f_status_t f_string_append(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -78,6 +80,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_append_assure_ extern f_status_t f_string_append_assure(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -104,6 +108,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_append_assure_nulless_ extern f_status_t f_string_append_assure_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -129,6 +135,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_append_nulless_ extern f_status_t f_string_append_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -158,6 +166,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_mash_ extern f_status_t f_string_mash(const f_string_t glue, const f_array_length_t glue_length, const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -189,6 +199,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_mash_nulless_ extern f_status_t f_string_mash_nulless(const f_string_t glue, const f_array_length_t glue_length, const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -218,6 +230,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_mish_ extern f_status_t f_string_mish(const f_string_t glue, const f_array_length_t glue_length, const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -249,6 +263,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_mish_nulless_ extern f_status_t f_string_mish_nulless(const f_string_t glue, const f_array_length_t glue_length, const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -274,6 +290,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_prepend_ extern f_status_t f_string_prepend(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -301,6 +319,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_prepend_assure_ extern f_status_t f_string_prepend_assure(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -329,6 +349,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_prepend_assure_nulless_ extern f_status_t f_string_prepend_assure_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -357,6 +379,8 @@ extern "C" { * F_string_too_large (with error bit) if the combined string is too large. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_prepend_nulless_ extern f_status_t f_string_prepend_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination); @@ -379,6 +403,8 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_memory_resize(). + * + * @see f_memory_resize() */ #ifndef _di_f_string_seek_line_ extern f_status_t f_string_seek_line(const f_string_t string, f_string_range_t * const range);