This should be the last commit needed to migrate from f_string_t to f_string_static_t.
In particular, this breaks apart several of the string rip functions into a dynamic rip and a partial dynamic rip function.
Try to use "buffer" as the variable name more often than not rather than using "dynamic" for f_string_static_t parameters.
f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
- if (range.stop < range.start) return F_status_set_error(F_parameter);
if (range.start >= buffer.used) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
return F_status_set_error(F_file_closed);
}
- if (!buffer.used) {
+ if (!buffer.used || range.start >= buffer.used) {
if (written) {
*written = 0;
}
f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
- if (range.stop < range.start) return F_status_set_error(F_parameter);
if (range.start >= buffer.used) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
return F_status_set_error(F_file_closed);
}
- if (!buffer.used) {
+ if (!buffer.used || range.start >= buffer.used) {
if (written) {
*written = 0;
}
* @return
* F_none on success.
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
+ * F_data_not if buffer.used is 0.
*
* F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation.
* F_buffer (with error bit) if the buffer is invalid.
* @return
* F_none on success.
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
+ * F_data_not if buffer.used is 0.
*
* F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation.
* F_buffer (with error bit) if the buffer is invalid.
* F_none on success.
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_data_not if buffer.used is 0 or total is 0.
*
* F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation.
* F_buffer (with error bit) if the buffer is invalid.
* F_none on success.
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_data_not if buffer.used is 0 or range.start > range.stop.
*
* F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation.
* F_buffer (with error bit) if the buffer is invalid.
uint16_t step_large;
uint16_t step_small;
- f_status_t (*handle)(const f_status_t error, void *state, void *internal);
- f_status_t (*interrupt)(void *state, void *internal);
+ f_status_t (*handle)(const f_status_t error, void * const state, void * const internal);
+ f_status_t (*interrupt)(void * const state, void * const internal);
void *callbacks;
void *custom;
#endif
#ifndef _di_fl_conversion_dynamic_partial_to_binary_signed_
- f_status_t fl_conversion_dynamic_partial_to_binary_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_binary_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_binary_signed(dynamic.string + range.start, (range.stop - range.start) + 1, negative, number);
+ return private_fl_conversion_dynamic_to_binary_signed(buffer.string + range.start, (range.stop - range.start) + 1, negative, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_binary_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_binary_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_binary_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_binary_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_binary_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_binary_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_binary_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_decimal_signed_
- f_status_t fl_conversion_dynamic_partial_to_decimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_decimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_decimal_signed(dynamic.string + range.start, (range.stop - range.start) + 1, negative, number);
+ return private_fl_conversion_dynamic_to_decimal_signed(buffer.string + range.start, (range.stop - range.start) + 1, negative, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_decimal_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_decimal_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_decimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_decimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_decimal_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_decimal_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_decimal_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_duodecimal_signed_
- f_status_t fl_conversion_dynamic_partial_to_duodecimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_duodecimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_duodecimal_signed(dynamic.string + range.start, (range.stop - range.start) + 1, negative, number);
+ return private_fl_conversion_dynamic_to_duodecimal_signed(buffer.string + range.start, (range.stop - range.start) + 1, negative, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_duodecimal_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_duodecimal_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_duodecimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_duodecimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_duodecimal_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_duodecimal_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_duodecimal_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_hexidecimal_signed_
- f_status_t fl_conversion_dynamic_partial_to_hexidecimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_hexidecimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_hexidecimal_signed(dynamic.string + range.start, (range.stop - range.start) + 1, negative, number);
+ return private_fl_conversion_dynamic_to_hexidecimal_signed(buffer.string + range.start, (range.stop - range.start) + 1, negative, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_hexidecimal_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_hexidecimal_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_hexidecimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_hexidecimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_hexidecimal_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_hexidecimal_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_hexidecimal_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_octal_signed_
- f_status_t fl_conversion_dynamic_partial_to_octal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_octal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_octal_signed(dynamic.string + range.start, (range.stop - range.start) + 1, negative, number);
+ return private_fl_conversion_dynamic_to_octal_signed(buffer.string + range.start, (range.stop - range.start) + 1, negative, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_octal_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_octal_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_octal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_octal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_octal_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_octal_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_octal_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_number_signed_
- f_status_t fl_conversion_dynamic_partial_to_number_signed(const f_string_static_t dynamic, const f_string_range_t range, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_number_signed(const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_number_signed(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_number_signed(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_number_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_number_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_number_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_number_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used || range.start > range.stop) {
+ if (!buffer.used || range.start > range.stop) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_number_unsigned(dynamic.string + range.start, (range.stop - range.start) + 1, number);
+ return private_fl_conversion_dynamic_to_number_unsigned(buffer.string + range.start, (range.stop - range.start) + 1, number);
}
#endif // _di_fl_conversion_dynamic_partial_to_number_unsigned_
#ifndef _di_fl_conversion_dynamic_to_binary_signed_
- f_status_t fl_conversion_dynamic_to_binary_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_binary_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_binary_signed(dynamic.string, dynamic.used, negative, number);
+ return private_fl_conversion_dynamic_to_binary_signed(buffer.string, buffer.used, negative, number);
}
#endif // _di_fl_conversion_dynamic_to_binary_signed_
#ifndef _di_fl_conversion_dynamic_to_binary_unsigned_
- f_status_t fl_conversion_dynamic_to_binary_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_binary_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_binary_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_binary_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_binary_unsigned_
#ifndef _di_fl_conversion_dynamic_to_decimal_signed_
- f_status_t fl_conversion_dynamic_to_decimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_decimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_decimal_signed(dynamic.string, dynamic.used, negative, number);
+ return private_fl_conversion_dynamic_to_decimal_signed(buffer.string, buffer.used, negative, number);
}
#endif // _di_fl_conversion_dynamic_to_decimal_signed_
#ifndef _di_fl_conversion_dynamic_to_decimal_unsigned_
- f_status_t fl_conversion_dynamic_to_decimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_decimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_decimal_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_decimal_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_decimal_unsigned_
#ifndef _di_fl_conversion_dynamic_to_duodecimal_signed_
- f_status_t fl_conversion_dynamic_to_duodecimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_duodecimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_duodecimal_signed(dynamic.string, dynamic.used, negative, number);
+ return private_fl_conversion_dynamic_to_duodecimal_signed(buffer.string, buffer.used, negative, number);
}
#endif // _di_fl_conversion_dynamic_to_duodecimal_signed_
#ifndef _di_fl_conversion_dynamic_to_duodecimal_unsigned_
- f_status_t fl_conversion_dynamic_to_duodecimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_duodecimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_duodecimal_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_duodecimal_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_duodecimal_unsigned_
#ifndef _di_fl_conversion_dynamic_to_hexidecimal_signed_
- f_status_t fl_conversion_dynamic_to_hexidecimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_hexidecimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_hexidecimal_signed(dynamic.string, dynamic.used, negative, number);
+ return private_fl_conversion_dynamic_to_hexidecimal_signed(buffer.string, buffer.used, negative, number);
}
#endif // _di_fl_conversion_dynamic_to_hexidecimal_signed_
#ifndef _di_fl_conversion_dynamic_to_hexidecimal_unsigned_
- f_status_t fl_conversion_dynamic_to_hexidecimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_hexidecimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_hexidecimal_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_hexidecimal_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_hexidecimal_unsigned_
#ifndef _di_fl_conversion_dynamic_to_octal_signed_
- f_status_t fl_conversion_dynamic_to_octal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_octal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_octal_signed(dynamic.string, dynamic.used, negative, number);
+ return private_fl_conversion_dynamic_to_octal_signed(buffer.string, buffer.used, negative, number);
}
#endif // _di_fl_conversion_dynamic_to_octal_signed_
#ifndef _di_fl_conversion_dynamic_to_octal_unsigned_
- f_status_t fl_conversion_dynamic_to_octal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_octal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_octal_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_octal_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_octal_unsigned_
#ifndef _di_fl_conversion_dynamic_to_number_signed_
- f_status_t fl_conversion_dynamic_to_number_signed(const f_string_static_t dynamic, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_to_number_signed(const f_string_static_t buffer, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_number_signed(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_number_signed(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_number_signed_
#ifndef _di_fl_conversion_dynamic_to_number_unsigned_
- f_status_t fl_conversion_dynamic_to_number_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_to_number_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!dynamic.used) {
+ if (!buffer.used) {
return F_data_not;
}
- return private_fl_conversion_dynamic_to_number_unsigned(dynamic.string, dynamic.used, number);
+ return private_fl_conversion_dynamic_to_number_unsigned(buffer.string, buffer.used, number);
}
#endif // _di_fl_conversion_dynamic_to_number_unsigned_
#ifdef __cplusplus
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_binary_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_binary_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_binary_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_binary_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_binary_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_binary_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_binary_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_binary_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_decimal_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_decimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_decimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_decimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_decimal_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_decimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_decimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_decimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_duodecimal_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_duodecimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_duodecimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_duodecimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_duodecimal_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_duodecimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_duodecimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_duodecimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_hexidecimal_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_hexidecimal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_hexidecimal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_hexidecimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_hexidecimal_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_hexidecimal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_hexidecimal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_hexidecimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_octal_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_octal_signed(const f_string_static_t dynamic, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_octal_signed(const f_string_static_t buffer, const f_string_range_t range, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_octal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_octal_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_octal_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_octal_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_octal_unsigned_
/**
* This function is similar to strtoll(), but the behavior of error handling and special bases are different.
* In particular, octals are specified here with '0b' prefix or '0B' prefix instead of the ridiculous '0' prefix.
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* @see strtoll()
*/
#ifndef _di_fl_conversion_dynamic_partial_to_number_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_number_signed(const f_string_static_t dynamic, const f_string_range_t range, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_number_signed(const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_number_signed_
/**
* In particular, octals are specified here with '0b' prefix or '0B' prefix instead of the ridiculous '0' prefix.
* Negative values are reported as such instead of being converted into the unsigned equivalent.
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param range
* The start/stop range to convert.
* @see strtoull()
*/
#ifndef _di_fl_conversion_dynamic_partial_to_number_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_number_unsigned(const f_string_static_t dynamic, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_number_unsigned(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_number_unsigned_
/**
* Convert a series of positive or negative binary number characters into a f_number_signed_t.
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param negative
* Set to 0 to treat string as a positive number, 1 for as a negative number.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_binary_signed_
- extern f_status_t fl_conversion_dynamic_to_binary_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_binary_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_binary_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_binary_unsigned_
- extern f_status_t fl_conversion_dynamic_to_binary_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_binary_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_binary_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param negative
* Set to 0 to treat string as a positive number, 1 for as a negative number.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_decimal_signed_
- extern f_status_t fl_conversion_dynamic_to_decimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_decimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_decimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_decimal_unsigned_
- extern f_status_t fl_conversion_dynamic_to_decimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_decimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_decimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param negative
* Set to 0 to treat string as a positive number, 1 for as a negative number.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_duodecimal_signed_
- extern f_status_t fl_conversion_dynamic_to_duodecimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_duodecimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_duodecimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_duodecimal_unsigned_
- extern f_status_t fl_conversion_dynamic_to_duodecimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_duodecimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_duodecimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param negative
* Set to 0 to treat string as a positive number, 1 for as a negative number.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_hexidecimal_signed_
- extern f_status_t fl_conversion_dynamic_to_hexidecimal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_hexidecimal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_hexidecimal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_hexidecimal_unsigned_
- extern f_status_t fl_conversion_dynamic_to_hexidecimal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_hexidecimal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_hexidecimal_unsigned_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param negative
* Set to 0 to treat string as a positive number, 1 for as a negative number.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_octal_signed_
- extern f_status_t fl_conversion_dynamic_to_octal_signed(const f_string_static_t dynamic, const bool negative, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_octal_signed(const f_string_static_t buffer, const bool negative, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_octal_signed_
/**
* This will ignore NULL values.
* This will not process signed statuses (+/-).
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_to_octal_unsigned_
- extern f_status_t fl_conversion_dynamic_to_octal_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_octal_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_octal_unsigned_
/**
* This function is similar to strtoll(), but the behavior of error handling and special bases are different.
* In particular, octals are specified here with '0b' prefix or '0B' prefix instead of the ridiculous '0' prefix.
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* @see strtoll()
*/
#ifndef _di_fl_conversion_dynamic_to_number_signed_
- extern f_status_t fl_conversion_dynamic_to_number_signed(const f_string_static_t dynamic, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_number_signed(const f_string_static_t buffer, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_to_number_signed_
/**
* In particular, octals are specified here with '0b' prefix or '0B' prefix instead of the ridiculous '0' prefix.
* Negative values are reported as such instead of being converted into the unsigned equivalent.
*
- * @param dynamic
+ * @param buffer
* The string to convert.
* @param number
* This will store the value of the converted string.
* @see strtoull()
*/
#ifndef _di_fl_conversion_dynamic_to_number_unsigned_
- extern f_status_t fl_conversion_dynamic_to_number_unsigned(const f_string_static_t dynamic, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_to_number_unsigned(const f_string_static_t buffer, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_to_number_unsigned_
#ifdef __cplusplus
#endif // _di_fl_directory_copy_content_
#ifndef _di_fl_directory_list_
- f_status_t fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
+ f_status_t fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t * const listing) {
#ifndef _di_level_1_parameter_checking_
if (!path.string) return F_status_set_error(F_parameter);
if (!listing) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_list_
#ifndef _di_fl_directory_path_pop_
- f_status_t fl_directory_path_pop(f_string_static_t *path) {
+ f_status_t fl_directory_path_pop(f_string_static_t * const path) {
#ifndef _di_level_1_parameter_checking_
if (!path->string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_directory_path_pop_
#ifndef _di_fl_directory_path_push_
- f_status_t fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!source.string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* @see f_string_dynamics_increase_by()
*/
#ifndef _di_fl_directory_list_
- extern f_status_t fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing);
+ extern f_status_t fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t * const listing);
#endif // _di_fl_directory_list_
/**
* Errors (with error bit) from: f_utf_is_control().
*/
#ifndef _di_fl_directory_path_pop_
- extern f_status_t fl_directory_path_pop(f_string_static_t *path);
+ extern f_status_t fl_directory_path_pop(f_string_static_t * const path);
#endif // _di_fl_directory_path_pop_
/**
* Errors (with error bit) from: f_utf_is_control().
*/
#ifndef _di_fl_directory_path_push_
- extern f_status_t fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t * const destination);
#endif // _di_fl_directory_path_push_
#ifdef __cplusplus
#endif // !defined(_di_fl_directory_copy_file_)
#if !defined(_di_fl_directory_list_)
- f_status_t private_fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
+ f_status_t private_fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t * const listing) {
struct dirent **entity = 0;
#endif // !defined(_di_fl_directory_list_)
#if !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
- f_status_t private_fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t private_fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t * const destination) {
bool terminated_null = F_false;
bool separator_prepend = F_false;
* @see fl_directory_list()
*/
#if !defined(_di_fl_directory_list_)
- extern f_status_t private_fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_directory_list(const f_string_static_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t * const listing) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_directory_list_)
/**
* @see fl_directory_path_push_dynamic()
*/
#if !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
- extern f_status_t private_fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_directory_path_push(const f_string_static_t source, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_environment_load_name_
- f_status_t fl_environment_load_name(const f_string_static_t name, f_string_maps_t *environment) {
- #ifndef _di_level_2_parameter_checking_
+ f_status_t fl_environment_load_name(const f_string_static_t name, f_string_maps_t * const environment) {
+ #ifndef _di_level_1_parameter_checking_
if (!environment) return F_status_set_error(F_parameter);
- #endif // _di_level_2_parameter_checking_
+ #endif // _di_level_1_parameter_checking_
if (!name.used) {
return F_data_not;
#endif // _di_fl_environment_load_name_
#ifndef _di_fl_environment_load_names_
- f_status_t fl_environment_load_names(const f_string_statics_t names, f_string_maps_t *environment) {
- #ifndef _di_level_2_parameter_checking_
+ f_status_t fl_environment_load_names(const f_string_statics_t names, f_string_maps_t * const environment) {
+ #ifndef _di_level_1_parameter_checking_
if (!environment) return F_status_set_error(F_parameter);
- #endif // _di_level_2_parameter_checking_
+ #endif // _di_level_1_parameter_checking_
if (!names.used) {
return F_data_not;
#endif // _di_fl_environment_load_names_
#ifndef _di_fl_environment_path_explode_
- f_status_t fl_environment_path_explode(const f_string_static_t path, f_string_dynamics_t *paths) {
- #ifndef _di_level_0_parameter_checking_
+ f_status_t fl_environment_path_explode(const f_string_static_t path, f_string_dynamics_t * const paths) {
+ #ifndef _di_level_1_parameter_checking_
if (!paths) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
+ #endif // _di_level_1_parameter_checking_
f_status_t status = F_none;
#endif // _di_fl_environment_path_explode_
#ifndef _di_fl_environment_path_explode_reverse_
- f_status_t fl_environment_path_explode_reverse(const f_string_static_t path, f_string_dynamics_t *paths) {
- #ifndef _di_level_0_parameter_checking_
+ f_status_t fl_environment_path_explode_reverse(const f_string_static_t path, f_string_dynamics_t * const paths) {
+ #ifndef _di_level_1_parameter_checking_
if (!paths) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
+ #endif // _di_level_1_parameter_checking_
f_status_t status = F_none;
#ifndef _FL_environment_h
#define _FL_environment_h
+// Libc includes.
#include <stdio.h>
#include <sys/stat.h>
* @see f_string_maps_increase_by()
*/
#ifndef _di_fl_environment_load_name_
- extern f_status_t fl_environment_load_name(const f_string_static_t name, f_string_maps_t *environment);
+ extern f_status_t fl_environment_load_name(const f_string_static_t name, f_string_maps_t * const environment);
#endif // _di_fl_environment_load_name_
/**
* @see f_string_maps_increase_by()
*/
#ifndef _di_fl_environment_load_names_
- extern f_status_t fl_environment_load_names(const f_string_statics_t names, f_string_maps_t *environment);
+ extern f_status_t fl_environment_load_names(const f_string_statics_t names, f_string_maps_t * const environment);
#endif // _di_fl_environment_load_names_
/**
* @see f_string_dynamics_increase_by()
*/
#ifndef _di_fl_environment_path_explode_
- extern f_status_t fl_environment_path_explode(const f_string_static_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode(const f_string_static_t path, f_string_dynamics_t * const paths);
#endif // _di_fl_environment_path_explode_
/**
* @see f_string_dynamics_increase_by()
*/
#ifndef _di_fl_environment_path_explode_reverse_
- extern f_status_t fl_environment_path_explode_reverse(const f_string_static_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode_reverse(const f_string_static_t path, f_string_dynamics_t * const paths);
#endif // _di_fl_environment_path_explode_reverse_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_object_read_
- f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t * const quote, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (F_status_is_error(status)) {
delimits->used = delimits_used;
-
- return status;
}
return status;
#endif // _di_fl_fss_basic_object_read_
#ifndef _di_fl_fss_basic_content_read_
- f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
#endif // _di_fl_fss_basic_content_read_
#ifndef _di_fl_fss_basic_object_write_
- f_status_t fl_fss_basic_object_write(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_object_write(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
if (F_status_is_error(status2)) {
destination->used = destination_used;
+
return status2;
}
#endif // _di_fl_fss_basic_object_write_
#ifndef _di_fl_fss_basic_content_write_
- f_status_t fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
if (range->start > range->stop || range->start >= content.used) {
- // content should be terminated, even if empty.
+ // Content should be terminated, even if empty.
if (complete == f_fss_complete_full_e || complete == f_fss_complete_full_trim_e || complete == f_fss_complete_end_e) {
status = f_string_dynamic_increase(state.step_large, destination);
if (F_status_is_error(status)) return status;
return F_data_not_eos;
}
- // ensure that there is room for the potential terminating newline.
+ // Ensure that there is room for the potential terminating newline.
status = f_string_dynamic_increase_by(destination->used + (range->stop - range->start) + 1, destination);
if (F_status_is_error(status)) return status;
return F_status_set_error(F_none_eol);
}
- if (content.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- }
+ if (content.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
destination->string[destination->used++] = content.string[range->start];
} // for
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_object_read_
- extern f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t * const quote, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_basic_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_content_read_
- extern f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_basic_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_object_write_
- extern f_status_t fl_fss_basic_object_write(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_object_write(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_basic_object_write_
/**
* F_string_too_large (with error bit) if appended string length is too large to store in the destination.
*/
#ifndef _di_fl_fss_basic_content_write_
- extern f_status_t fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_basic_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_list_object_read_
- f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_basic_list_object_read_
#ifndef _di_fl_fss_basic_list_content_read_
- f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
}
}
- if (buffer.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- } else if (buffer.string[range->start] != f_fss_delimit_slash_s.string[0]) {
- break;
- }
+ if (buffer.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
+ if (buffer.string[range->start] != f_fss_delimit_slash_s.string[0]) break;
++slash_count;
} // for
if (newline_last == found->array[found->used].start && buffer.string[found->array[found->used].start] != f_fss_eol_s.string[0]) {
range->start = newline_last;
+
return F_fss_found_content_not;
}
else {
#endif // _di_fl_fss_basic_list_content_read_
#ifndef _di_fl_fss_basic_list_object_write_
- f_status_t fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
}
}
- if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- } else if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) {
- break;
- }
+ if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
+ if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) break;
++slash_count;
} // for
destination->string[destination->used++] = f_fss_delimit_slash_s.string[0];
} // while
- if (range->start > range->stop || range->start >= object.used) {
- break;
- }
+ if (range->start > range->stop || range->start >= object.used) break;
}
if (object.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_list_object_read_
- extern f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_basic_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_list_content_read_
- extern f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments);
#endif // _di_fl_fss_basic_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_list_object_write_
- extern f_status_t fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_basic_list_object_write_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_list_content_write_
- extern f_status_t fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_basic_list_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_embedded_list_object_read_
- f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (buffer.string[range->start] == f_fss_embedded_list_open_s.string[0]) {
graph_first = F_false;
- stop = range->start - 1;
- ++range->start;
+ stop = range->start++ - 1;
while (range->start <= range->stop && range->start < buffer.used) {
if (buffer.string[range->start] == f_fss_delimit_slash_s.string[0]) {
if (slash_count % 2 == 1) {
- delimits->array[delimits->used] = range->start;
- ++delimits->used;
+ delimits->array[delimits->used++] = range->start;
}
--slash_count;
if (F_status_is_error(status)) {
delimits->used = delimits_used;
+
return status;
}
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
#endif // _di_fl_fss_embedded_list_object_read_
#ifndef _di_fl_fss_embedded_list_content_read_
- f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_nest_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
bool is_open = F_false;
- uint8_t graph_first = 0x0; // 0x0 = false, 0x1 = true, 0x2 = false, but there is a delimited comment, comment_delimit is set.
+ // 0x0 = false, 0x1 = true, 0x2 = false, but there is a delimited comment, comment_delimit is set.
+ uint8_t graph_first = 0x0;
// Initialize depth 1 start position.
// Positions_start.used is used as a max depth (such that positions_start.used == max depth + 1).
while (slashes.array[depth]) {
if (buffer.string[range->start] == f_fss_delimit_slash_s.string[0]) {
- if (slashes.array[depth]-- % 2 == 1) {
+ if (slashes.array[depth] % 2 == 1) {
delimits->array[delimits->used++] = range->start;
}
+
+ --slashes.array[depth];
}
// Delimit slashes and placeholders are required to be in the ASCII range.
// When slashes are even, the object is valid and needs to be processed.
if (is_object) {
- ++depth;
-
- if (depth > positions_start.size) {
+ if (++depth > positions_start.size) {
macro_f_array_lengths_t_resize(status, positions_start, positions_start.size + state.step_small);
if (F_status_is_error(status)) break;
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (buffer.string[range->start] == f_fss_eol_s.string[0]) {
newline_last = range->start;
line_start = range->start + 1;
+
break;
}
status = f_utf_buffer_increment(buffer, range, 1);
if (F_status_is_error(status)) break;
- if (buffer.string[range->start] == f_fss_eol_s.string[0]) {
- break;
- }
+ if (buffer.string[range->start] == f_fss_eol_s.string[0]) break;
if (buffer.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
status = f_fss_is_space(buffer, *range);
if (F_status_is_error(status)) break;
- if (status == F_false) {
- break;
- }
+ if (status == F_false) break;
}
} // while
status = f_utf_buffer_increment(buffer, range, 1);
if (F_status_is_error(status)) break;
- if (range->start >= buffer.used || range->start > range->stop) {
- break;
- }
+ if (range->start >= buffer.used || range->start > range->stop) break;
continue;
}
#endif // _di_fl_fss_embedded_list_content_read_
#ifndef _di_fl_fss_embedded_list_object_write_
- f_status_t fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (F_status_is_error(status)) break;
destination->string[destination->used++] = f_fss_delimit_slash_s.string[0];
+
break;
}
if (object.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
if (object.string[range->start] == f_fss_eol_s.string[0]) {
status = F_status_set_error(F_none_eol);
+
break;
}
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
- if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- } else if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) {
- break;
- }
+ if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
+ if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) break;
++slash_count;
} // for
if (range->start > range->stop || range->start >= object.used) {
ends_on_space = F_false;
+
break;
}
}
if (object.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
if (object.string[range->start] == f_fss_eol_s.string[0]) {
status = F_status_set_error(F_none_eol);
+
break;
}
#endif // _di_fl_fss_embedded_list_object_write_
#ifndef _di_fl_fss_embedded_list_content_write_
- f_status_t fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_embedded_list_object_read_
- extern f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_embedded_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_embedded_list_content_read_
- extern f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_nest_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments);
#endif // _di_fl_fss_embedded_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_embedded_list_object_write_
- extern f_status_t fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_embedded_list_object_write_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_embedded_list_content_write_
- extern f_status_t fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_embedded_list_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_object_read_
- f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t * const quoted, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_extended_object_read_
#ifndef _di_fl_fss_extended_content_read_
- f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_quotes_t * const quotes, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
}
}
- found->array[found->used] = content_partial;
- ++found->used;
+ found->array[found->used++] = content_partial;
if (quotes) {
quotes->array[quotes->used] = quoted == f_fss_quote_type_double_e ? f_string_ascii_quote_double_s.string[0] : f_string_ascii_quote_single_s.string[0];
#endif // _di_fl_fss_extended_content_read_
#ifndef _di_fl_fss_extended_object_write_
-f_status_t fl_fss_extended_object_write(const f_string_static_t object, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+f_status_t fl_fss_extended_object_write(const f_string_static_t object, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_extended_object_write_
#ifndef _di_fl_fss_extended_content_write_
- f_status_t fl_fss_extended_content_write(const f_string_static_t content, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_content_write(const f_string_static_t content, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_object_read_
- extern f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t * const quoted, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_extended_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_content_read_
- extern f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_quotes_t * const quotes, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_extended_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_object_write_
- extern f_status_t fl_fss_extended_object_write(const f_string_static_t object, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_object_write(const f_string_static_t object, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_extended_object_write_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_content_write_
- extern f_status_t fl_fss_extended_content_write(const f_string_static_t content, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_content_write(const f_string_static_t content, const f_fss_quote_t quoted, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_extended_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_list_object_read_
- f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (buffer.string[range->start] == f_fss_extended_list_open_s.string[0]) {
graph_first = F_false;
- stop = range->start - 1;
- ++range->start;
+ stop = range->start++ - 1;
while (range->start <= range->stop && range->start < buffer.used) {
if (buffer.string[range->start] == f_fss_eol_s.string[0]) {
start = range->start;
-
range->start = slash_first;
macro_f_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
#endif // _di_fl_fss_extended_list_object_read_
#ifndef _di_fl_fss_extended_list_content_read_
- f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (F_status_is_error(status)) break;
if (status == F_none_eol) {
- newline_last = range->start;
- ++range->start;
+ newline_last = range->start++;
continue;
}
}
}
- if (buffer.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- } else if (buffer.string[range->start] != f_fss_delimit_slash_s.string[0]) {
- break;
- }
+ if (buffer.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
+ if (buffer.string[range->start] != f_fss_delimit_slash_s.string[0]) break;
++slash_count;
} // for
#endif // _di_fl_fss_extended_list_content_read_
#ifndef _di_fl_fss_extended_list_object_write_
- f_status_t fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
}
}
- if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- } else if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) {
- break;
- }
+ if (object.string[range->start] == f_fss_delimit_placeholder_s.string[0]) continue;
+ if (object.string[range->start] != f_fss_delimit_slash_s.string[0]) break;
++slash_count;
} // for
#endif // _di_fl_fss_extended_list_object_write_
#ifndef _di_fl_fss_extended_list_content_write_
- f_status_t fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (F_status_is_error(status)) break;
if (has_graph) {
- // do nothing.
+ // Do nothing.
}
else if (content.string[range->start] == f_fss_eol_s.string[0] || range->start >= content.used || range->start > range->stop) {
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_list_object_read_
- extern f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_delimits_t * const delimits);
#endif // _di_fl_fss_extended_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_list_content_read_
- extern f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_content_t * const found, f_fss_delimits_t * const delimits, f_fss_comments_t * const comments);
#endif // _di_fl_fss_extended_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_list_object_write_
- extern f_status_t fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_extended_list_object_write_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_list_content_write_
- extern f_status_t fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination);
#endif // _di_fl_fss_extended_list_content_write_
#ifdef __cplusplus
}
#endif // _di_macro_fl_fss_object_return_on_overflow_delimited_
-#ifndef _di_macro_fl_fss_content_return_on_overflow_
- #define private_macro_fl_fss_content_return_on_overflow(buffer, range, found, delimits, delimits_used, eos_status, stop_status) \
- if (range.start >= buffer.used) { \
- delimits.used = delimits_used; \
- found.array[found.used].stop = buffer.used - 1; \
- return eos_status; \
- } \
- else if (range.start > range.stop) { \
- delimits.used = delimits_used; \
- found.array[found.used].stop = range.stop; \
- return stop_status; \
- }
-#endif // _di_macro_fl_fss_content_return_on_overflow_
-
#ifndef _di_macro_fl_fss_content_with_comments_return_on_overflow_
#define private_macro_fl_fss_content_with_comments_return_on_overflow(buffer, range, found, delimits, delimits_used, comments, comments_used, eos_status, stop_status) \
if (range.start >= buffer.used) { \
#endif
#if !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_)
- f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quoted, const f_array_length_t used_start, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quoted, const f_array_length_t used_start, f_state_t state, f_string_dynamic_t * const destination) {
f_status_t status = F_none;
f_string_range_t destination_range = macro_f_string_range_t_initialize(destination->used);
}
}
- if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- }
+ if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) continue;
status = f_fss_is_space(*destination, destination_range);
if (destination->string[destination_range.start] == quote_char) {
--destination_range.start;
+
break;
}
} // for
}
}
- if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- }
+ if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) continue;
status = f_fss_is_space(*destination, destination_range);
#endif // !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_)
#if !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
- f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) {
f_status_t status = F_none;
#endif // !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
#if !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
- f_status_t private_fl_fss_basic_list_write_object_trim(const f_array_length_t used_start, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_list_write_object_trim(const f_array_length_t used_start, f_state_t state, f_string_dynamic_t * const destination) {
f_status_t status = F_none;
f_string_range_t destination_range = macro_f_string_range_t_initialize(destination->used);
}
}
- if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) {
- continue;
- }
+ if (destination->string[destination_range.start] == f_fss_delimit_placeholder_s.string[0]) continue;
status = f_fss_is_space(*destination, destination_range);
status = f_fss_is_space(*destination, destination_range);
- // when going backwards, getting incomplete UTF-8 sequences is not an error.
+ // When going backwards, getting incomplete UTF-8 sequences is not an error.
if (F_status_set_fine(status) == F_complete_not_utf) continue;
if (F_status_is_error(status)) {
#endif // !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) {
+ f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t *quoted, f_fss_delimits_t * const delimits) {
f_status_t status = f_fss_skip_past_space(buffer, range);
if (F_status_is_error(status)) return status;
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
macro_f_fss_delimits_t_increase(status, state.step_small, (*delimits));
if (F_status_is_error(status)) return status;
- delimits->array[delimits->used] = first_slash;
- ++delimits->used;
+ delimits->array[delimits->used++] = first_slash;
status = f_utf_buffer_increment(buffer, range, 1);
if (F_status_is_error(status)) return status;
}
}
- ++range->start;
-
- if (range->start >= buffer.used) return F_none_eos;
+ if (++range->start >= buffer.used) return F_none_eos;
if (range->start > range->stop) return F_none_stop;
} // while
if (range->start >= buffer.used) {
found->stop = buffer.used - 1;
+
return F_data_not_eos;
}
if (range->start > range->stop) {
found->stop = range->stop;
+
return F_data_not_stop;
}
if (buffer.string[range->start] == f_fss_delimit_slash_s.string[0]) {
if (slash_count % 2 == 1) {
- delimits->array[delimits->used] = range->start;
- ++delimits->used;
+ delimits->array[delimits->used++] = range->start;
}
--slash_count;
if (F_status_is_error(status)) return status;
if (range->start > range->stop || range->start >= buffer.used) {
+
// EOS or EOL was reached, so it is a valid closing quoted.
// (for EOL, this is always TRUE, for EOS this could be false but there is no way to know this, so assume TRUE (@todo maybe none on stop?).
status = F_true;
}
}
else {
+
// EOS or EOL was reached, so it is a valid closing quoted.
// (for EOL, this is always TRUE, for EOS this could be false but there is no way to know this, so assume TRUE (@todo maybe none on stop?).
status = F_true;
}
if (buffer.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
-
while (range->start <= range->stop && range->start < buffer.used && buffer.string[range->start] != f_fss_eol_s.string[0]) {
if (state.interrupt) {
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (F_status_set_fine(status) == F_interrupt) {
status = F_status_set_error(F_interrupt);
+
break;
}
}
if (object.string[range->start] == f_fss_eol_s.string[0]) {
status = F_status_set_error(F_none_eol);
+
break;
}
destination->string[destination->used++] = f_fss_delimit_slash_s.string[0];
} // for
- destination->string[destination->used++] = object.string[range->start];
- ++range->start;
+ destination->string[destination->used++] = object.string[range->start++];
continue;
}
if (F_status_is_error(status)) break;
destination->string[destination->used++] = quote_char;
+
break;
}
}
else if (object.string[range->start] == f_fss_eol_s.string[0]) {
status = F_status_set_error(F_none_eol);
+
break;
}
else if (object.string[range->start] != f_fss_delimit_placeholder_s.string[0]) {
* @see fl_fss_extended_object_write()
*/
#if !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_)
- extern f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quoted, const f_array_length_t used_start, f_state_t state, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quoted, const f_array_length_t used_start, f_state_t state, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_)
/**
* @see f_string_dynamic_increase()
*/
#if !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
- extern f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
/**
* @see fl_fss_extended_list_object_write()
*/
#if !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
- extern f_status_t private_fl_fss_basic_list_write_object_trim(const f_array_length_t used_start, f_state_t state, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_fss_basic_list_write_object_trim(const f_array_length_t used_start, f_state_t state, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
/**
* @see fl_fss_extended_content_read()
*/
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- extern f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_state_t state, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_state_t state, f_string_range_t * const range, f_fss_object_t * const found, f_fss_quote_t * const quoted, f_fss_delimits_t * const delimits) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
/**
* @see fl_fss_extended_content_write()
*/
#if !defined(fl_fss_basic_object_write) || !defined(fl_fss_extended_object_write) || !defined(_di_fl_fss_extended_content_write_)
- extern f_status_t private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quoted, f_state_t state, f_string_range_t *range, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quoted, f_state_t state, f_string_range_t * const range, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // !defined(fl_fss_basic_object_write) || !defined(fl_fss_extended_object_write) || !defined(_di_fl_fss_extended_content_write_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_iki_read_
- f_status_t fl_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_iki_delimits_t *delimits) {
+ f_status_t fl_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t * const range, f_iki_variable_t * const variable, f_iki_vocabulary_t * const vocabulary, f_iki_content_t * const content, f_iki_delimits_t * const delimits) {
#ifndef _di_level_1_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
if (!range) return F_status_set_error(F_parameter);
* @see f_iki_read()
*/
#ifndef _di_fl_iki_read_
- extern f_status_t fl_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_iki_delimits_t *delimits);
+ extern f_status_t fl_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t * const range, f_iki_variable_t * const variable, f_iki_vocabulary_t * const vocabulary, f_iki_content_t * const content, f_iki_delimits_t * const delimits);
#endif // _di_fl_iki_read_
#ifdef __cplusplus
#endif
#ifndef _di_fl_print_format_
- f_status_t fl_print_format(const f_string_t string, FILE *stream, ...) {
+ f_status_t fl_print_format(const f_string_t string, FILE * const stream, ...) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_fl_print_format_
#ifndef _di_fl_print_format_convert_
- f_string_t fl_print_format_convert(const f_string_t string, FILE *stream, va_list *ap, f_status_t *status) {
+ f_string_t fl_print_format_convert(const f_string_t string, FILE * const stream, va_list * const ap, f_status_t * const status) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return 0;
if (!ap) return 0;
#endif // _di_fl_print_format_convert_
#ifndef _di_fl_print_string_va_
- f_status_t fl_print_string_va(const f_string_t string, FILE *stream, va_list *ap) {
+ f_status_t fl_print_string_va(const f_string_t string, FILE * const stream, va_list * const ap) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_fl_print_string_va_
#ifndef _di_fl_print_trim_
- f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_
#ifndef _di_fl_print_trim_raw_
- f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_raw_
#ifndef _di_fl_print_trim_raw_safely_
- f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_raw_safely_
#ifndef _di_fl_print_trim_safely_
- f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_safely_
#ifndef _di_fl_print_trim_dynamic_
- f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE *stream) {
+ f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_
#ifndef _di_fl_print_trim_dynamic_raw_
- f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_raw_
#ifndef _di_fl_print_trim_dynamic_raw_safely_
- f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_raw_safely_
#ifndef _di_fl_print_trim_dynamic_safely_
- f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_safely_
#ifndef _di_fl_print_trim_dynamic_partial_
- f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_partial_
#ifndef _di_fl_print_trim_dynamic_partial_raw_
- f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_partial_raw_
#ifndef _di_fl_print_trim_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_dynamic_partial_safely_
- f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *stream) {
+ f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_partial_safely_
#ifndef _di_fl_print_trim_except_
- f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_
#ifndef _di_fl_print_trim_except_raw_
- f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_raw_
#ifndef _di_fl_print_trim_except_raw_safely_
- f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_raw_safely_
#ifndef _di_fl_print_trim_except_safely_
- f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_safely_
#ifndef _di_fl_print_trim_except_dynamic_
- f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_
#ifndef _di_fl_print_trim_except_dynamic_raw_
- f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_raw_
#ifndef _di_fl_print_trim_except_dynamic_raw_safely_
- f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_raw_safely_
#ifndef _di_fl_print_trim_except_dynamic_safely_
- f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_safely_
#ifndef _di_fl_print_trim_except_in_
- f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_
#ifndef _di_fl_print_trim_except_in_raw_
- f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_raw_
#ifndef _di_fl_print_trim_except_in_raw_safely_
- f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_raw_safely_
#ifndef _di_fl_print_trim_except_in_safely_
- f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_
- f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_
#ifndef _di_fl_print_trim_except_in_dynamic_raw_
- f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_raw_
#ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_
- f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_raw_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_safely_
- f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_
- f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_partial_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_
- f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_
- f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_in_dynamic_partial_safely_
#ifndef _di_fl_print_trim_except_dynamic_partial_
- f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_partial_
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_
- f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_partial_raw_
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_except_dynamic_partial_safely_
- f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream) {
+ f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* @see f_print_terminated()
*/
#ifndef _di_fl_print_format_
- extern f_status_t fl_print_format(const f_string_t string, FILE *stream, ...);
+ extern f_status_t fl_print_format(const f_string_t string, FILE * const stream, ...);
#endif // _di_fl_print_format_
/**
* @see f_print_terminated()
*/
#ifndef _di_fl_print_format_convert_
- extern f_string_t fl_print_format_convert(const f_string_t string, FILE *stream, va_list *ap, f_status_t *status);
+ extern f_string_t fl_print_format_convert(const f_string_t string, FILE * const stream, va_list * const ap, f_status_t * const status);
#endif // _di_fl_print_format_convert_
/**
* @see fl_print_format()
*/
#ifndef _di_fl_print_string_va_
- extern f_status_t fl_print_string_va(const f_string_t string, FILE *stream, va_list *ap);
+ extern f_status_t fl_print_string_va(const f_string_t string, FILE * const stream, va_list * const ap);
#endif // _di_fl_print_string_va_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_
- extern f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE *stream);
+ extern f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream);
#endif // _di_fl_print_trim_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_raw_
- extern f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *stream);
+ extern f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream);
#endif // _di_fl_print_trim_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_raw_safely_
- extern f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *stream);
+ extern f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream);
#endif // _di_fl_print_trim_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_safely_
- extern f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *stream);
+ extern f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream);
#endif // _di_fl_print_trim_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_
- extern f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_raw_
- extern f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_raw_safely_
- extern f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_safely_
- extern f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_partial_
- extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_partial_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_partial_raw_
- extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_partial_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_partial_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_dynamic_partial_safely_
- extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *stream);
+ extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream);
#endif // _di_fl_print_trim_dynamic_partial_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_
- extern f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_raw_
- extern f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_raw_safely_
- extern f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_safely_
- extern f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_
- extern f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_raw_
- extern f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_raw_safely_
- extern f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_safely_
- extern f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_
- extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_raw_
- extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_raw_safely_
- extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_safely_
- extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_
- extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_raw_
- extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_
- extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_partial_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream);
#endif // _di_fl_print_trim_except_in_dynamic_partial_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_
- extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_partial_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_
- extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_partial_raw_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_
/**
* @see fputc_unlocked()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_safely_
- extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *stream);
+ extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream);
#endif // _di_fl_print_trim_except_dynamic_partial_safely_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
- f_string_t private_fl_print_format_convert(f_string_t string, FILE *stream, va_list *ap, f_status_t *status) {
+ f_string_t private_fl_print_format_convert(f_string_t string, FILE * const stream, va_list * const ap, f_status_t * const status) {
const f_string_t start = string;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
- f_string_t private_fl_print_convert_number(f_string_t string, va_list *ap, unsigned int *number, f_status_t *status) {
+ f_string_t private_fl_print_convert_number(f_string_t string, va_list *ap, unsigned int * const number, f_status_t * const status) {
for (*number = 0; *string; string += 1) {
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
#if !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
- f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
f_array_length_t i = offset;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
#if !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
- f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
f_array_length_t i = offset;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
#if !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
- f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
f_array_length_t i = offset;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
#if !defined(_di_fl_print_trim_except_safely_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_)
- f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) {
+ f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) {
f_array_length_t i = offset;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_safely_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_)
#if !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
- f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) {
f_array_length_t i = 0;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
#if !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_)
- f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) {
f_array_length_t i = 0;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_)
#if !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_)
- f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) {
f_array_length_t i = 0;
f_array_length_t j = 0;
#endif // !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_)
#if !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_)
- f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *stream) {
+ f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) {
f_array_length_t i = 0;
f_array_length_t j = 0;
* @see private_fl_print_convert_number()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
- extern f_string_t private_fl_print_format_convert(f_string_t string, FILE *stream, va_list *ap, f_status_t *status) F_attribute_visibility_internal_d;
+ extern f_string_t private_fl_print_format_convert(f_string_t string, FILE * const stream, va_list * const ap, f_status_t * const status) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
/**
* @see va_arg()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
- extern f_string_t private_fl_print_convert_number(f_string_t string, va_list *ap, unsigned int *number, f_status_t *status) F_attribute_visibility_internal_d;
+ extern f_string_t private_fl_print_convert_number(f_string_t string, va_list * const ap, unsigned int * const number, f_status_t * const status) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
/**
* @see fl_print_trim_except_in_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
- extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
/**
* @see fl_print_trim_except_in_dynamic_partial_raw()
*/
#if !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
- extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
/**
* @see fl_print_trim_except_in_dynamic_partial_raw_safely()
*/
#if !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
- extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
/**
* @see fl_print_trim_except_in_dynamic_partial_safely()
*/
#if !defined(_di_fl_print_trim_except_safely_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_)
- extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_except_safely_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_)
/**
* @see fl_print_trim_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
- extern f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
/**
* @see fl_print_trim_dynamic_partial_raw()
*/
#if !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_)
- extern f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_)
/**
* @see fl_print_trim_dynamic_partial_raw_safely()
*/
#if !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_)
- extern f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_)
/**
* @see fl_print_trim_dynamic_partial_safely()
*/
#if !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_)
- extern f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *stream) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_signal_state_interrupt_
- f_status_t fl_signal_state_interrupt(void *state, void *internal) {
+ f_status_t fl_signal_state_interrupt(void * const state, void * const internal) {
#ifndef _di_level_1_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* @see f_signal_read()
*/
#ifndef _di_fl_signal_state_interrupt_
- extern f_status_t fl_signal_state_interrupt(void *state, void *internal);
+ extern f_status_t fl_signal_state_interrupt(void * const state, void * const internal);
#endif // _di_fl_signal_state_interrupt_
#ifdef __cplusplus
}
#endif // !defined(_di_fl_string_compare_trim_) || !defined(_di_fl_string_dynamic_compare_trim_) || !defined(_di_fl_string_dynamic_partial_compare_trim_)
-#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
- f_status_t private_fl_string_rip_find_range(const f_string_t source, f_array_length_t *start, f_array_length_t *stop) {
+#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_partial_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_partial_rip_nulless_)
+ f_status_t private_fl_string_rip_find_range(const f_string_t source, f_array_length_t * const start, f_array_length_t * const stop) {
const f_array_length_t stop_original = *stop;
// Skip past leading whitespace.
for (; *start <= *stop; *start += width) {
- // skip past NULL.
+ // Skip past NULL.
while (*start < *stop && !source[*start]) ++(*start);
if (*start > *stop) break;
for (; *stop > *start; --(*stop)) {
- // skip past NULL.
+ // Skip past NULL.
while (*stop > *start && !source[*stop]) --(*stop);
if (!source[*stop]) continue;
if (*stop == *start) break;
- // each UTF-8 character of width 1 is an incomplete part.
- // go left until either width is 0 (ascii, or > 1) to determine the character.
+ // Each UTF-8 character of width 1 is an incomplete part.
+ // Go left until either width is 0 (ascii, or > 1) to determine the character.
for (;;) {
width = macro_f_utf_byte_width_is(source[*stop]);
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_)
+#endif // !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_partial_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_partial_rip_nulless_)
#ifdef __cplusplus
} // extern "C"
*
* @see fl_string_rip()
* @see fl_string_rip_nulless()
- * @see fl_string_dynamic_rip()
- * @see fl_string_dynamic_rip_nulless()
+ * @see fl_string_dynamic_partial_rip()
+ * @see fl_string_dynamic_partial_rip_nulless()
*/
-#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
- extern f_status_t private_fl_string_rip_find_range(const f_string_t source, f_array_length_t *start, f_array_length_t *stop) F_attribute_visibility_internal_d;
-#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_)
+#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_partial_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_partial_rip_nulless_)
+ extern f_status_t private_fl_string_rip_find_range(const f_string_t source, f_array_length_t * const start, f_array_length_t * const stop) F_attribute_visibility_internal_d;
+#endif // !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_partial_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_partial_rip_nulless_)
#ifdef __cplusplus
} // extern "C"
}
#endif // _di_fl_string_dynamic_partial_compare_trim_string_
-#ifndef _di_fl_string_dynamic_rip_
- f_status_t fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+#ifndef _di_fl_string_dynamic_partial_rip_
+ f_status_t fl_string_dynamic_partial_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
- if (range.stop < range.start) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
return F_data_not_eos;
}
+ if (range.start > range.stop) {
+ return F_data_not_stop;
+ }
+
f_array_length_t begin = range.start;
f_array_length_t end = range.stop;
- const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
- if (F_status_is_error(status)) return status;
-
- if (status == F_data_not) {
- return status;
- }
+ {
+ const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
+ if (F_status_is_error(status)) return status;
- if (!source.used) {
- return F_data_not_eos;
+ if (status == F_data_not) {
+ return status;
+ }
}
- if (range.start > range.stop) {
+ if (begin > end) {
return F_data_not_stop;
}
return f_string_append(source.string + begin, (end - begin) + 1, destination);
}
-#endif // _di_fl_string_dynamic_rip_
+#endif // _di_fl_string_dynamic_partial_rip_
-#ifndef _di_fl_string_dynamic_rip_nulless_
- f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+#ifndef _di_fl_string_dynamic_partial_rip_nulless_
+ f_status_t fl_string_dynamic_partial_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
- if (range.stop < range.start) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
return F_data_not_eos;
}
+ if (range.start > range.stop) {
+ return F_data_not_stop;
+ }
+
f_array_length_t begin = range.start;
f_array_length_t end = range.stop;
- const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
- if (F_status_is_error(status)) return status;
+ {
+ const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
+ if (F_status_is_error(status)) return status;
- if (status == F_data_not) {
- return status;
+ if (status == F_data_not) {
+ return status;
+ }
+ }
+
+ if (begin > end) {
+ return F_data_not_stop;
}
+ return f_string_append_nulless(source.string + begin, (end - begin) + 1, destination);
+ }
+#endif // _di_fl_string_dynamic_partial_rip_nulless_
+
+#ifndef _di_fl_string_dynamic_rip_
+ f_status_t fl_string_dynamic_rip(const f_string_static_t source, f_string_dynamic_t * const destination) {
+ #ifndef _di_level_1_parameter_checking_
+ if (!destination) return F_status_set_error(F_parameter);
+ #endif // _di_level_1_parameter_checking_
+
if (!source.used) {
return F_data_not_eos;
}
- if (range.start > range.stop) {
+ f_array_length_t begin = 0;
+ f_array_length_t end = source.used - 1;
+
+ {
+ const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
+ if (F_status_is_error(status)) return status;
+
+ if (status == F_data_not) {
+ return status;
+ }
+ }
+
+ if (begin > end) {
+ return F_data_not_stop;
+ }
+
+ return f_string_append(source.string + begin, (end - begin) + 1, destination);
+ }
+#endif // _di_fl_string_dynamic_rip_
+
+#ifndef _di_fl_string_dynamic_rip_nulless_
+ f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, f_string_dynamic_t * const destination) {
+ #ifndef _di_level_1_parameter_checking_
+ if (!destination) return F_status_set_error(F_parameter);
+ #endif // _di_level_1_parameter_checking_
+
+ if (!source.used) {
+ return F_data_not_eos;
+ }
+
+ f_array_length_t begin = 0;
+ f_array_length_t end = source.used - 1;
+
+ {
+ const f_status_t status = private_fl_string_rip_find_range(source.string, &begin, &end);
+ if (F_status_is_error(status)) return status;
+
+ if (status == F_data_not) {
+ return status;
+ }
+ }
+
+ if (begin > end) {
return F_data_not_stop;
}
#endif // _di_fl_string_dynamic_rip_nulless_
#ifndef _di_fl_string_dynamic_seek_line_to_utf_character_
- f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_character_t seek_to_this, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!string) {
+ if (!buffer.used) {
return F_data_not;
}
f_status_t status = F_none;
unsigned short width = 0;
-
f_array_length_t width_max = 0;
while (range->start <= range->stop) {
+
width_max = (range->stop - range->start) + 1;
- width = macro_f_utf_byte_width_is(string[range->start]);
+ width = macro_f_utf_byte_width_is(buffer.string[range->start]);
if (!width) {
width = 1;
- if (string[range->start] == f_string_eol_s.string[0]) {
+ if (buffer.string[range->start] == f_string_eol_s.string[0]) {
return F_none_eol;
}
if (seek_width == width) {
- if (string[range->start] == seek_to_this) {
+ if (buffer.string[range->start] == seek_to_this) {
return F_none;
}
}
if (width == seek_width) {
f_utf_character_t character = 0;
- status = f_utf_char_to_character(string + range->start, width_max, &character);
+ status = f_utf_char_to_character(buffer.string + range->start, width_max, &character);
if (F_status_is_error(status)) return status;
if (character == seek_to_this) {
#endif // _di_fl_string_dynamic_seek_line_to_utf_character_
#ifndef _di_fl_string_dynamic_seek_line_until_graph_
- f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!string) {
+ if (!buffer.used) {
return F_data_not;
}
f_array_length_t width_max = (range->stop - range->start) + 1;
- while (string[range->start] == placeholder || (status = f_utf_is_graph(string + range->start, width_max)) == F_false) {
+ while (buffer.string[range->start] == placeholder || (status = f_utf_is_graph(buffer.string + range->start, width_max)) == F_false) {
if (F_status_is_error(status)) return status;
- if (string[range->start] == f_string_eol_s.string[0]) {
+ if (buffer.string[range->start] == f_string_eol_s.string[0]) {
return F_none_eol;
}
- width = macro_f_utf_byte_width_is(string[range->start]);
+ width = macro_f_utf_byte_width_is(buffer.string[range->start]);
if (!width) {
width = 1;
#endif // _di_fl_string_dynamic_seek_line_until_graph_
#ifndef _di_fl_string_dynamic_seek_line_until_graph_non_
- f_status_t fl_string_dynamic_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!string) {
+ if (!buffer.used) {
return F_data_not;
}
f_array_length_t width_max = (range->stop - range->start) + 1;
- while (string[range->start] == placeholder || (status = f_utf_is_whitespace(string + range->start, width_max)) == F_false) {
+ while (buffer.string[range->start] == placeholder || (status = f_utf_is_whitespace(buffer.string + range->start, width_max)) == F_false) {
if (F_status_is_error(status)) return status;
- if (string[range->start] == f_string_eol_s.string[0]) {
+ if (buffer.string[range->start] == f_string_eol_s.string[0]) {
return F_none_eol;
}
- width = macro_f_utf_byte_width_is(string[range->start]);
+ width = macro_f_utf_byte_width_is(buffer.string[range->start]);
if (!width) {
width = 1;
#endif // _di_fl_string_dynamic_seek_line_until_graph_non_
#ifndef _di_fl_string_dynamic_seek_to_utf_character_
- f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_character_t seek_to_this, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (!string) {
+ if (!buffer.used) {
return F_data_not;
}
while (range->start <= range->stop) {
width_max = (range->stop - range->start) + 1;
- width = macro_f_utf_byte_width_is(string[range->start]);
+ width = macro_f_utf_byte_width_is(buffer.string[range->start]);
if (!width) {
width = 1;
if (seek_width == width) {
- if (string[range->start] == seek_to_this) {
+ if (buffer.string[range->start] == seek_to_this) {
return F_none;
}
}
if (width == seek_width) {
f_utf_character_t character = 0;
- status = f_utf_char_to_character(string + range->start, width_max, &character);
+ status = f_utf_char_to_character(buffer.string + range->start, width_max, &character);
if (F_status_is_error(status)) return status;
if (character == seek_to_this) {
}
#endif // _di_fl_string_dynamic_seek_to_utf_character_
-#ifndef _di_fl_string_fll_identify_
- f_status_t fl_string_fll_identify(const f_string_static_t buffer, f_string_range_t *range, f_fll_id_t *id) {
+#ifndef _di_fl_string_dynamic_partial_fll_identify_
+ f_status_t fl_string_dynamic_partial_fll_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_id_t * const id) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
if (!buffer.string[j]) continue;
if (buffer.string[j] == f_string_ascii_minus_s.string[0]) break;
- id->name[i] = buffer.string[j];
- ++i;
+ id->name[i++] = buffer.string[j];
} // for
id->used = i + 1;
return F_found;
}
-#endif // _di_fl_string_fll_identify_
+#endif // _di_fl_string_dynamic_partial_fll_identify_
#ifndef _di_fl_string_rip_
- f_status_t fl_string_rip(const f_string_t source, const f_array_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_rip(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_rip_
#ifndef _di_fl_string_rip_nulless_
- f_status_t fl_string_rip_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_rip_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_rip_nulless_
#ifndef _di_fl_string_seek_line_to_utf_character_
- f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_to_utf_character_
#ifndef _di_fl_string_seek_line_until_graph_
- f_status_t fl_string_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_until_graph_
#ifndef _di_fl_string_seek_line_until_graph_non_
- f_status_t fl_string_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_until_graph_non_
#ifndef _di_fl_string_seek_to_utf_character_
- f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t * const range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
* F_string_too_large (with error bit) if the combined string is too large.
*/
-#ifndef _di_fl_string_dynamic_rip_
- extern f_status_t fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
-#endif // _di_fl_string_dynamic_rip_
+#ifndef _di_fl_string_dynamic_partial_rip_
+ extern f_status_t fl_string_dynamic_partial_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+#endif // _di_fl_string_dynamic_partial_rip_
/**
* Allocate a new string from the provided range in the buffer.
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*/
+#ifndef _di_fl_string_dynamic_partial_rip_nulless_
+ extern f_status_t fl_string_dynamic_partial_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+#endif // _di_fl_string_dynamic_partial_rip_nulless_
+
+/**
+ * Allocate a new string from the provided range in the buffer.
+ *
+ * Ignores leading and trailing whitespace.
+ * Ignores leading and trailing NULL characters.
+ * As a result, resulting size may be smaller than requested range.
+ *
+ * @param source
+ * The buffer to rip from.
+ * @param destination
+ * The new string, which will be allocated or reallocated as necessary.
+ *
+ * @return
+ * F_none on success.
+ * F_data_not_eos if source length is 0.
+ *
+ * F_memory_not (with error bit) on out of memory.
+ * F_parameter (with error bit) if a parameter is invalid.
+ * F_string_too_large (with error bit) if the combined string is too large.
+ */
+#ifndef _di_fl_string_dynamic_rip_
+ extern f_status_t fl_string_dynamic_rip(const f_string_static_t source, f_string_dynamic_t * const destination);
+#endif // _di_fl_string_dynamic_rip_
+
+/**
+ * Allocate a new string from the provided range in the buffer.
+ *
+ * Ignores leading and trailing whitespace.
+ * Ignores leading and trailing NULL characters.
+ * As a result, resulting size may be smaller than requested range.
+ *
+ * Skips over NULL characters from source when appending.
+ *
+ * @param source
+ * The string to rip from.
+ * @param destination
+ * The new string, which will be allocated or reallocated as necessary.
+ *
+ * @return
+ * F_none on success.
+ * F_data_not_eos if source length is 0.
+ *
+ * F_memory_not (with error bit) on out of memory.
+ * F_parameter (with error bit) if a parameter is invalid.
+ */
#ifndef _di_fl_string_dynamic_rip_nulless_
- extern f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, f_string_dynamic_t * const destination);
#endif // _di_fl_string_dynamic_rip_nulless_
/**
* Seek the buffer location forward until the character (up to 4-byte wide) or EOL is reached.
*
- * @param string
+ * @param buffer
* The string to traverse.
* @param seek_to_this
* A 1-width, 2-width, 3-width, or 4-width character representing a character to seek to.
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_dynamic_seek_line_to_utf_character_
- extern f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_character_t seek_to_this, f_string_range_t * const range);
#endif // _di_fl_string_dynamic_seek_line_to_utf_character_
/**
* Increment buffer location until a graph character (including UTF-8) or an EOL is matched.
*
- * @param string
+ * @param buffer
* The string to traverse.
* @param placeholder
* A single-width character representing a placeholder to ignore (may be NULL).
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_dynamic_seek_line_until_graph_
- extern f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range);
#endif // _di_fl_string_dynamic_seek_line_until_graph_
/**
* Increment buffer location until a non-graph character (including UTF-8) or an EOL is matched.
*
- * @param string
+ * @param buffer
* The string to traverse.
* @param placeholder
* A single-width character representing a placeholder to ignore (may be NULL).
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_dynamic_seek_line_until_graph_non_
- extern f_status_t fl_string_dynamic_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range);
#endif // _di_fl_string_dynamic_seek_line_until_graph_non_
/**
* Seek the buffer location forward until the UTF-8 character (up to 4-byte wide) is reached.
*
- * @param string
+ * @param buffer
* The string to traverse.
* @param seek_to_this
* A 1-width, 2-width, 3-width, or 4-width character representing a character to seek to.
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_dynamic_seek_to_utf_character_
- extern f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_character_t seek_to_this, f_string_range_t * const range);
#endif // _di_fl_string_dynamic_seek_to_utf_character_
/**
* @see f_utf_is_whitespace()
* @see f_utf_is_word()
*/
-#ifndef _di_fl_string_fll_identify_
- extern f_status_t fl_string_fll_identify(const f_string_static_t buffer, f_string_range_t *range, f_fll_id_t *id);
-#endif // _di_fl_string_fll_identify_
+#ifndef _di_fl_string_dynamic_partial_fll_identify_
+ extern f_status_t fl_string_dynamic_partial_fll_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_id_t * const id);
+#endif // _di_fl_string_dynamic_partial_fll_identify_
/**
* Allocate a new string from the provided range in the string.
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_rip_
- extern f_status_t fl_string_rip(const f_string_t source, const f_array_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_rip(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination);
#endif // _di_fl_string_rip_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_rip_nulless_
- extern f_status_t fl_string_rip_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_rip_nulless(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination);
#endif // _di_fl_string_rip_nulless_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_seek_line_to_utf_character_
- extern f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t * const range);
#endif // _di_fl_string_seek_line_to_utf_character_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_seek_line_until_graph_
- extern f_status_t fl_string_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range);
#endif // _di_fl_string_seek_line_until_graph_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_seek_line_until_graph_non_
- extern f_status_t fl_string_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range);
#endif // _di_fl_string_seek_line_until_graph_non_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_seek_to_utf_character_
- extern f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t * const range);
#endif // _di_fl_string_seek_to_utf_character_
#ifdef __cplusplus
for (; i1 < stop1 && i2 < stop2; ++i1, ++i2) {
- // skip past NULL in string1.
+ // Skip past NULL in string1.
while (i1 < stop1 && !string1[i1]) ++i1;
if (i1 == stop1) break;
- // skip past NULL in string2.
+ // Skip past NULL in string2.
while (i2 < stop2 && !string2[i2]) ++i2;
if (i2 == stop2) break;
if (string1[i1] != string2[i2]) return F_equal_to_not;
} // for
- // only return F_equal_to if all remaining characters are NULL.
+ // Only return F_equal_to if all remaining characters are NULL.
for (; i1 < stop1; ++i1) {
if (string1[i1] != 0) return F_equal_to_not;
} // for
f_status_t status = F_none;
- // skip past leading whitespace in string1.
+ // Skip past leading whitespace in string1.
for (; i1 < stop1; ++i1) {
- // skip past NULL in string1.
+ // Skip past NULL in string1.
while (i1 < stop1 && !string1[i1]) ++i1;
if (i1 == stop1) break;
if (F_status_is_error(status)) {
- // ignore possibly invalid UTF-8 codes.
+ // Ignore possibly invalid UTF-8 codes.
if (F_status_set_fine(status) != F_maybe) {
return status;
}
if (status == F_false) break;
} // for
- // skip past leading whitespace in string2.
+ // Skip past leading whitespace in string2.
for (; i2 < stop2; i2++) {
- // skip past NULL in string2.
+ // Skip past NULL in string2.
while (i2 < stop2 && !string2[i2]) ++i2;
if (i2 == stop2) break;
if (F_status_is_error(status)) {
- // ignore possibly invalid UTF-8 codes.
+ // Ignore possibly invalid UTF-8 codes.
if (F_status_set_fine(status) != F_maybe) {
return status;
}
f_array_length_t last2 = i2;
{
- // size1 and size2 are to represent to total number of characters after trim.
+ // The size1 and size2 are to represent to total number of characters after trim.
f_array_length_t size1 = 0;
f_array_length_t size2 = 0;
f_array_length_t j = 0;
- // determine where the last non-whitespace is in string1.
+ // Determine where the last non-whitespace is in string1.
for (j = i1; j < stop1; ++j) {
- // skip past NULL in string1.
+ // Skip past NULL in string1.
while (j < stop1 && !string1[j]) ++j;
if (j == stop1) break;
}
} // for
- // determine where the last non-whitespace is in string2.
+ // Determine where the last non-whitespace is in string2.
for (j = i2; j < stop2; ++j) {
- // skip past NULL in string2.
+ // Skip past NULL in string2.
while (j < stop2 && !string2[j]) ++j;
if (j == stop2) break;
if (F_status_is_error(status)) {
- // ignore possibly invalid UTF-8 codes.
+ // Ignore possibly invalid UTF-8 codes.
if (F_status_set_fine(status) != F_maybe) {
return status;
}
for (; i1 < last1 && i2 < last2; ++i1, ++i2) {
- // skip past NULL in string1.
+ // Skip past NULL in string1.
while (i1 < last1 && !string1[i1]) ++i1;
if (i1 == last1) break;
- // skip past NULL in string2.
+ // Skip past NULL in string2.
while (i2 < last2 && !string2[i2]) ++i2;
if (i2 == last2) break;
if (string1[i1] != string2[i2]) return F_equal_to_not;
} // for
- // only return F_equal_to if all remaining characters are NULL.
+ // Only return F_equal_to if all remaining characters are NULL.
for (; i1 < last1; ++i1) {
if (string1[i1] != 0) return F_equal_to_not;
} // for
// Skip past leading whitespace.
for (; *start <= *stop; ++(*start)) {
- // skip past NULL.
+ // Skip past NULL.
while (*start < *stop && !source[*start]) ++(*start);
if (*start > *stop) break;
for (; *stop > *start; --(*stop)) {
- // skip past NULL.
+ // Skip past NULL.
while (*stop > *start && !source[*stop]) --(*stop);
if (!source[*stop]) continue;
#endif // _di_fl_utf_string_dynamic_partial_compare_trim_
#ifndef _di_fl_utf_string_dynamic_rip_
- f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_rip_
#ifndef _di_fl_utf_string_dynamic_rip_nulless_
- f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_rip_nulless_
#ifndef _di_fl_utf_string_dynamic_seek_line_to_char_
- f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t *range, const char seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
while (buffer.string[range->start] != seek_to_character) {
- if (buffer.string[range->start] == F_utf_character_t_eol_d) {
+ if (buffer.string[range->start++] == F_utf_character_t_eol_d) {
return F_none_eol;
}
- ++range->start;
-
if (macro_f_utf_character_t_width_is(buffer.string[range->start]) == 1) {
return F_status_set_error(F_utf);
}
#endif // _di_fl_utf_string_dynamic_seek_line_to_char_
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_
- f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
return status;
}
- if (buffer.string[range->start] == F_utf_character_t_eol_d) {
+ if (buffer.string[range->start++] == F_utf_character_t_eol_d) {
return F_none_eol;
}
- ++range->start;
-
if (macro_f_utf_character_t_width_is(buffer.string[range->start]) == 1) {
return F_status_set_error(F_utf);
}
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_non_
- f_status_t fl_utf_string_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_non_
#ifndef _di_fl_utf_string_dynamic_seek_to_char_
- f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t *range, const char seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_to_char_
#ifndef _di_fl_utf_string_rip_
- f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_rip_
#ifndef _di_fl_utf_string_rip_nulless_
- f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_rip_nulless_
#ifndef _di_fl_utf_string_seek_line_to_char_
- f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t *range, const char seek_to_this) {
+ f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_line_to_char_
#ifndef _di_fl_utf_string_seek_line_until_graph_
- f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_string_range_t * const range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
return status;
}
- if (string[range->start] == F_utf_character_t_eol_d) {
+ if (string[range->start++] == F_utf_character_t_eol_d) {
return F_none_eol;
}
- ++range->start;
-
if (macro_f_utf_character_t_width_is(string[range->start]) == 1) {
return F_status_set_error(F_utf);
}
#endif // _di_fl_utf_string_seek_line_until_graph_
#ifndef _di_fl_utf_string_seek_line_until_graph_non_
- f_status_t fl_utf_string_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t * const range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
return status;
}
- if (string[range->start] == F_utf_character_t_eol_d) {
+ if (string[range->start++] == F_utf_character_t_eol_d) {
return F_none_eol;
}
- ++range->start;
-
if (macro_f_utf_character_t_width_is(string[range->start]) == 1) {
return F_status_set_error(F_utf);
}
#endif // _di_fl_utf_string_seek_line_until_graph_non_
#ifndef _di_fl_utf_string_seek_to_char_
- f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t *range, const char seek_to_this) {
+ f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (range->start > range->stop) return F_data_not_stop;
+ if (range->start > range->stop) {
+ return F_data_not_stop;
+ }
const f_utf_character_t seek_to_character = seek_to_this << 24;
while (range->start <= range->stop) {
- if (string[range->start] == seek_to_character) {
+ if (string[range->start++] == seek_to_character) {
return F_none;
}
- ++range->start;
-
if (macro_f_utf_character_t_width_is(string[range->start]) == 1) {
return F_status_set_error(F_utf);
}
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_rip_
- extern f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_string_dynamic_rip_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_dynamic_rip_nulless_
- extern f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_string_dynamic_rip_nulless_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_to_char_
- extern f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t *range, const char seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const char seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_
- extern f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_non_
- extern f_status_t fl_utf_string_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_non_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_dynamic_seek_to_char_
- extern f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t *range, const char seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const char seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_to_char_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_rip_
- extern f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_string_rip_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_rip_nulless_
- extern f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_array_length_t length, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_string_rip_nulless_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_line_to_char_
- extern f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t *range, const char seek_to_this);
+ extern f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const char seek_to_this);
#endif // _di_fl_utf_string_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_seek_line_until_graph_
- extern f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_string_range_t * const range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_seek_line_until_graph_non_
- extern f_status_t fl_utf_string_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t * const range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_seek_line_until_graph_non_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_to_character_
- extern f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t *range, const char seek_to_this);
+ extern f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const char seek_to_this);
#endif // _di_fl_utf_string__seek_to_character_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
- void private_fl_utf_file_process_read_buffer(const char *buffer_read, const ssize_t size_read, f_utf_string_dynamic_t *buffer, char buffer_char[], uint8_t *width, int8_t *width_last) {
+ void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, char buffer_char[], uint8_t * const width, int8_t * const width_last) {
uint8_t increment_by = 0;
#endif // !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
#if !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(fl_utf_file_write_range)
- f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_array_length_t total, f_array_length_t *written) {
+ f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_array_length_t total, f_array_length_t * const written) {
*written = 0;
* @see fl_utf_file_read_until()
*/
#if !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
- void private_fl_utf_file_process_read_buffer(const char *buffer_read, const ssize_t size_read, f_utf_string_dynamic_t *buffer, char buffer_char[], uint8_t *width, int8_t *width_last) F_attribute_visibility_internal_d;
+ void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, char buffer_char[], uint8_t * const width, int8_t * const width_last) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
/**
* @see fl_utf_file_write_until()
*/
#if !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(_di_fl_utf_file_write_range_)
- extern f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_array_length_t total, f_array_length_t *written) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_array_length_t total, f_array_length_t * const written) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(_di_fl_utf_file_write_range_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_utf_file_read_
- f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
- if (!buffer) return F_status_set_error(F_parameter);
+ if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
if (file.id < 0) {
while ((size_read = read(file.id, buffer_read, file.size_read)) > 0) {
- if (buffer->used + size_read > buffer->size) {
- if (buffer->size + size_read > F_string_t_size_d) {
+ if (destination->used + size_read > destination->size) {
+ if (destination->size + size_read > F_string_t_size_d) {
return F_status_set_error(F_string_too_large);
}
- macro_f_utf_string_dynamic_t_resize(status, (*buffer), buffer->size + size_read);
+ macro_f_utf_string_dynamic_t_resize(status, (*destination), destination->size + size_read);
if (F_status_is_error(status)) return status;
}
- private_fl_utf_file_process_read_buffer(buffer_read, size_read, buffer, buffer_char, &width, &width_last);
+ private_fl_utf_file_process_read_buffer(buffer_read, size_read, destination, buffer_char, &width, &width_last);
} // while
if (!size_read) {
#endif // _di_fl_utf_file_read_
#ifndef _di_fl_utf_file_read_block_
- f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
- if (!buffer) return F_status_set_error(F_parameter);
+ if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
if (file.id < 0) return F_status_set_error(F_file);
memset(&buffer_read, 0, sizeof(file.size_read));
if ((size_read = read(file.id, buffer_read, file.size_read)) > 0) {
- if (buffer->used + size_read > buffer->size) {
- if (buffer->size + size_read > F_string_t_size_d) {
+ if (destination->used + size_read > destination->size) {
+ if (destination->size + size_read > F_string_t_size_d) {
return F_status_set_error(F_string_too_large);
}
- macro_f_utf_string_dynamic_t_resize(status, (*buffer), buffer->size + size_read);
+ macro_f_utf_string_dynamic_t_resize(status, (*destination), destination->size + size_read);
if (F_status_is_error(status)) return status;
}
- private_fl_utf_file_process_read_buffer(buffer_read, size_read, buffer, buffer_char, &width, &width_last);
+ private_fl_utf_file_process_read_buffer(buffer_read, size_read, destination, buffer_char, &width, &width_last);
}
if (!size_read) {
#endif // _di_fl_utf_file_read_block_
#ifndef _di_fl_utf_file_read_until_
- f_status_t fl_utf_file_read_until(const f_file_t file, const f_array_length_t total, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read_until(const f_file_t file, const f_array_length_t total, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
- if (!buffer) return F_status_set_error(F_parameter);
+ if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
if (file.id < 0) {
while (buffer_count < total && (size_read = read(file.id, buffer_read, buffer_size)) > 0) {
- if (buffer->used + size_read > buffer->size) {
- if (buffer->size + size_read > F_string_t_size_d) {
+ if (destination->used + size_read > destination->size) {
+ if (destination->size + size_read > F_string_t_size_d) {
return F_status_set_error(F_string_too_large);
}
- macro_f_utf_string_dynamic_t_resize(status, (*buffer), buffer->size + size_read);
+ macro_f_utf_string_dynamic_t_resize(status, (*destination), destination->size + size_read);
if (F_status_is_error(status)) return status;
}
- private_fl_utf_file_process_read_buffer(buffer_read, size_read, buffer, buffer_char, &width, &width_last);
+ private_fl_utf_file_process_read_buffer(buffer_read, size_read, destination, buffer_char, &width, &width_last);
} // while
if (!size_read) {
#endif // _di_fl_utf_file_read_until_
#ifndef _di_fl_utf_file_write_
- f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_array_length_t *written) {
+ f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t destination, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
return F_status_set_error(F_file_closed);
}
- if (!buffer.used) {
+ if (!destination.used) {
*written = 0;
return F_data_not;
}
- const f_status_t status = private_fl_utf_file_write_until(file, buffer.string, buffer.used, written);
+ const f_status_t status = private_fl_utf_file_write_until(file, destination.string, destination.used, written);
if (F_status_is_error(status)) return F_status_set_error(status);
- if (status == F_none && *written == buffer.used) {
+ if (status == F_none && *written == destination.used) {
return F_none_eos;
}
#endif // _di_fl_utf_file_write_
#ifndef _di_fl_utf_file_write_block_
- f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_array_length_t *written) {
+ f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t destination, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
return F_status_set_error(F_file_closed);
}
- if (!buffer.used) {
+ if (!destination.used) {
*written = 0;
return F_data_not;
f_array_length_t write_max = file.size_write;
- if (write_max > buffer.used) {
- write_max = buffer.used;
+ if (write_max > destination.used) {
+ write_max = destination.used;
}
- const f_status_t status = private_fl_utf_file_write_until(file, buffer.string, write_max, written);
+ const f_status_t status = private_fl_utf_file_write_until(file, destination.string, write_max, written);
if (F_status_is_error(status)) return F_status_set_error(status);
- if (status == F_none && *written == buffer.used) {
+ if (status == F_none && *written == destination.used) {
return F_none_eos;
}
#endif // _di_fl_utf_file_write_block_
#ifndef _di_fl_utf_file_write_until_
- f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) {
+ f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t destination, const f_array_length_t total, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
return F_status_set_error(F_file_closed);
}
- if (!buffer.used || !total) {
+ if (!destination.used || !total) {
*written = 0;
return F_data_not;
f_array_length_t write_max = file.size_write;
- if (write_max > buffer.used) {
- write_max = buffer.used;
+ if (write_max > destination.used) {
+ write_max = destination.used;
}
- const f_status_t status = private_fl_utf_file_write_until(file, buffer.string, write_max, written);
+ const f_status_t status = private_fl_utf_file_write_until(file, destination.string, write_max, written);
if (F_status_is_error(status)) return F_status_set_error(status);
- if (status == F_none && *written == buffer.used) {
+ if (status == F_none && *written == destination.used) {
return F_none_eos;
}
#endif // _di_fl_utf_file_write_until_
#ifndef _di_fl_utf_file_write_range_
- f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_string_range_t range, f_array_length_t *written) {
+ f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t destination, const f_string_range_t range, f_array_length_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
- if (range.stop < range.start) return F_status_set_error(F_parameter);
- if (range.start >= buffer.used) return F_status_set_error(F_parameter);
+ if (range.start >= destination.used) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (file.id < 0) {
return F_status_set_error(F_file_closed);
}
- if (!buffer.used) {
+ if (!destination.used) {
*written = 0;
return F_data_not;
const f_array_length_t total = (range.stop - range.start) + 1;
f_array_length_t write_max = total;
- if (write_max > buffer.used) {
- write_max = buffer.used;
+ if (write_max > destination.used) {
+ write_max = destination.used;
}
- const f_status_t status = private_fl_utf_file_write_until(file, buffer.string + range.start, write_max, written);
+ const f_status_t status = private_fl_utf_file_write_until(file, destination.string + range.start, write_max, written);
if (F_status_is_error(status)) return F_status_set_error(status);
if (status == F_none) {
return F_none_stop;
}
- if (range.start + *written == buffer.used) {
+ if (range.start + *written == destination.used) {
return F_none_eos;
}
}
/**
* Read until EOF is reached.
*
- * To check how much was read into the buffer, record buffer->used before execution and compare to buffer->used after execution.
+ * To check how much was read into the destination, record destination->used before execution and compare to destination->used after execution.
*
* @param file
* The file to read.
* The file must already be open.
- * @param buffer
- * The buffer the file is being read into.
- * The contents of the file is appended into this buffer.
+ * @param destination
+ * The destination the file is being read into.
+ * The contents of the file is appended into this destination.
*
* @return
* F_none on success.
* @see read()
*/
#ifndef _di_fl_utf_file_read_
- extern f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_file_read_
/**
* Read until a single block is filled or EOF is reached.
*
- * To check how much was read into the buffer, record buffer->used before execution and compare to buffer->used after execution.
+ * To check how much was read into the destination, record destination->used before execution and compare to destination->used after execution.
*
* @param file
* The file to read.
* The file must already be open.
- * @param buffer
- * The buffer the file is being read into.
- * The contents of the file is appended into this buffer.
+ * @param destination
+ * The destination the file is being read into.
+ * The contents of the file is appended into this destination.
*
* @return
* F_none on success.
* @see read()
*/
#ifndef _di_fl_utf_file_read_block_
- extern f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_file_read_block_
/**
- * Read until a given number or EOF is reached, storing it in the buffer.
+ * Read until a given number or EOF is reached, storing it in the destination.
*
- * To check how much was read into the buffer, record buffer->used before execution and compare to buffer->used after execution.
+ * To check how much was read into the destination, record destination->used before execution and compare to destination->used after execution.
*
* @param file
* The file to read.
* The file must already be open.
* @param total
* The total bytes to read, unless EOF is reached first.
- * @param buffer
- * The buffer the file is being read into.
+ * @param destination
+ * The destination the file is being read into.
*
* @return
* F_none on success.
* @see read()
*/
#ifndef _di_fl_utf_file_read_until_
- extern f_status_t fl_utf_file_read_until(const f_file_t file, const f_array_length_t total, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read_until(const f_file_t file, const f_array_length_t total, f_utf_string_dynamic_t * const destination);
#endif // _di_fl_utf_file_read_until_
/**
- * Write until entire buffer is written.
+ * Write until entire destination is written.
*
* @param file
* The file to write to.
* The file must already be open.
- * @param buffer
- * The buffer to write to the file.
+ * @param destination
+ * The destination to write to the file.
* @param written
* The total bytes written.
*
* @return
* F_none on success.
- * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used).
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially).
*
* @see write()
*/
#ifndef _di_fl_utf_file_write_
- extern f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_array_length_t *written);
+ extern f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t destination, f_array_length_t * const written);
#endif // _di_fl_utf_file_write_
/**
- * Write until a single block is filled or entire buffer is written.
+ * Write until a single block is filled or entire destination is written.
*
- * To check how much was write into the buffer, record buffer->used before execution and compare to buffer->used after execution.
+ * To check how much was write into the destination, record destination->used before execution and compare to destination->used after execution.
*
* @param file
* The file to write to.
* The file must already be open.
- * @param buffer
- * The buffer to write to the file.
+ * @param destination
+ * The destination to write to the file.
* @param written
* The total bytes written.
*
* @return
* F_none on success.
- * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used).
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially).
*
* @see write()
*/
#ifndef _di_fl_utf_file_write_block_
- extern f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_array_length_t *written);
+ extern f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t destination, f_array_length_t * const written);
#endif // _di_fl_utf_file_write_block_
/**
- * Write until a given number or entire buffer is written.
+ * Write until a given number or entire destination is written.
*
* @param file
* The file to write to.
* The file must already be open.
- * @param buffer
- * The buffer to write to the file.
+ * @param destination
+ * The destination to write to the file.
* @param total
- * The total bytes to write, unless end of buffer is reached first.
+ * The total bytes to write, unless end of destination is reached first.
* @param written
* The total bytes written.
*
* @return
* F_none on success.
- * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used).
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially).
*
* @see write()
*/
#ifndef _di_fl_utf_file_write_until_
- extern f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_array_length_t total, f_array_length_t *written);
+ extern f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t destination, const f_array_length_t total, f_array_length_t * const written);
#endif // _di_fl_utf_file_write_until_
/**
- * Write a given range within the buffer.
+ * Write a given range within the destination.
*
* @param file
* The file to write to.
* The file must already be open.
- * @param buffer
- * The buffer to write to the file.
+ * @param destination
+ * The destination to write to the file.
* @param range
- * An inclusive start an stop range within the buffer to read.
+ * An inclusive start an stop range within the destination to read.
* @param written
* The total bytes written.
*
* @return
* F_none on success.
- * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used).
+ * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used).
* F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file).
* F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially).
*
* @see write()
*/
#ifndef _di_fl_utf_file_write_range_
- extern f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_string_range_t range, f_array_length_t *written);
+ extern f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_string_range_t range, f_array_length_t * const written);
#endif // _di_fl_utf_file_write_range_
#ifdef __cplusplus
#endif
#ifndef _di_fll_execute_arguments_add_
- f_status_t fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t * const arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_
#ifndef _di_fll_execute_arguments_add_parameter_
- f_status_t fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t * const arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_parameter_
#ifndef _di_fll_execute_arguments_add_parameter_set_
- f_status_t fll_execute_arguments_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t * const arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_parameter_set_
#ifndef _di_fll_execute_arguments_add_set_
- f_status_t fll_execute_arguments_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t * const arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_set_
#ifndef _di_fll_execute_into_
- f_status_t fll_execute_into(const f_string_static_t program, const f_string_statics_t arguments, const uint8_t option, const f_string_maps_t *environment, int *result) {
+ f_status_t fll_execute_into(const f_string_static_t program, const f_string_statics_t arguments, const uint8_t option, const f_string_maps_t *environment, int * const result) {
#ifndef _di_level_2_parameter_checking_
if (!program.used && !arguments.used) return F_status_set_error(F_parameter);
if (!result) return F_status_set_error(F_parameter);
#endif // _di_fll_execute_into_
#ifndef _di_fll_execute_program_
- f_status_t fll_execute_program(const f_string_static_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result) {
+ f_status_t fll_execute_program(const f_string_static_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result) {
#ifndef _di_level_2_parameter_checking_
if (!program.used && !arguments.used) return F_status_set_error(F_parameter);
if (!result) return F_status_set_error(F_parameter);
* @see f_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_
- extern f_status_t fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t * const arguments);
#endif // _di_fll_execute_arguments_add_
/**
* @see f_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_parameter_
- extern f_status_t fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t * const arguments);
#endif // _di_fll_execute_arguments_add_parameter_
/**
* @see f_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_parameter_set_
- extern f_status_t fll_execute_arguments_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t * const arguments);
#endif // _di_fll_execute_arguments_add_parameter_set_
/**
* @see fl_environment_path_explode()
*/
#ifndef _di_fll_execute_into_
- extern f_status_t fll_execute_into(const f_string_static_t program, const f_string_statics_t arguments, const uint8_t option, const f_string_maps_t *environment, int *result);
+ extern f_status_t fll_execute_into(const f_string_static_t program, const f_string_statics_t arguments, const uint8_t option, const f_string_maps_t * const environment, int * const result);
#endif // _di_fll_execute_into_
/**
* @see fl_environment_path_explode()
*/
#ifndef _di_fll_execute_program_
- extern f_status_t fll_execute_program(const f_string_static_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result);
+ extern f_status_t fll_execute_program(const f_string_static_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result);
#endif // _di_fll_execute_program_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_)
- f_status_t private_fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t *arguments) {
+ f_status_t private_fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t * const arguments) {
arguments->array[arguments->used].used = 0;
#endif // !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_)
#if !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_)
- f_status_t private_fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments) {
+ f_status_t private_fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t * const arguments) {
arguments->array[arguments->used].used = 0;
#endif // !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_)
#if !defined(_di_fll_execute_program_)
- f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) {
+ f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int * const result) {
if (as.nice) {
errno = 0;
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) {
+ f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, const f_string_static_t *result) {
if (as.affinity && as.affinity->used) {
cpu_set_t *set = CPU_ALLOC(as.affinity->used);
if (set == 0) {
- result[0] = '1';
+ result = &f_string_ascii_1_s;
return F_status_set_error(F_processor);
}
CPU_FREE(set);
if (response == -1) {
- result[0] = '1';
+ result = &f_string_ascii_1_s;
return F_status_set_error(F_processor);
}
if (as.control_group) {
if (F_status_is_error(fl_control_group_apply(*as.control_group, id_child))) {
- result[0] = '1';
+ result = &f_string_ascii_1_s;
return F_status_set_error(F_control_group);
}
errno = 0;
if (sched_setscheduler(id_child, as.scheduler->policy, ¶meter_schedule) == -1) {
- result[0] = '1';
+ result = &f_string_ascii_1_s;
return F_status_set_error(F_schedule);
}
for (f_array_length_t i = 0; i < as.limits->used; ++i) {
if (F_status_is_error(f_limit_process(id_child, as.limits->array[i].type, &as.limits->array[i].value, 0))) {
- result[0] = '1';
+ result = &f_string_ascii_1_s;
return F_status_set_error(F_limit);
}
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_status_t private_fll_execute_fork(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result) {
+ f_status_t private_fll_execute_fork(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result) {
int descriptors[2] = { -1, -1 };
// Have the parent perform all appropriate access controls and then send either '0' for no error or '1' for error to the child.
{
- char string_result[2] = { '0', 0 };
-
+ const f_string_static_t *string_result = &f_string_ascii_0_s;
const f_file_t file = macro_f_file_t_initialize2(0, descriptors[1], F_file_flag_write_only_d);
- f_string_static_t buffer = f_string_static_t_initialize;
-
- buffer.string = string_result;
- buffer.used = 1;
- buffer.size = 2;
-
const f_status_t status = private_fll_execute_as_parent(*as, id_process, parameter, string_result);
// Inform the child that it can now safely begin (or exit).
- f_file_write(file, buffer, 0);
+ f_file_write(file, *string_result, 0);
// Close the write pipe for the parent when finished writing.
close(descriptors[1]);
f_file_read_block(file, &response);
- if (!response.used || response.string[0] == '1') {
+ if (!response.used || response.string[0] == f_string_ascii_1_s.string[0]) {
f_string_dynamic_resize(0, &response);
close(descriptors[0]);
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_status_t private_fll_execute_fork_data(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result) {
+ f_status_t private_fll_execute_fork_data(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result) {
int descriptors[2] = { -1, -1 };
close(descriptors[0]);
{
- char string_result[2] = { '0', 0 };
+ const f_string_static_t *string_result = &f_string_ascii_0_s;
const f_file_t file = macro_f_file_t_initialize2(0, descriptors[1], F_file_flag_write_only_d);
// Have the parent perform all appropriate access controls and then send either '0' for no error or '1' for error to the child.
if (as) {
- f_string_static_t buffer = f_string_static_t_initialize;
-
- buffer.string = string_result;
- buffer.used = 1;
- buffer.size = 2;
-
status = private_fll_execute_as_parent(*as, id_process, parameter, string_result);
// Inform the child that it can now safely begin (or exit).
- if (F_status_is_error(f_file_write(file, buffer, 0))) {
- string_result[0] = '1';
+ if (F_status_is_error(f_file_write(file, *string_result, 0))) {
+ string_result = &f_string_ascii_1_s;
}
}
// Write all data, if child doesn't read this could block until child closes the pipe.
- if (string_result[0] == '0') {
+ if (string_result->string[0] == f_string_ascii_0_s.string[0]) {
f_file_write(file, *parameter->data, 0);
}
f_file_read_block(file, &response);
- if (!response.used || response.string[0] == '1') {
+ if (!response.used || response.string[0] == f_string_ascii_1_s.string[0]) {
f_string_dynamic_resize(0, &response);
close(descriptors[0]);
* @see f_string_dynamics_increase()
*/
#if !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_)
- extern f_status_t private_fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t *arguments) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_arguments_add(const f_string_static_t source, f_string_dynamics_t * const arguments) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_)
/**
* @see fll_execute_arguments_dynamic_add_parameter_set()
*/
#if !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_)
- extern f_status_t private_fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_arguments_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t * const arguments) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int * const result) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_program_)
/**
* option:
* A bitwise set of options, such as: FL_execute_parameter_option_exit_d, and FL_execute_parameter_option_path_d.
* @param result
- * A NULL termianted 2-byte string array where the first character represents the return code ('0' for success, '1' for failure).
+ * A string representing the return code ('0' for success, '1' for failure).
*
* @return
* F_none on success.
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, const f_string_static_t *result) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_program_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_status_t private_fll_execute_fork(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_fork(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_program_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_status_t private_fll_execute_fork_data(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void *result) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_execute_fork_data(const bool direct, const f_string_static_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, void * const result) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_execute_program_)
/**
#endif
#ifndef _di_fll_fss_identify_
- f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t *range, f_fll_ids_t *ids) {
+ f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_ids_t * const ids) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
}
if (F_status_is_error_not(status)) {
- status = fl_string_fll_identify(buffer, range, ids ? &ids->array[ids->used] : &id);
+ status = fl_string_dynamic_partial_fll_identify(buffer, range, ids ? &ids->array[ids->used] : &id);
}
if (F_status_is_error(status) || (status == F_found_not && !found_fss)) {
#endif // _di_fll_fss_identify_
#ifndef _di_fll_fss_snatch_
- f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_
#ifndef _di_fll_fss_snatch_apart_
- f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamics_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamics_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_apart_
#ifndef _di_fll_fss_snatch_map_
- f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_
#ifndef _di_fll_fss_snatch_map_apart_
- f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_map_multis_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_map_multis_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_apart_
#ifndef _di_fll_fss_snatch_map_mash_
- f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_
#ifndef _di_fll_fss_snatch_map_mash_apart_
- f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_map_multis_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_apart_
#ifndef _di_fll_fss_snatch_map_together_
- f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_together_
#ifndef _di_fll_fss_snatch_mash_
- f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_
#ifndef _di_fll_fss_snatch_mash_apart_
- f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamics_t *values[], bool matches[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_array_lengths_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_apart_
#ifndef _di_fll_fss_snatch_together_
- f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
* This expects there to be at least a single "fss-XXXX" FSS Identifier.
* If one is not found but the line contains valid FLL Identifiers, then this returns F_maybe.
*
- * See the fl_string_fll_identify() function for details on individual FLL/FSS Identifier processing.
+ * See the fl_string_dynamic_partial_fll_identify() function for details on individual FLL/FSS Identifier processing.
*
* @param buffer
* The string to process.
*
* Errors (with error bit) from: f_fll_ids_increase().
* Errors (with error bit) from: f_utf_is_whitespace().
- * Errors (with error bit) from: fl_string_fll_identify().
+ * Errors (with error bit) from: fl_string_dynamic_partial_fll_identify().
*
* @see f_fll_ids_increase()
* @see f_utf_is_whitespace()
- * @see fl_string_fll_identify()
+ * @see fl_string_dynamic_partial_fll_identify()
*/
#ifndef _di_fll_fss_identify_
- extern f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t *range, f_fll_ids_t *ids);
+ extern f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_ids_t * const ids);
#endif // _di_fll_fss_identify_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_
- extern f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]);
#endif // _di_fll_fss_snatch_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_apart_
- extern f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamics_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_dynamics_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_apart_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_
- extern f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_apart_
- extern f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_map_multis_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, f_string_map_multis_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_apart_
/**
* Errors (with error bit) from: fl_string_dynamic_partial_compare_trim_string().
*/
#ifndef _di_fll_fss_snatch_map_mash_
- extern f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_mash_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_mash_apart_
- extern f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_map_multis_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_mash_apart_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_together_
- extern f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_together_
/**
* Errors (with error bit) from: fl_string_dynamic_partial_compare_trim_string().
*/
#ifndef _di_fll_fss_snatch_mash_
- extern f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]);
#endif // _di_fll_fss_snatch_mash_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_mash_apart_
- extern f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamics_t *values[], bool matches[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_array_lengths_t * const indexs[]);
#endif // _di_fll_fss_snatch_mash_apart_
/**
* @see fl_string_compare_trim()
*/
#ifndef _di_fll_fss_snatch_together_
- extern f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t *values[], bool matches[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_static_t names[], const f_array_length_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_array_length_t * const indexs[]);
#endif // _di_fll_fss_snatch_together_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_read_
- f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_quotes_t * const objects_quoted, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_basic_read_
#ifndef _di_fll_fss_basic_write_string_
- f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_fss_basic_object_read()
*/
#ifndef _di_fll_fss_basic_read_
- extern f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
+ extern f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_quotes_t * const objects_quoted, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits);
#endif // _di_fll_fss_basic_read_
/**
* @see fl_fss_basic_object_write()
*/
#ifndef _di_fll_fss_basic_write_string_
- extern f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_basic_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_list_read_
- f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_basic_list_read_
#ifndef _di_fll_fss_basic_list_write_string_
- f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t * const content_prepend, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_fss_basic_list_object_read()
*/
#ifndef _di_fll_fss_basic_list_read_
- extern f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments);
#endif // _di_fll_fss_basic_list_read_
/**
* @see fl_fss_basic_list_object_write()
*/
#ifndef _di_fll_fss_basic_list_write_string_
- extern f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_basic_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_embedded_list_read_
- f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_nest_t * const nest, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!nest) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_embedded_list_read_
#ifndef _di_fll_fss_embedded_list_write_string_
- f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_embedded_list_object_read().
*/
#ifndef _di_fll_fss_embedded_list_read_
- extern f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_nest_t * const nest, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments);
#endif // _di_fll_fss_embedded_list_read_
/**
* @see fl_fss_embedded_list_object_write()
*/
#ifndef _di_fll_fss_embedded_list_write_string_
- extern f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_embedded_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_read_
- f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_quotes_t * const objects_quoted, f_fss_quotess_t * const contents_quoted, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_extended_read_
#ifndef _di_fll_fss_extended_write_string_
- f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_fss_extended_object_read()
*/
#ifndef _di_fll_fss_extended_read_
- extern f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
+ extern f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_quotes_t * const objects_quoted, f_fss_quotess_t * const contents_quoted, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits);
#endif // _di_fll_fss_extended_read_
/**
* @see fl_fss_extended_object_write()
*/
#ifndef _di_fll_fss_extended_write_string_
- extern f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_extended_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_list_read_
- f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_extended_list_read_
#ifndef _di_fll_fss_extended_list_write_string_
- f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_fss_extended_list_object_read()
*/
#ifndef _di_fll_fss_extended_list_read_
- extern f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments);
#endif // _di_fll_fss_extended_list_read_
/**
* @see fl_fss_extended_list_object_write()
*/
#ifndef _di_fll_fss_extended_list_write_string_
- extern f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_extended_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_payload_read_
- f_status_t fll_fss_payload_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_payload_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_payload_read_
#ifndef _di_fll_fss_payload_write_string_
- f_status_t fll_fss_payload_write_string(const f_string_static_t object, const f_string_static_t content, const bool trim, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_payload_write_string(const f_string_static_t object, const f_string_static_t content, const bool trim, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_fss_basic_list_object_read()
*/
#ifndef _di_fll_fss_payload_read_
- extern f_status_t fll_fss_payload_read(const f_string_static_t buffer, f_state_t state, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_payload_read(const f_string_static_t buffer, f_state_t state, f_string_range_t * const range, f_fss_objects_t * const objects, f_fss_contents_t * const contents, f_fss_delimits_t * const objects_delimits, f_fss_delimits_t * const contents_delimits, f_fss_comments_t * const comments);
#endif // _di_fll_fss_payload_read_
/**
* @see fl_fss_basic_list_object_write()
*/
#ifndef _di_fll_fss_payload_write_string_
- extern f_status_t fll_fss_payload_write_string(const f_string_static_t object, const f_string_static_t content, const bool trim, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_payload_write_string(const f_string_static_t object, const f_string_static_t content, const bool trim, const f_string_static_t *content_prepend, f_state_t state, f_string_dynamic_t * const destination);
#endif // _di_fll_fss_payload_write_string_
#ifdef __cplusplus
#endif // _di_FLL_fss_status_string_
#ifndef _di_fll_fss_status_string_from_
- f_status_t fll_fss_status_string_from(const f_string_static_t name, f_status_t *code) {
+ f_status_t fll_fss_status_string_from(const f_string_static_t name, f_status_t * const code) {
#ifndef _di_level_2_parameter_checking_
if (!code) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_fss_status_string_from_
#ifndef _di_fll_fss_status_string_to_
- f_status_t fll_fss_status_string_to(const f_status_t code, f_string_static_t *name) {
+ f_status_t fll_fss_status_string_to(const f_status_t code, f_string_static_t * const name) {
#ifndef _di_level_2_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* 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 *code);
+ extern f_status_t fll_fss_status_string_from(const f_string_static_t name, f_status_t * const code);
#endif // _di_fll_fss_status_string_to_
/**
* @see f_status_string_to()
*/
#ifndef _di_fll_fss_status_string_to_
- extern f_status_t fll_fss_status_string_to(const f_status_t code, f_string_static_t *name);
+ extern f_status_t fll_fss_status_string_to(const f_status_t code, f_string_static_t * const name);
#endif // _di_fll_fss_status_string_to_
#ifdef __cplusplus
#endif
#ifndef _di_fll_iki_content_escape_
- f_status_t fll_iki_content_escape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t *escaped) {
+ f_status_t fll_iki_content_escape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const escaped) {
#ifndef _di_level_2_parameter_checking_
if (!quote.used) return F_status_set_error(F_parameter);
if (quote.string[0] != f_iki_syntax_quote_single_s.string[0] && quote.string[0] != f_iki_syntax_quote_double_s.string[0]) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_escape_
#ifndef _di_fll_iki_content_partial_escape_
- f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t *escaped) {
+ f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped) {
#ifndef _di_level_2_parameter_checking_
if (range.start > range.stop) return F_status_set_error(F_parameter);
if (range.start >= content.used) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_partial_escape_
#ifndef _di_fll_iki_content_partial_unescape_
- f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t *unescaped) {
+ f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped) {
#ifndef _di_level_2_parameter_checking_
if (range.start > range.stop) return F_status_set_error(F_parameter);
if (range.start >= content.used) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_partial_unescape_
#ifndef _di_fll_iki_content_unescape_
- f_status_t fll_iki_content_unescape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t *unescaped) {
+ f_status_t fll_iki_content_unescape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const unescaped) {
#ifndef _di_level_2_parameter_checking_
if (!quote.used) return F_status_set_error(F_parameter);
if (quote.string[0] != f_iki_syntax_quote_single_s.string[0] && quote.string[0] != f_iki_syntax_quote_double_s.string[0]) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_escape_
- extern f_status_t fll_iki_content_escape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t *escaped);
+ extern f_status_t fll_iki_content_escape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const escaped);
#endif // _di_fll_iki_content_escape_
/**
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_partial_escape_
- extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t *escaped);
+ extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped);
#endif // _di_fll_iki_content_partial_escape_
/**
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_partial_unescape_
- extern f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t *unescaped);
+ extern f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
#endif // _di_fll_iki_content_partial_unescape_
/**
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_unescape_
- extern f_status_t fll_iki_content_unescape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t *unescaped);
+ extern f_status_t fll_iki_content_unescape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
#endif // _di_fll_iki_content_unescape_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t *escaped) {
+ f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t * const escaped) {
f_status_t status = F_none;
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
#if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
- f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t *unescaped) {
+ f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t * const unescaped) {
f_status_t status = F_none;
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t *escaped) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t * const escaped) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
/**
* Errors (with error bit) from: f_string_dynamic_increase_by().
*/
#if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
- extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t *unescaped) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const char quote, f_string_dynamic_t * const unescaped) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
#ifdef __cplusplus
#endif
#ifndef _di_fll_path_canonical_
- f_status_t fll_path_canonical(const f_string_static_t path, f_string_dynamic_t *canonical) {
+ f_status_t fll_path_canonical(const f_string_static_t path, f_string_dynamic_t * const canonical) {
#ifndef _di_level_2_parameter_checking_
if (!canonical) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see f_string_dynamic_append_assure()
*/
#ifndef _di_fll_path_canonical_
- extern f_status_t fll_path_canonical(const f_string_static_t path, f_string_dynamic_t *canonical);
+ extern f_status_t fll_path_canonical(const f_string_static_t path, f_string_dynamic_t * const canonical);
#endif // _di_fll_path_canonical_
#ifdef __cplusplus
#endif
#ifndef _di_fll_print_
- f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_
#ifndef _di_fll_print_character_
- f_status_t fll_print_character(const char character, FILE *output) {
+ f_status_t fll_print_character(const char character, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_character_
#ifndef _di_fll_print_character_safely_
- f_status_t fll_print_character_safely(const char character, FILE *output) {
+ f_status_t fll_print_character_safely(const char character, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_character_safely_
#ifndef _di_fll_print_dynamic_
- f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_
#ifndef _di_fll_print_dynamic_partial_
- f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_partial_
#ifndef _di_fll_print_dynamic_partial_raw_
- f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_partial_raw_
#ifndef _di_fll_print_dynamic_partial_raw_safely_
- f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_partial_raw_safely_
#ifndef _di_fll_print_dynamic_partial_safely_
- f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_partial_safely_
#ifndef _di_fll_print_dynamic_raw_
- f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_raw_
#ifndef _di_fll_print_dynamic_raw_safely_
- f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_raw_safely_
#ifndef _di_fll_print_dynamic_safely_
- f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_dynamic_safely_
#ifndef _di_fll_print_except_
- f_status_t fll_print_except(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_
#ifndef _di_fll_print_except_dynamic_
- f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_
#ifndef _di_fll_print_except_dynamic_partial_
- f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_partial_
#ifndef _di_fll_print_except_dynamic_partial_raw_
- f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_partial_raw_
#ifndef _di_fll_print_except_dynamic_partial_raw_safely_
- f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_partial_raw_safely_
#ifndef _di_fll_print_except_dynamic_partial_safely_
- f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_partial_safely_
#ifndef _di_fll_print_except_dynamic_raw_
- f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_raw_
#ifndef _di_fll_print_except_dynamic_raw_safely_
- f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_raw_safely_
#ifndef _di_fll_print_except_dynamic_safely_
- f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_dynamic_safely_
#ifndef _di_fll_print_except_raw_
- f_status_t fll_print_except_raw(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_raw(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_raw_
#ifndef _di_fll_print_except_raw_safely_
- f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_raw_safely_
#ifndef _di_fll_print_except_safely_
- f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_safely_
#ifndef _di_fll_print_except_in_
- f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_
#ifndef _di_fll_print_except_in_dynamic_
- f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_
#ifndef _di_fll_print_except_in_dynamic_partial_
- f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_partial_
#ifndef _di_fll_print_except_in_dynamic_partial_raw_
- f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_partial_raw_
#ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_
- f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_partial_raw_safely_
#ifndef _di_fll_print_except_in_dynamic_partial_safely_
- f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_partial_safely_
#ifndef _di_fll_print_except_in_dynamic_raw_
- f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_raw_
#ifndef _di_fll_print_except_in_dynamic_raw_safely_
- f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_raw_safely_
#ifndef _di_fll_print_except_in_dynamic_safely_
- f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_dynamic_safely_
#ifndef _di_fll_print_except_in_raw_
- f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_raw_
#ifndef _di_fll_print_except_in_raw_safely_
- f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_raw_safely_
#ifndef _di_fll_print_except_in_safely_
- f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_except_in_safely_
#ifndef _di_fll_print_format_
- f_status_t fll_print_format(const f_string_t string, FILE *output, ...) {
+ f_status_t fll_print_format(const f_string_t string, FILE * const output, ...) {
flockfile(output);
#endif // _di_fll_print_format_
#ifndef _di_fll_print_format_convert_
- f_string_t fll_print_format_convert(const f_string_t string, FILE *output, va_list *ap, f_status_t *status) {
+ f_string_t fll_print_format_convert(const f_string_t string, FILE * const output, va_list * const ap, f_status_t * const status) {
flockfile(output);
#endif // _di_fll_print_format_convert_
#ifndef _di_fll_print_raw_
- f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_raw_
#ifndef _di_fll_print_raw_safely_
- f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_raw_safely_
#ifndef _di_fll_print_raw_terminated_
- f_status_t fll_print_raw_terminated(const f_string_t string, FILE *output) {
+ f_status_t fll_print_raw_terminated(const f_string_t string, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_raw_terminated_
#ifndef _di_fll_print_safely_
- f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_safely_
#ifndef _di_fll_print_safely_terminated_
- f_status_t fll_print_safely_terminated(const f_string_t string, FILE *output) {
+ f_status_t fll_print_safely_terminated(const f_string_t string, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_safely_terminated_
#ifndef _di_fll_print_string_va_
- f_status_t fll_print_string_va(const f_string_t string, FILE *output, va_list *ap) {
+ f_status_t fll_print_string_va(const f_string_t string, FILE * const output, va_list * const ap) {
flockfile(output);
#endif // _di_fll_print_string_va_
#ifndef _di_fll_print_terminated_
- f_status_t fll_print_terminated(const f_string_t string, FILE *output) {
+ f_status_t fll_print_terminated(const f_string_t string, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_terminated_
#ifndef _di_fll_print_trim_raw_
- f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_raw_
#ifndef _di_fll_print_trim_raw_safely_
- f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_raw_safely_
#ifndef _di_fll_print_trim_safely_
- f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *output) {
+ f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_safely_
#ifndef _di_fll_print_trim_dynamic_
- f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_
#ifndef _di_fll_print_trim_dynamic_raw_
- f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_raw_
#ifndef _di_fll_print_trim_dynamic_raw_safely_
- f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_raw_safely_
#ifndef _di_fll_print_trim_dynamic_safely_
- f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE *output) {
+ f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_safely_
#ifndef _di_fll_print_trim_dynamic_partial_
- f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_partial_
#ifndef _di_fll_print_trim_dynamic_partial_raw_
- f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_partial_raw_
#ifndef _di_fll_print_trim_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_dynamic_partial_safely_
- f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) {
+ f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_dynamic_partial_safely_
#ifndef _di_fll_print_trim_except_
- f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_
#ifndef _di_fll_print_trim_except_raw_
- f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_raw_
#ifndef _di_fll_print_trim_except_raw_safely_
- f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_raw_safely_
#ifndef _di_fll_print_trim_except_safely_
- f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_safely_
#ifndef _di_fll_print_trim_except_dynamic_
- f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_
#ifndef _di_fll_print_trim_except_dynamic_raw_
- f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_raw_
#ifndef _di_fll_print_trim_except_dynamic_raw_safely_
- f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_raw_safely_
#ifndef _di_fll_print_trim_except_dynamic_safely_
- f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_safely_
#ifndef _di_fll_print_trim_except_in_
- f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_
#ifndef _di_fll_print_trim_except_in_raw_
- f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_raw_
#ifndef _di_fll_print_trim_except_in_raw_safely_
- f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_raw_safely_
#ifndef _di_fll_print_trim_except_in_safely_
- f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_
- f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_
#ifndef _di_fll_print_trim_except_in_dynamic_raw_
- f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_raw_
#ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_
- f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_raw_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_safely_
- f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_
- f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_
- f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_
- f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_safely_
#ifndef _di_fll_print_trim_except_dynamic_partial_
- f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_partial_
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_
- f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_except_dynamic_partial_safely_
- f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) {
+ f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) {
flockfile(output);
* @see f_print()
*/
#ifndef _di_fll_print_
- extern f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_
/**
* @see f_print_character()
*/
#ifndef _di_fll_print_character_
- extern f_status_t fll_print_character(const char character, FILE *output);
+ extern f_status_t fll_print_character(const char character, FILE * const output);
#endif // _di_fll_print_character_
/**
* @see f_print_character_safely()
*/
#ifndef _di_fll_print_character_safely_
- extern f_status_t fll_print_character_safely(const char character, FILE *output);
+ extern f_status_t fll_print_character_safely(const char character, FILE * const output);
#endif // _di_fll_print_character_safely_
/**
* @see f_print_dynamic()
*/
#ifndef _di_fll_print_dynamic_
- extern f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_dynamic_
/**
* @see f_print_dynamic_partial()
*/
#ifndef _di_fll_print_dynamic_partial_
- extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_dynamic_partial_
/**
* @see f_print_dynamic_partial_raw()
*/
#ifndef _di_fll_print_dynamic_partial_raw_
- extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_dynamic_partial_raw_
/**
* @see f_print_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_dynamic_partial_raw_safely_
- extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_dynamic_partial_raw_safely_
/**
* @see f_print_dynamic_partial_safely()
*/
#ifndef _di_fll_print_dynamic_partial_safely_
- extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_dynamic_partial_safely_
/**
* @see f_print_dynamic_raw()
*/
#ifndef _di_fll_print_dynamic_raw_
- extern f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_dynamic_raw_
/**
* @see f_print_dynamic_raw_safely()
*/
#ifndef _di_fll_print_dynamic_raw_safely_
- extern f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_dynamic_raw_safely_
/**
* @see f_print_dynamic_safely()
*/
#ifndef _di_fll_print_dynamic_safely_
- extern f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_dynamic_safely_
/**
* @see f_print_except()
*/
#ifndef _di_fll_print_except_
- extern f_status_t fll_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_
/**
* @see f_print_except_dynamic()
*/
#ifndef _di_fll_print_except_dynamic_
- extern f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_except_dynamic_partial_
- extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_partial_
/**
* @see f_print_except_dynamic_partial_raw()
*/
#ifndef _di_fll_print_except_dynamic_partial_raw_
- extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_except_dynamic_partial_raw_safely_
- extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial_safely()
*/
#ifndef _di_fll_print_except_dynamic_partial_safely_
- extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_partial_safely_
/**
* @see f_print_except_dynamic_raw()
*/
#ifndef _di_fll_print_except_dynamic_raw_
- extern f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_raw_
/**
* @see f_print_except_dynamic_raw_safely()
*/
#ifndef _di_fll_print_except_dynamic_raw_safely_
- extern f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_raw_safely_
/**
* @see f_print_except_dynamic_safely()
*/
#ifndef _di_fll_print_except_dynamic_safely_
- extern f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_dynamic_safely_
/**
* @see f_print_except_in()
*/
#ifndef _di_fll_print_except_in_
- extern f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_
/**
* @see f_print_except_in_raw()
*/
#ifndef _di_fll_print_except_in_raw_
- extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_raw_
/**
* @see f_print_except_in_raw_safely()
*/
#ifndef _di_fll_print_except_in_raw_safely_
- extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_raw_safely_
/**
* @see f_print_except_in_safely()
*/
#ifndef _di_fll_print_except_in_safely_
- extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_safely_
/**
* @see f_print_except_in_dynamic()
*/
#ifndef _di_fll_print_except_in_dynamic_
- extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_
/**
* @see f_print_except_in_dynamic_partial()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_
- extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_partial_
/**
* @see f_print_except_in_dynamic_partial_raw()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_raw_
- extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_partial_raw_
/**
* @see f_print_except_in_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_
- extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_partial_raw_safely_
/**
* @see f_print_except_in_dynamic_partial_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_safely_
- extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_partial_safely_
/**
* @see f_print_except_in_dynamic_raw()
*/
#ifndef _di_fll_print_except_in_dynamic_raw_
- extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_raw_
/**
* @see f_print_except_in_dynamic_raw_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_raw_safely_
- extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_raw_safely_
/**
* @see f_print_except_in_dynamic_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_safely_
- extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_except_in_dynamic_safely_
/**
* @see f_print_except_raw()
*/
#ifndef _di_fll_print_except_raw_
- extern f_status_t fll_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_raw_
/**
* @see f_print_except_raw_safely()
*/
#ifndef _di_fll_print_except_raw_safely_
- extern f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_raw_safely_
/**
* @see f_print_except_safely()
*/
#ifndef _di_fll_print_except_safely_
- extern f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_except_safely_
/**
* @see fl_print_format()
*/
#ifndef _di_fll_print_format_
- extern f_status_t fll_print_format(const f_string_t string, FILE *output, ...);
+ extern f_status_t fll_print_format(const f_string_t string, FILE * const output, ...);
#endif // _di_fll_print_format_
/**
* @see fl_print_format_convert()
*/
#ifndef _di_fll_print_format_convert_
- extern f_string_t fll_print_format_convert(const f_string_t current, FILE *output, va_list *ap, f_status_t *status);
+ extern f_string_t fll_print_format_convert(const f_string_t current, FILE * const output, va_list *ap, f_status_t *status);
#endif // _di_fll_print_format_convert_
/**
* @see f_print_raw()
*/
#ifndef _di_fll_print_raw_
- extern f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_raw_
/**
* @see f_print_raw_safely()
*/
#ifndef _di_fll_print_raw_safely_
- extern f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_raw_safely_
/**
* @see f_print_raw_terminated()
*/
#ifndef _di_fll_print_raw_terminated_
- extern f_status_t fll_print_raw_terminated(const f_string_t string, FILE *output);
+ extern f_status_t fll_print_raw_terminated(const f_string_t string, FILE * const output);
#endif // _di_fll_print_raw_terminated_
/**
* @see f_print_safely()
*/
#ifndef _di_fll_print_safely_
- extern f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_safely_
/**
* @see f_print_safely_terminated()
*/
#ifndef _di_fll_print_safely_terminated_
- extern f_status_t fll_print_safely_terminated(const f_string_t string, FILE *output);
+ extern f_status_t fll_print_safely_terminated(const f_string_t string, FILE * const output);
#endif // _di_fll_print_safely_terminated_
/**
* @see fl_print_string_va()
*/
#ifndef _di_fll_print_string_va_
- extern f_status_t fll_print_string_va(const f_string_t string, FILE *output, va_list *ap);
+ extern f_status_t fll_print_string_va(const f_string_t string, FILE * const output, va_list *ap);
#endif // _di_fll_print_string_va_
/**
* @see f_print_terminated()
*/
#ifndef _di_fll_print_terminated_
- extern f_status_t fll_print_terminated(const f_string_t string, FILE *output);
+ extern f_status_t fll_print_terminated(const f_string_t string, FILE * const output);
#endif // _di_fll_print_terminated_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_
- extern f_status_t fll_print_trim(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_trim(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_trim_
/**
* @see fl_print_trim_raw()
*/
#ifndef _di_fll_print_trim_raw_
- extern f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_trim_raw_
/**
* @see fl_print_trim_raw_safely()
*/
#ifndef _di_fll_print_trim_raw_safely_
- extern f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_trim_raw_safely_
/**
* @see fl_print_trim_safely()
*/
#ifndef _di_fll_print_trim_safely_
- extern f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE *output);
+ extern f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const output);
#endif // _di_fll_print_trim_safely_
/**
* @see fl_print_trim_dynamic()
*/
#ifndef _di_fll_print_trim_dynamic_
- extern f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_trim_dynamic_
/**
* @see fl_print_trim_dynamic_raw()
*/
#ifndef _di_fll_print_trim_dynamic_raw_
- extern f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_trim_dynamic_raw_
/**
* @see fl_print_trim_dynamic_raw_safely()
*/
#ifndef _di_fll_print_trim_dynamic_raw_safely_
- extern f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_trim_dynamic_raw_safely_
/**
* @see fl_print_trim_dynamic_safely()
*/
#ifndef _di_fll_print_trim_dynamic_safely_
- extern f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const output);
#endif // _di_fll_print_trim_dynamic_safely_
/**
* @see fl_print_trim_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_
- extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_trim_dynamic_partial_
/**
* @see fl_print_trim_dynamic_partial_raw()
*/
#ifndef _di_fll_print_trim_dynamic_partial_raw_
- extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_trim_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_trim_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_safely_
- extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output);
+ extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output);
#endif // _di_fll_print_trim_dynamic_partial_safely_
/**
* @see fl_print_trim_except()
*/
#ifndef _di_fll_print_trim_except_
- extern f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_
/**
* @see fl_print_trim_except_raw()
*/
#ifndef _di_fll_print_trim_except_raw_
- extern f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_raw_
/**
* @see fl_print_trim_except_raw_safely()
*/
#ifndef _di_fll_print_trim_except_raw_safely_
- extern f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_raw_safely_
/**
* @see fl_print_trim_except_safely()
*/
#ifndef _di_fll_print_trim_except_safely_
- extern f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_safely_
/**
* @see fl_print_trim_except_dynamic()
*/
#ifndef _di_fll_print_trim_except_dynamic_
- extern f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_
/**
* @see fl_print_trim_except_dynamic_raw()
*/
#ifndef _di_fll_print_trim_except_dynamic_raw_
- extern f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_raw_
/**
* @see fl_print_trim_except_dynamic_raw_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_raw_safely_
- extern f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_raw_safely_
/**
* @see fl_print_trim_except_dynamic_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_safely_
- extern f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_safely_
/**
* @see fl_print_trim_except_in()
*/
#ifndef _di_fll_print_trim_except_in_
- extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_
/**
* @see fl_print_trim_except_in_raw()
*/
#ifndef _di_fll_print_trim_except_in_raw_
- extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_raw_
/**
* @see fl_print_trim_except_in_raw_safely()
*/
#ifndef _di_fll_print_trim_except_in_raw_safely_
- extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_raw_safely_
/**
* @see fl_print_trim_except_in_safely()
*/
#ifndef _di_fll_print_trim_except_in_safely_
- extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_safely_
/**
* @see fl_print_trim_except_in_dynamic()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_
- extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_
/**
* @see fl_print_trim_except_in_dynamic_raw()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_raw_
- extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_raw_
/**
* @see fl_print_trim_except_in_dynamic_raw_safely()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_raw_safely_
/**
* @see fl_print_trim_except_in_dynamic_safely()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_safely_
/**
* @see fl_print_trim_except_in_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_
- extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output);
#endif // _di_fll_print_trim_except_in_dynamic_partial_safely_
/**
* @see fl_print_trim_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_
- extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_partial_
/**
* @see fl_print_trim_except_dynamic_partial_raw()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_
- extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_
/**
* @see fl_print_trim_except_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_
/**
* @see fl_print_trim_except_dynamic_partial_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_safely_
- extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output);
+ extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output);
#endif // _di_fll_print_trim_except_dynamic_partial_safely_
#ifdef __cplusplus
#endif // _di_fll_program_print_version_
#ifndef _di_fll_program_parameter_process_
- f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t * const parameters, const f_console_parameter_ids_t choices, const bool right, f_color_context_t *context) {
+ f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t * const parameters, const f_console_parameter_ids_t choices, const bool right, f_color_context_t * const context) {
f_status_t status = F_none;
#endif // _di_fll_program_parameter_process_
#ifndef _di_fll_program_parameter_process_empty_
- void fll_program_parameter_process_empty(f_color_context_t *context, f_color_set_t *sets[]) {
+ void fll_program_parameter_process_empty(f_color_context_t * const context, f_color_set_t * const sets[]) {
context->set.reset = f_color_set_empty_s;
context->set.warning = f_color_set_empty_s;
#endif // _di_fll_program_parameter_process_empty_
#ifndef _di_fll_program_parameter_additional_append_
- f_status_t fll_program_parameter_additional_append(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t *destination) {
+ f_status_t fll_program_parameter_additional_append(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fll_program_parameter_additional_append_
#ifndef _di_fll_program_parameter_additional_mash_
- f_status_t fll_program_parameter_additional_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t *destination) {
+ f_status_t fll_program_parameter_additional_mash(const f_string_static_t glue, const f_string_static_t * const arguments, const f_array_lengths_t values, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fll_program_parameter_additional_mash_
#ifndef _di_fll_program_parameter_additional_rip_
- f_status_t fll_program_parameter_additional_rip(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t *destination) {
+ f_status_t fll_program_parameter_additional_rip(const f_string_static_t * const arguments, const f_array_lengths_t values, f_string_dynamics_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
destination->array[destination->used].used = 0;
- status = fl_string_rip(arguments[values.array[i]].string, arguments[values.array[i]].used, &destination->array[destination->used]);
+ status = fl_string_dynamic_rip(arguments[values.array[i]], &destination->array[destination->used]);
if (F_status_is_error(status)) break;
if (status == F_data_not) {
#endif // _di_fll_program_parameter_additional_rip_
#ifndef _di_fll_program_parameter_additional_rip_mash_
- f_status_t fll_program_parameter_additional_rip_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t *destination) {
+ f_status_t fll_program_parameter_additional_rip_mash(const f_string_static_t glue, const f_string_static_t * const arguments, const f_array_lengths_t values, f_string_dynamic_t * const destination) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
if (arguments[values.array[i]].used) {
ripped.used = 0;
- status = fl_string_rip(arguments[values.array[i]].string, arguments[values.array[i]].used, &ripped);
+ status = fl_string_dynamic_rip(arguments[values.array[i]], &ripped);
if (F_status_is_error(status)) break;
if (ripped.used) {
* @see f_color_load_context()
*/
#ifndef _di_fll_program_parameter_process_
- extern f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t * const parameters, const f_console_parameter_ids_t choices, const bool right, f_color_context_t *context);
+ extern f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t * const parameters, const f_console_parameter_ids_t choices, const bool right, f_color_context_t * const context);
#endif // _di_fll_program_parameter_process_
/**
* Set to NULL to not use.
*/
#ifndef _di_fll_program_parameter_process_empty_
- extern void fll_program_parameter_process_empty(f_color_context_t *context, f_color_set_t *sets[]);
+ extern void fll_program_parameter_process_empty(f_color_context_t * const context, f_color_set_t * const sets[]);
#endif // _di_fll_program_parameter_process_empty_
/**
* @see f_string_dynamic_append()
*/
#ifndef _di_fll_program_parameter_additional_append_
- extern f_status_t fll_program_parameter_additional_append(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t *destination);
+ extern f_status_t fll_program_parameter_additional_append(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t * const destination);
#endif // _di_fll_program_parameter_additional_append_
/**
* @see f_string_dynamic_mash()
*/
#ifndef _di_fll_program_parameter_additional_mash_
- extern f_status_t fll_program_parameter_additional_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t *destination);
+ extern f_status_t fll_program_parameter_additional_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t * const destination);
#endif // _di_fll_program_parameter_additional_mash_
/**
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: fl_string_rip().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
- * @see fl_string_rip()
+ * @see fl_string_dynamic_rip()
*/
#ifndef _di_fll_program_parameter_additional_rip_
- extern f_status_t fll_program_parameter_additional_rip(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t *destination);
+ extern f_status_t fll_program_parameter_additional_rip(const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamics_t * const destination);
#endif // _di_fll_program_parameter_additional_rip_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*
* Errors (with error bit) from: f_string_dynamic_mash().
- * Errors (with error bit) from: fl_string_rip().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* @see f_string_dynamic_mash()
- * @see fl_string_rip()
+ * @see fl_string_dynamic_rip()
*/
#ifndef _di_fll_program_parameter_additional_rip_mash_
- extern f_status_t fll_program_parameter_additional_rip_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t *destination);
+ extern f_status_t fll_program_parameter_additional_rip_mash(const f_string_static_t glue, const f_string_static_t *arguments, const f_array_lengths_t values, f_string_dynamic_t * const destination);
#endif // _di_fll_program_parameter_additional_rip_mash_
/**
#endif
#ifndef _di_fll_status_string_from_
- f_status_t fll_status_string_from(const f_string_static_t name, f_status_t *code) {
+ f_status_t fll_status_string_from(const f_string_static_t name, f_status_t * const code) {
#ifndef _di_level_2_parameter_checking_
if (!code) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* 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 *code);
+ extern f_status_t fll_status_string_from(const f_string_static_t name, f_status_t * const code);
#endif // _di_fll_status_string_to_
#ifdef __cplusplus
#endif // _di_control_signal_received_
#ifndef _di_control_signal_state_interrupt_fss_
- f_status_t control_signal_state_interrupt_fss(void *state, void *internal) {
+ f_status_t control_signal_state_interrupt_fss(void * const state, void * const internal) {
if (!state) {
return F_interrupt_not;
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*/
#ifndef _di_control_signal_state_interrupt_fss_
- extern f_status_t control_signal_state_interrupt_fss(void *state, void *internal) F_attribute_visibility_internal_d;
+ extern f_status_t control_signal_state_interrupt_fss(void * const state, void * const internal) F_attribute_visibility_internal_d;
#endif // _di_control_signal_state_interrupt_fss_
#ifdef __cplusplus
#ifndef _di_controller_string_dynamic_rip_nulless_terminated_
f_status_t controller_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
- return fl_string_dynamic_rip_nulless(source, range, destination);
+ return fl_string_dynamic_partial_rip_nulless(source, range, destination);
}
#endif // _di_controller_string_dynamic_rip_nulless_terminated_
* @return
* F_none on success.
*
- * Errors (with error bit) from: fl_string_dynamic_rip_nulless().
+ * Errors (with error bit) from: fl_string_dynamic_partial_rip_nulless().
*
- * @see fl_string_dynamic_rip_nulless()
+ * @see fl_string_dynamic_partial_rip_nulless()
*/
#ifndef _di_controller_string_dynamic_rip_nulless_terminated_
extern f_status_t controller_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) F_attribute_visibility_internal_d;
* Errors (with error bit) from: f_fss_count_lines().
* Errors (with error bit) from: fl_fss_apply_delimit().
* Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
- * Errors (with error bit) from: fl_string_dynamic_rip_nulless().
+ * Errors (with error bit) from: fl_string_dynamic_partial_rip_nulless().
* Errors (with error bit) from: f_string_dynamics_increase_by().
* Errors (with error bit) from: fll_fss_extended_read().
*
* @see f_string_dynamic_partial_append_nulless()
* @see f_string_dynamics_increase_by()
* @see fl_fss_apply_delimit()
- * @see fl_string_dynamic_rip_nulless()
+ * @see fl_string_dynamic_partial_rip_nulless()
* @see fll_fss_extended_read()
*/
#ifndef _di_controller_entry_actions_read_
else if (type == controller_rule_action_type_pid_file_e) {
item->pid_file.used = 0;
- status = fl_string_dynamic_rip(cache->buffer_item, cache->content_action.array[0], &item->pid_file);
+ status = fl_string_dynamic_partial_rip(cache->buffer_item, cache->content_action.array[0], &item->pid_file);
if (F_status_is_error(status)) {
- controller_print_error(global.thread, global.main->error, F_status_set_fine(status), "fl_string_dynamic_rip", F_true);
+ controller_print_error(global.thread, global.main->error, F_status_set_fine(status), "fl_string_dynamic_partial_rip", F_true);
}
}
else if (type == controller_rule_action_type_rerun_e) {
* F_valid_not (with error bit) on success but there were one or more invalid settings encountered.
*
* Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
- * Errors (with error bit) from: fl_string_dynamic_rip_nulless().
+ * Errors (with error bit) from: fl_string_dynamic_partial_rip_nulless().
* Errors (with error bit) from: f_string_dynamics_increase().
* Errors (with error bit) from: f_string_maps_increase().
* Errors (with error bit) from: fll_fss_extended_read().
* @see f_string_dynamic_partial_append_nulless()
* @see f_string_dynamics_increase()
* @see f_string_maps_increase()
- * @see fl_string_dynamic_rip_nulless()
+ * @see fl_string_dynamic_partial_rip_nulless()
* @see fll_fss_extended_read()
* @see fll_path_canonical()
*/
#endif // _di_fake_process_console_parameters_
#ifndef _di_fake_signal_state_interrupt_fss_
- f_status_t fake_signal_state_interrupt_fss(void *state, void *internal) {
+ f_status_t fake_signal_state_interrupt_fss(void * const state, void * const internal) {
if (!state) {
return F_interrupt_not;
#endif // _di_fake_signal_state_interrupt_fss_
#ifndef _di_fake_signal_state_interrupt_iki_
- f_status_t fake_signal_state_interrupt_iki(void *state, void *internal) {
+ f_status_t fake_signal_state_interrupt_iki(void * const state, void * const internal) {
if (!state) {
return F_interrupt_not;
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*/
#ifndef _di_fake_signal_state_interrupt_fss_
- extern f_status_t fake_signal_state_interrupt_fss(void *state, void *internal) F_attribute_visibility_internal_d;
+ extern f_status_t fake_signal_state_interrupt_fss(void * const state, void * const internal) F_attribute_visibility_internal_d;
#endif // _di_fake_signal_state_interrupt_fss_
/**
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*/
#ifndef _di_fake_signal_state_interrupt_iki_
- extern f_status_t fake_signal_state_interrupt_iki(void *state, void *internal) F_attribute_visibility_internal_d;
+ extern f_status_t fake_signal_state_interrupt_iki(void * const state, void * const internal) F_attribute_visibility_internal_d;
#endif // _di_fake_signal_state_interrupt_iki_
/**
data->depths.array[i].index_name = main->parameters.array[fss_basic_list_read_parameter_name_e].values.array[position_name];
if (main->parameters.array[fss_basic_list_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(data->argv[data->depths.array[i].index_name].string, data->argv[data->depths.array[i].index_name].used, &data->depths.array[i].value_name);
+ status = fl_string_dynamic_rip(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
else {
status = f_string_dynamic_append(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
* F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal.
*
* Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: fl_string_rip().
* Errors (with error bit) from: fl_conversion_dynamic_partial_to_number_unsigned().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* Errors (with error bit) from: fss_basic_list_read_depths_resize().
*
* @see f_string_append()
- * @see fl_string_rip()
* @see fl_conversion_dynamic_partial_to_number_unsigned()
+ * @see fl_string_dynamic_rip()
*
* @see fss_basic_list_read_depths_resize()
*/
data->depths.array[i].index_name = main->parameters.array[fss_basic_read_parameter_name_e].values.array[position_name];
if (main->parameters.array[fss_basic_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(data->argv[data->depths.array[i].index_name].string, data->argv[data->depths.array[i].index_name].used, &data->depths.array[i].value_name);
+ status = fl_string_dynamic_rip(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
else {
status = f_string_dynamic_append(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
* F_none on success.
*
* Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: fl_string_rip().
* Errors (with error bit) from: fl_conversion_dynamic_partial_to_number_unsigned().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* Errors (with error bit) from: fss_basic_read_depths_resize().
*
* @see f_string_append()
- * @see fl_string_rip()
* @see fl_conversion_dynamic_partial_to_number_unsigned()
+ * @see fl_string_dynamic_rip()
*
* @see fss_basic_read_depths_resize()
*/
depths->array[depths->used].value_name.used = 0;
if (main->parameters.array[fss_embedded_list_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(argv[values_order[i]].string, argv[values_order[i]].used, &depths->array[depths->used].value_name);
+ status = fl_string_dynamic_rip(argv[values_order[i]], &depths->array[depths->used].value_name);
if (F_status_is_error(status)) {
- fll_error_print(main->error, F_status_set_fine(status), "fl_string_rip", F_true);
+ fll_error_print(main->error, F_status_set_fine(status), "fl_string_dynamic_rip", F_true);
return status;
}
data->depths.array[i].index_name = main->parameters.array[fss_extended_list_read_parameter_name_e].values.array[position_name];
if (main->parameters.array[fss_extended_list_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(data->argv[data->depths.array[i].index_name].string, data->argv[data->depths.array[i].index_name].used, &data->depths.array[i].value_name);
+ status = fl_string_dynamic_rip(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
else {
status = f_string_dynamic_append(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
* F_none on success.
*
* Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: fl_string_rip().
* Errors (with error bit) from: fl_conversion_dynamic_partial_to_number_unsigned().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* Errors (with error bit) from: fss_extended_list_read_depths_resize().
*
* @see f_string_append()
- * @see fl_string_rip()
* @see fl_conversion_dynamic_partial_to_number_unsigned()
+ * @see fl_string_dynamic_rip()
*
* @see fss_extended_list_read_depths_resize()
*/
data->depths.array[i].index_name = main->parameters.array[fss_extended_read_parameter_name_e].values.array[position_name];
if (main->parameters.array[fss_extended_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(data->argv[data->depths.array[i].index_name].string, data->argv[data->depths.array[i].index_name].used, &data->depths.array[i].value_name);
+ status = fl_string_dynamic_rip(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
else {
status = f_string_dynamic_append(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
if (F_status_is_error(status)) {
- fll_error_print(main->error, F_status_set_fine(status), main->parameters.array[fss_extended_read_parameter_trim_e].result == f_console_result_found_e ? "fl_string_rip" : "f_string_dynamic_append", F_true);
+ fll_error_print(main->error, F_status_set_fine(status), main->parameters.array[fss_extended_read_parameter_trim_e].result == f_console_result_found_e ? "fl_string_dynamic_rip" : "f_string_dynamic_append", F_true);
return status;
}
* F_none on success.
*
* Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: fl_string_rip().
* Errors (with error bit) from: fl_conversion_dynamic_partial_to_number_unsigned().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* Errors (with error bit) from: fss_extended_read_depths_resize().
*
* @see f_string_append()
- * @see fl_string_rip()
* @see fl_conversion_dynamic_partial_to_number_unsigned()
+ * @see fl_string_dynamic_rip()
*
* @see fss_extended_read_depths_resize()
*/
data->depths.array[i].index_name = main->parameters.array[fss_payload_read_parameter_name_e].values.array[position_name];
if (main->parameters.array[fss_payload_read_parameter_trim_e].result == f_console_result_found_e) {
- status = fl_string_rip(data->argv[data->depths.array[i].index_name].string, data->argv[data->depths.array[i].index_name].used, &data->depths.array[i].value_name);
+ status = fl_string_dynamic_rip(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
else {
status = f_string_dynamic_append(data->argv[data->depths.array[i].index_name], &data->depths.array[i].value_name);
}
if (F_status_is_error(status)) {
- fll_error_print(main->error, F_status_set_fine(status), main->parameters.array[fss_payload_read_parameter_trim_e].result == f_console_result_found_e ? "fl_string_rip" : "f_string_dynamic_append", F_true);
+ fll_error_print(main->error, F_status_set_fine(status), main->parameters.array[fss_payload_read_parameter_trim_e].result == f_console_result_found_e ? "fl_string_dynamic_rip" : "f_string_dynamic_append", F_true);
return status;
}
* F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal.
*
* Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: fl_string_rip().
* Errors (with error bit) from: fl_conversion_dynamic_partial_to_number_unsigned().
+ * Errors (with error bit) from: fl_string_dynamic_rip().
*
* Errors (with error bit) from: fss_payload_read_depths_resize().
*
* @see f_string_append()
- * @see fl_string_rip()
* @see fl_conversion_dynamic_partial_to_number_unsigned()
+ * @see fl_string_dynamic_rip()
*
* @see fss_payload_read_depths_resize()
*/