The unit tests are failing because the function no longer exists.
The use if "digit" is probably the result of an over zealous refactor.
Rename the affected functions back to "decimal".
}
#endif // _di_f_conversion_character_is_binary_
-#ifndef _di_f_conversion_character_is_digit_
- f_status_t f_conversion_character_is_digit(const f_char_t character) {
+#ifndef _di_f_conversion_character_is_decimal_
+ f_status_t f_conversion_character_is_decimal(const f_char_t character) {
if (character > 0x2f && character < 0x3a) {
return F_true;
return F_false;
}
-#endif // _di_f_conversion_character_is_digit_
+#endif // _di_f_conversion_character_is_decimal_
#ifndef _di_f_conversion_character_is_duodecimal_
f_status_t f_conversion_character_is_duodecimal(const f_char_t character) {
* F_true if character is a decimal.
* F_false if character is not a decimal.
*/
-#ifndef _di_f_conversion_character_is_digit_
- extern f_status_t f_conversion_character_is_digit(const f_char_t character);
-#endif // _di_f_conversion_character_is_digit_
+#ifndef _di_f_conversion_character_is_decimal_
+ extern f_status_t f_conversion_character_is_decimal(const f_char_t character);
+#endif // _di_f_conversion_character_is_decimal_
/**
* Identify whether or not the given 1-byte character represents a duodecimal digit.
}
}
- if (f_conversion_character_is_digit(string[i]) == F_true) {
+ if (f_conversion_character_is_decimal(string[i]) == F_true) {
mode = 10;
break;
sign_found = -1;
}
- if (f_conversion_character_is_digit(string[i]) == F_true) {
+ if (f_conversion_character_is_decimal(string[i]) == F_true) {
mode = 10;
break;
}
// Numbers are not valid status code strings.
- status = f_conversion_character_is_digit(name.string[0]);
+ status = f_conversion_character_is_decimal(name.string[0]);
if (status == F_true) {
return F_status_set_error(F_data);
* F_data (with error bit) if not found.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_conversion_character_is_digit().
+ * Errors (with error bit) from: f_conversion_character_is_decimal().
*/
#ifndef _di_fll_fss_status_string_from_
extern f_status_t fll_fss_status_string_from(const f_string_static_t name, f_status_t * const code);
}
// Numbers are not valid status code strings.
- if ((status = f_conversion_character_is_digit(name.string[0])) == F_true) {
+ if ((status = f_conversion_character_is_decimal(name.string[0])) == F_true) {
return F_status_set_error(F_data);
}
* F_data (with error bit) if not found.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_conversion_character_is_digit().
+ * Errors (with error bit) from: f_conversion_character_is_decimal().
*/
#ifndef _di_fll_status_string_from_
extern f_status_t fll_status_string_from(const f_string_static_t name, f_status_t * const code);