if (status == f_false) break;
} // for
+ if (*stop == *start) {
+ status = f_utf_is_whitespace(source + *stop, (stop_original - *stop) + 1);
+ if (f_status_is_error(status)) {
+ if (f_status_set_fine(status) == f_maybe) return f_status_set_error(f_invalid_utf);
+
+ return status;
+ }
+
+ if (status == f_true) return f_no_data;
+ }
+
return f_none;
}
#endif // !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
*
* @return
* f_none on success.
+ * f_no_data on success but only whitespace found.
* f_invalid_parameter (with error bit) if a parameter is invalid.
* f_error_allocation (with error bit) on memory allocation error.
* f_error_reallocation (with error bit) on memory reallocation error.
f_status status = private_fl_string_rip_find_range(source, &begin, &end);
if (f_status_is_error(status)) return status;
+ if (status == f_no_data) return status;
return private_fl_string_append(source, begin, end, destination);
}
f_status status = private_fl_string_rip_find_range(source, &begin, &end);
if (f_status_is_error(status)) return status;
+ if (status == f_no_data) return status;
return private_fl_string_append_nulless(source, begin, end, destination);
}
if (status == f_false) break;
} // for
+ if (*stop == *start) {
+ status = f_utf_character_is_whitespace(source[*stop]);
+ if (f_status_is_error(status)) {
+ if (f_status_set_fine(status) == f_maybe) return f_status_set_error(f_invalid_utf);
+
+ return status;
+ }
+
+ if (status == f_true) return f_no_data;
+ }
+
return f_none;
}
#endif // !defined(_di_fl_utf_string_rip_) || !defined(_di_fl_utf_string_dynamic_rip_) || !defined(_di_fl_utf_string_rip_nulless_) || !defined(_di_fl_utf_string_dynamic_rip_nulless_)
*
* @return
* f_none on success.
+ * f_no_data on success but only whitespace found.
* f_invalid_parameter (with error bit) if a parameter is invalid.
* f_error_allocation (with error bit) on memory allocation error.
* f_error_reallocation (with error bit) on memory reallocation error.
f_status status = private_fl_utf_string_rip_find_range(source, &begin, &end);
if (f_status_is_error(status)) return status;
+ if (status == f_no_data) return status;
return private_fl_utf_string_append(source, begin, end, destination);
}
f_status status = private_fl_utf_string_rip_find_range(source, &begin, &end);
if (f_status_is_error(status)) return status;
+ if (status == f_no_data) return status;
return private_fl_utf_string_append_nulless(source, begin, end, destination);
}