There are still the append() and append_all() function to change but I am going to leave that for another time.
This finishes the recent set of Progress commits addressing the memory array related code.
I have observed a notable reduction in binary size but the primary goal here is reduction of duplicate code and simplification of code.
I should eventually be able to re-introduce macros to map these helper functions back to the base array type to reduce binary size by a significant amount.
This should only be done once the API has stabilized more.
if (!length) return F_data_not;
if (glue_length && destination->used) {
- f_status_t status = private_f_string_append_nulless(glue, glue_length, destination);
+ const f_status_t status = private_f_string_append_nulless(glue, glue_length, destination);
if (F_status_is_error(status)) return status;
}
#endif
#ifndef _di_f_string_dynamic_adjust_
- f_status_t f_string_dynamic_adjust(const f_number_unsigned_t length, f_string_dynamic_t * const dynamic) {
+ f_status_t f_string_dynamic_adjust(const f_number_unsigned_t length, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamic) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_adjust(length, sizeof(f_string_t), (void **) &dynamic->string, &dynamic->used, &dynamic->size);
+ return f_memory_array_adjust(length, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_adjust_
#endif // _di_f_string_dynamic_append_nulless_
#ifndef _di_f_string_dynamic_decimate_by_
- f_status_t f_string_dynamic_decimate_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic) {
+ f_status_t f_string_dynamic_decimate_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamic) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_decimate_by(amount, sizeof(f_string_t), (void **) &dynamic->string, &dynamic->used, &dynamic->size);
+ return f_memory_array_decimate_by(amount, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_decimate_by_
#ifndef _di_f_string_dynamic_decrease_by_
- f_status_t f_string_dynamic_decrease_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic) {
+ f_status_t f_string_dynamic_decrease_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamic) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_decrease_by(amount, sizeof(f_string_t), (void **) &dynamic->string, &dynamic->used, &dynamic->size);
+ return f_memory_array_decrease_by(amount, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_decrease_by_
#ifndef _di_f_string_dynamic_increase_
- f_status_t f_string_dynamic_increase(const f_number_unsigned_t step, f_string_dynamic_t * const dynamic) {
+ f_status_t f_string_dynamic_increase(const f_number_unsigned_t step, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamic) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase(step, sizeof(f_string_t), (void **) &dynamic->string, &dynamic->used, &dynamic->size);
+ return f_memory_array_increase(step, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_increase_
#ifndef _di_f_string_dynamic_increase_by_
- f_status_t f_string_dynamic_increase_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic) {
+ f_status_t f_string_dynamic_increase_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamic) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase_by(amount, sizeof(f_string_t), (void **) &dynamic->string, &dynamic->used, &dynamic->size);
+ return f_memory_array_increase_by(amount, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_increase_by_
#endif // _di_f_string_dynamic_prepend_nulless_
#ifndef _di_f_string_dynamic_resize_
- f_status_t f_string_dynamic_resize(const f_number_unsigned_t length, f_string_dynamic_t * const buffer) {
+ f_status_t f_string_dynamic_resize(const f_number_unsigned_t length, f_string_dynamic_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!buffer) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_resize(length, sizeof(f_string_t), (void **) &buffer->string, &buffer->used, &buffer->size);
+ return f_memory_array_resize(length, sizeof(f_string_t), (void **) &structure->string, &structure->used, &structure->size);
}
#endif // _di_f_string_dynamic_resize_
#ifndef _di_f_string_dynamic_seek_line_
- f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t * const range) {
+ f_status_t f_string_dynamic_seek_line(const f_string_static_t structure, f_string_range_t * const range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (!buffer.used) return F_data_not;
+ if (!structure.used) return F_data_not;
if (range->start > range->stop) return F_data_not_stop;
- while (buffer.string[range->start] != f_string_eol_s.string[0]) {
+ while (structure.string[range->start] != f_string_eol_s.string[0]) {
++range->start;
- if (range->start >= buffer.used) return F_none_eos;
+ if (range->start >= structure.used) return F_none_eos;
if (range->start > range->stop) return F_none_stop;
} // while
#endif // _di_f_string_dynamic_seek_line_
#ifndef _di_f_string_dynamic_seek_line_to_
- f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_string_dynamic_seek_line_to(const f_string_static_t structure, const f_char_t seek_to_this, f_string_range_t * const range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (!buffer.used) return F_data_not;
+ if (!structure.used) return F_data_not;
if (range->start > range->stop) return F_data_not_stop;
- while (buffer.string[range->start] != seek_to_this) {
+ while (structure.string[range->start] != seek_to_this) {
- if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_none_eol;
+ if (structure.string[range->start] == f_string_eol_s.string[0]) return F_none_eol;
++range->start;
- if (range->start >= buffer.used) return F_none_eos;
+ if (range->start >= structure.used) return F_none_eos;
if (range->start > range->stop) return F_none_stop;
} // while
#endif // _di_f_string_dynamic_seek_line_to_
#ifndef _di_f_string_dynamic_seek_to_
- f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_string_dynamic_seek_to(const f_string_static_t structure, const f_char_t seek_to_this, f_string_range_t * const range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (!buffer.used) return F_data_not;
+ if (!structure.used) return F_data_not;
if (range->start > range->stop) return F_data_not_stop;
- while (buffer.string[range->start] != seek_to_this) {
+ while (structure.string[range->start] != seek_to_this) {
++range->start;
- if (range->start >= buffer.used) return F_none_eos;
+ if (range->start >= structure.used) return F_none_eos;
if (range->start > range->stop) return F_none_stop;
} // while
*
* @param length
* The new size to use.
- * @param dynamic
+ * @param structure
* The string to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_dynamic_adjust_
- extern f_status_t f_string_dynamic_adjust(const f_number_unsigned_t length, f_string_dynamic_t * const dynamic);
+ extern f_status_t f_string_dynamic_adjust(const f_number_unsigned_t length, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_adjust_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamic
+ * @param structure
* The string to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_decimate_by_
- extern f_status_t f_string_dynamic_decimate_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic);
+ extern f_status_t f_string_dynamic_decimate_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamic
+ * @param structure
* The string to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_decrease_by_
- extern f_status_t f_string_dynamic_decrease_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic);
+ extern f_status_t f_string_dynamic_decrease_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param dynamic
+ * @param structure
* The string to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_increase_
- extern f_status_t f_string_dynamic_increase(const f_number_unsigned_t step, f_string_dynamic_t * const dynamic);
+ extern f_status_t f_string_dynamic_increase(const f_number_unsigned_t step, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param dynamic
+ * @param structure
* The string to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_increase_by_
- extern f_status_t f_string_dynamic_increase_by(const f_number_unsigned_t amount, f_string_dynamic_t * const dynamic);
+ extern f_status_t f_string_dynamic_increase_by(const f_number_unsigned_t amount, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_increase_by_
/**
*
* @param length
* The new size to use.
- * @param buffer
+ * @param structure
* The string to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_resize_
- extern f_status_t f_string_dynamic_resize(const f_number_unsigned_t length, f_string_dynamic_t * const buffer);
+ extern f_status_t f_string_dynamic_resize(const f_number_unsigned_t length, f_string_dynamic_t * const structure);
#endif // _di_f_string_dynamic_resize_
/**
* Seek the buffer location forward until EOL is reached.
*
- * @param buffer
+ * @param structure
* The buffer to traverse.
* @param range
* A range within the buffer representing the start and stop locations.
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_seek_line_
- extern f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t * const range);
+ extern f_status_t f_string_dynamic_seek_line(const f_string_static_t structure, f_string_range_t * const range);
#endif // _di_f_string_dynamic_seek_line_
/**
* Seek the buffer location forward until the character (1-byte wide) or EOL is reached.
*
- * @param buffer
+ * @param structure
* The buffer to traverse.
* @param seek_to_this
* A single-width character representing a character to seek to.
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_seek_line_to_
- extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t structure, const f_char_t seek_to_this, f_string_range_t * const range);
#endif // _di_f_string_dynamic_seek_line_to_
/**
* Seek the buffer location forward until the character (1-byte wide) is reached.
*
- * @param buffer
+ * @param structure
* The buffer to traverse.
* @param seek_to_this
* A single-width character representing a character to seek to.
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_seek_to_
- extern f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_string_dynamic_seek_to(const f_string_static_t structure, const f_char_t seek_to_this, f_string_range_t * const range);
#endif // _di_f_string_dynamic_seek_to_
/**
#endif
#ifndef _di_f_string_dynamics_adjust_
- f_status_t f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_dynamics_adjust(length, dynamics);
+ return private_f_string_dynamics_adjust(length, structure);
}
#endif // _di_f_string_dynamics_adjust_
#endif // _di_f_string_dynamics_append_all_
#ifndef _di_f_string_dynamics_decimate_by_
- f_status_t f_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_dynamics_adjust((dynamics->size > amount) ? dynamics->size - amount : 0, dynamics);
+ return private_f_string_dynamics_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_dynamics_decimate_by_
#ifndef _di_f_string_dynamics_decrease_by_
- f_status_t f_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_dynamics_resize((dynamics->size > amount) ? dynamics->size - amount : 0, dynamics);
+ return private_f_string_dynamics_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_dynamics_decrease_by_
#ifndef _di_f_string_dynamics_increase_
- f_status_t f_string_dynamics_increase(const f_number_unsigned_t step, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_increase(const f_number_unsigned_t step, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!step) return F_data_not;
- if (dynamics->used + 1 > dynamics->size) {
- f_number_unsigned_t length = dynamics->used + step;
+ if (structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (dynamics->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_dynamics_resize(length, dynamics);
+ return private_f_string_dynamics_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_dynamics_increase_
#ifndef _di_f_string_dynamics_increase_by_
- f_status_t f_string_dynamics_increase_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_increase_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (dynamics->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = dynamics->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > dynamics->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_dynamics_resize(dynamics->used + amount, dynamics);
+ return private_f_string_dynamics_resize(structure->used + amount, structure);
}
}
#endif // _di_f_string_dynamics_increase_by_
#ifndef _di_f_string_dynamics_resize_
- f_status_t f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) {
+ f_status_t f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_dynamics_resize(length, dynamics);
+ return private_f_string_dynamics_resize(length, structure);
}
#endif // _di_f_string_dynamics_resize_
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*/
#ifndef _di_f_string_dynamics_adjust_
- extern f_status_t f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamics_decimate_by_
- extern f_status_t f_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamics_decrease_by_
- extern f_status_t f_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamics_increase_
- extern f_status_t f_string_dynamics_increase(const f_number_unsigned_t step, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_increase(const f_number_unsigned_t step, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamics_increase_by_
- extern f_status_t f_string_dynamics_increase_by(const f_number_unsigned_t amount, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_increase_by(const f_number_unsigned_t amount, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_increase_by_
/**
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamics_resize_
- extern f_status_t f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics);
+ extern f_status_t f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const structure);
#endif // _di_f_string_dynamics_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_dynamicss_adjust_
- f_status_t f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_dynamicss_adjust(length, dynamicss);
+ return private_f_string_dynamicss_adjust(length, structure);
}
#endif // _di_f_string_dynamicss_adjust_
#endif // _di_f_string_dynamicss_append_all_
#ifndef _di_f_string_dynamicss_decimate_by_
- f_status_t f_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_dynamicss_adjust((dynamicss->size > amount) ? dynamicss->size - amount : 0, dynamicss);
+ return private_f_string_dynamicss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_dynamicss_decimate_by_
#ifndef _di_f_string_dynamicss_decrease_by_
- f_status_t f_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_dynamicss_resize((dynamicss->size > amount) ? dynamicss->size - amount : 0, dynamicss);
+ return private_f_string_dynamicss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_dynamicss_decrease_by_
#ifndef _di_f_string_dynamicss_increase_
- f_status_t f_string_dynamicss_increase(const f_number_unsigned_t step, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_increase(const f_number_unsigned_t step, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!step) return F_data_not;
- if (dynamicss->used + 1 > dynamicss->size) {
- f_number_unsigned_t length = dynamicss->used + step;
+ if (structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (dynamicss->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_dynamicss_resize(length, dynamicss);
+ return private_f_string_dynamicss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_dynamicss_increase_
#ifndef _di_f_string_dynamicss_increase_by_
- f_status_t f_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (dynamicss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = dynamicss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > dynamicss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_dynamicss_resize(dynamicss->used + amount, dynamicss);
+ return private_f_string_dynamicss_resize(structure->used + amount, structure);
}
}
#endif // _di_f_string_dynamicss_increase_by_
#ifndef _di_f_string_dynamicss_resize_
- f_status_t f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) {
+ f_status_t f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_dynamicss_resize(length, dynamicss);
+ return private_f_string_dynamicss_resize(length, structure);
}
#endif // _di_f_string_dynamicss_resize_
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*/
#ifndef _di_f_string_dynamicss_adjust_
- extern f_status_t f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamicss_decimate_by_
- extern f_status_t f_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamicss_decrease_by_
- extern f_status_t f_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamicss_increase_
- extern f_status_t f_string_dynamicss_increase(const f_number_unsigned_t step, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_increase(const f_number_unsigned_t step, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamicss_increase_by_
- extern f_status_t f_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamicss_resize_
- extern f_status_t f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const structure);
#endif // _di_f_string_dynamicss_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_map_multis_adjust_
- f_status_t f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_map_multis_adjust(length, map_multis);
+ return private_f_string_map_multis_adjust(length, structure);
}
#endif // _di_f_string_map_multis_adjust_
#endif // _di_f_string_map_multis_append_all_
#ifndef _di_f_string_map_multis_decimate_by_
- f_status_t f_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_map_multis_adjust((map_multis->size > amount) ? map_multis->size - amount : 0, map_multis);
+ return private_f_string_map_multis_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_map_multis_decimate_by_
#ifndef _di_f_string_map_multis_decrease_by_
- f_status_t f_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_map_multis_resize((map_multis->size > amount) ? map_multis->size - amount : 0, map_multis);
+ return private_f_string_map_multis_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_map_multis_decrease_by_
#ifndef _di_f_string_map_multis_increase_
- f_status_t f_string_map_multis_increase(const f_number_unsigned_t step, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_increase(const f_number_unsigned_t step, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && map_multis->used + 1 > map_multis->size) {
- f_number_unsigned_t length = map_multis->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (map_multis->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_map_multis_resize(length, map_multis);
+ return private_f_string_map_multis_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_map_multis_increase_
#ifndef _di_f_string_map_multis_increase_by_
- f_status_t f_string_map_multis_increase_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_increase_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (map_multis->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = map_multis->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > map_multis->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_map_multis_resize(length, map_multis);
+ return private_f_string_map_multis_resize(length, structure);
}
}
#endif // _di_f_string_map_multis_increase_by_
#ifndef _di_f_string_map_multis_resize_
- f_status_t f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis) {
+ f_status_t f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_map_multis_resize(length, map_multis);
+ return private_f_string_map_multis_resize(length, structure);
}
#endif // _di_f_string_map_multis_resize_
*
* @param length
* The new size to use.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_adjust_
- extern f_status_t f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_decimate_by_
- extern f_status_t f_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_decrease_by_
- extern f_status_t f_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_increase_
- extern f_status_t f_string_map_multis_increase(const f_number_unsigned_t step, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_increase(const f_number_unsigned_t step, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_increase_by_
- extern f_status_t f_string_map_multis_increase_by(const f_number_unsigned_t amount, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_increase_by(const f_number_unsigned_t amount, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_increase_by_
/**
*
* @param length
* The new size to use.
- * @param map_multis
+ * @param structure
* The map_multis array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multis_resize_
- extern f_status_t f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis);
+ extern f_status_t f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const structure);
#endif // _di_f_string_map_multis_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_map_multiss_adjust_
- f_status_t f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_map_multiss_adjust(length, map_multiss);
+ return private_f_string_map_multiss_adjust(length, structure);
}
#endif // _di_f_string_map_multiss_adjust_
#endif // _di_f_string_map_multiss_append_all_
#ifndef _di_f_string_map_multiss_decimate_by_
- f_status_t f_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_map_multiss_adjust((map_multiss->size > amount) ? map_multiss->size - amount : 0, map_multiss);
+ return private_f_string_map_multiss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_map_multiss_decimate_by_
#ifndef _di_f_string_map_multiss_decrease_by_
- f_status_t f_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_map_multiss_resize((map_multiss->size > amount) ? map_multiss->size - amount : 0, map_multiss);
+ return private_f_string_map_multiss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_map_multiss_decrease_by_
#ifndef _di_f_string_map_multiss_increase_
- f_status_t f_string_map_multiss_increase(const f_number_unsigned_t step, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_increase(const f_number_unsigned_t step, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && map_multiss->used + 1 > map_multiss->size) {
- f_number_unsigned_t length = map_multiss->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (map_multiss->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_map_multiss_resize(length, map_multiss);
+ return private_f_string_map_multiss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_map_multiss_increase_
#ifndef _di_f_string_map_multiss_increase_by_
- f_status_t f_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (map_multiss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = map_multiss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > map_multiss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_map_multiss_resize(length, map_multiss);
+ return private_f_string_map_multiss_resize(length, structure);
}
}
#endif // _di_f_string_map_multiss_increase_by_
#ifndef _di_f_string_map_multiss_resize_
- f_status_t f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) {
+ f_status_t f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_map_multiss_resize(length, map_multiss);
+ return private_f_string_map_multiss_resize(length, structure);
}
#endif // _di_f_string_map_multiss_resize_
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_adjust_
- extern f_status_t f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_decimate_by_
- extern f_status_t f_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_decrease_by_
- extern f_status_t f_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_increase_
- extern f_status_t f_string_map_multiss_increase(const f_number_unsigned_t step, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_increase(const f_number_unsigned_t step, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_increase_by_
- extern f_status_t f_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_map_multiss_resize_
- extern f_status_t f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const structure);
#endif // _di_f_string_map_multiss_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_maps_adjust_
- f_status_t f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_maps_adjust(length, maps);
+ return private_f_string_maps_adjust(length, structure);
}
#endif // _di_f_string_maps_adjust_
#endif // _di_f_string_maps_append_all_
#ifndef _di_f_string_maps_decimate_by_
- f_status_t f_string_maps_decimate_by(const f_number_unsigned_t amount, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_decimate_by(const f_number_unsigned_t amount, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_maps_adjust((maps->size > amount) ? maps->size - amount : 0, maps);
+ return private_f_string_maps_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_maps_decimate_by_
#ifndef _di_f_string_maps_decrease_by_
- f_status_t f_string_maps_decrease_by(const f_number_unsigned_t amount, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_decrease_by(const f_number_unsigned_t amount, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_maps_resize((maps->size > amount) ? maps->size - amount : 0, maps);
+ return private_f_string_maps_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_maps_decrease_by_
#ifndef _di_f_string_maps_increase_
- f_status_t f_string_maps_increase(const f_number_unsigned_t step, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_increase(const f_number_unsigned_t step, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && maps->used + 1 > maps->size) {
- f_number_unsigned_t length = maps->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (maps->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_maps_resize(length, maps);
+ return private_f_string_maps_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_maps_increase_
#ifndef _di_f_string_maps_increase_by_
- f_status_t f_string_maps_increase_by(const f_number_unsigned_t amount, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_increase_by(const f_number_unsigned_t amount, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (maps->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = maps->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > maps->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_maps_resize(length, maps);
+ return private_f_string_maps_resize(length, structure);
}
}
#endif // _di_f_string_maps_increase_by_
#ifndef _di_f_string_maps_resize_
- f_status_t f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const maps) {
+ f_status_t f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_maps_resize(length, maps);
+ return private_f_string_maps_resize(length, structure);
}
#endif // _di_f_string_maps_resize_
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_adjust_
- extern f_status_t f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const structure);
#endif // _di_f_string_maps_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_decimate_by_
- extern f_status_t f_string_maps_decimate_by(const f_number_unsigned_t amount, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_decimate_by(const f_number_unsigned_t amount, f_string_maps_t * const structure);
#endif // _di_f_string_maps_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_decrease_by_
- extern f_status_t f_string_maps_decrease_by(const f_number_unsigned_t amount, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_decrease_by(const f_number_unsigned_t amount, f_string_maps_t * const structure);
#endif // _di_f_string_maps_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_increase_
- extern f_status_t f_string_maps_increase(const f_number_unsigned_t step, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_increase(const f_number_unsigned_t step, f_string_maps_t * const structure);
#endif // _di_f_string_maps_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_increase_by_
- extern f_status_t f_string_maps_increase_by(const f_number_unsigned_t amount, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_increase_by(const f_number_unsigned_t amount, f_string_maps_t * const structure);
#endif // _di_f_string_maps_increase_by_
/**
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The string maps array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_maps_resize_
- extern f_status_t f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const maps);
+ extern f_status_t f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const structure);
#endif // _di_f_string_maps_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_mapss_adjust_
- f_status_t f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_mapss_adjust(length, mapss);
+ return private_f_string_mapss_adjust(length, structure);
}
#endif // _di_f_string_mapss_adjust_
#endif // _di_f_string_mapss_append_all_
#ifndef _di_f_string_mapss_decimate_by_
- f_status_t f_string_mapss_decimate_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_decimate_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_mapss_adjust((mapss->size > amount) ? mapss->size - amount : 0, mapss);
+ return private_f_string_mapss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_mapss_decimate_by_
#ifndef _di_f_string_mapss_decrease_by_
- f_status_t f_string_mapss_decrease_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_decrease_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_mapss_resize((mapss->size > amount) ? mapss->size - amount : 0, mapss);
+ return private_f_string_mapss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_mapss_decrease_by_
#ifndef _di_f_string_mapss_increase_
- f_status_t f_string_mapss_increase(const f_number_unsigned_t step, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_increase(const f_number_unsigned_t step, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && mapss->used + 1 > mapss->size) {
- f_number_unsigned_t length = mapss->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (mapss->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_mapss_resize(length, mapss);
+ return private_f_string_mapss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_mapss_increase_
#ifndef _di_f_string_mapss_increase_by_
- f_status_t f_string_mapss_increase_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_increase_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (mapss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = mapss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > mapss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_mapss_resize(length, mapss);
+ return private_f_string_mapss_resize(length, structure);
}
}
#endif // _di_f_string_mapss_increase_by_
#ifndef _di_f_string_mapss_resize_
- f_status_t f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const mapss) {
+ f_status_t f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_mapss_resize(length, mapss);
+ return private_f_string_mapss_resize(length, structure);
}
#endif // _di_f_string_mapss_resize_
*
* @param length
* The new size to use.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_adjust_
- extern f_status_t f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_decimate_by_
- extern f_status_t f_string_mapss_decimate_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_decimate_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_decrease_by_
- extern f_status_t f_string_mapss_decrease_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_decrease_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_increase_
- extern f_status_t f_string_mapss_increase(const f_number_unsigned_t step, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_increase(const f_number_unsigned_t step, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_increase_by_
- extern f_status_t f_string_mapss_increase_by(const f_number_unsigned_t amount, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_increase_by(const f_number_unsigned_t amount, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param mapss
+ * @param structure
* The string mapss array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_mapss_resize_
- extern f_status_t f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const mapss);
+ extern f_status_t f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const structure);
#endif // _di_f_string_mapss_resize_
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
- f_status_t private_f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) {
+ f_status_t private_f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamics->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &dynamics->array[i].string, &dynamics->array[i].used, &dynamics->array[i].size);
+ status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_dynamic_t), (void **) &dynamics->array, &dynamics->used, &dynamics->size);
+ return f_memory_array_adjust(length, sizeof(f_string_dynamic_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
#endif // !defined(_di_f_string_dynamics_append_all_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_)
#if !defined(_di_f_string_dynamics_decrease_by_) || !defined(_di_f_string_dynamics_increase_) || !defined(_di_f_string_dynamics_increase_by_) || !defined(f_string_dynamics_resize) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
- f_status_t private_f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) {
+ f_status_t private_f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamics->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &dynamics->array[i].string, &dynamics->array[i].used, &dynamics->array[i].size);
+ status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_dynamic_t), (void **) &dynamics->array, &dynamics->used, &dynamics->size);
+ return f_memory_array_resize(length, sizeof(f_string_dynamic_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_dynamics_decrease_by_) || !defined(_di_f_string_dynamics_increase_) || !defined(_di_f_string_dynamics_increase_by_) || !defined(f_string_dynamics_resize) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The dynamics to adjust.
*
* @return
* @see f_string_map_multis_append()
*/
#if !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
- extern f_status_t private_f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
/**
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The dynamics to resize.
*
* @return
* @see f_string_map_multiss_increase_by()
*/
#if !defined(_di_f_string_dynamics_decrease_by_) || !defined(_di_f_string_dynamics_increase_) || !defined(_di_f_string_dynamics_increase_by_) || !defined(f_string_dynamics_resize) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
- extern f_status_t private_f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const dynamics) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_dynamics_decrease_by_) || !defined(_di_f_string_dynamics_increase_) || !defined(_di_f_string_dynamics_increase_by_) || !defined(f_string_dynamics_resize) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_dynamicss_adjust_) || !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_dynamicss_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
- f_status_t private_f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) {
+ f_status_t private_f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamicss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_dynamics_adjust(0, &dynamicss->array[i]);
+ status = private_f_string_dynamics_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_dynamics_t), (void **) &dynamicss->array, &dynamicss->used, &dynamicss->size);
+ return f_memory_array_adjust(length, sizeof(f_string_dynamics_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_dynamicss_adjust_) || !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_dynamicss_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
#if !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) || !defined(_di_f_string_dynamicss_append_all_) || !defined(_di_f_string_map_multis_append_all_)
- f_status_t private_f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) {
+ f_status_t private_f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamicss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_dynamics_resize(0, &dynamicss->array[i]);
+ status = private_f_string_dynamics_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_dynamics_t), (void **) &dynamicss->array, &dynamicss->used, &dynamicss->size);
+ return f_memory_array_resize(length, sizeof(f_string_dynamics_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) || !defined(_di_f_string_dynamicss_append_all_) || !defined(_di_f_string_map_multis_append_all_)
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The dynamicss to adjust.
*
* @return
* @see f_string_map_multis_append()
*/
#if !defined(_di_f_string_dynamicss_adjust_) || !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_dynamicss_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
- extern f_status_t private_f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_dynamicss_adjust_) || !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_dynamicss_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_)
/**
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The dynamicss to resize.
*
* @return
* @see f_string_map_multis_append_all()
*/
#if !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) || !defined(_di_f_string_dynamicss_append_all_) || !defined(_di_f_string_map_multis_append_all_)
- extern f_status_t private_f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const dynamicss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) || !defined(_di_f_string_dynamicss_append_all_) || !defined(_di_f_string_map_multis_append_all_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_)
- f_status_t private_f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis) {
+ f_status_t private_f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multis->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &map_multis->array[i].name.string, &map_multis->array[i].name.used, &map_multis->array[i].name.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamics_adjust(0, &map_multis->array[i].value);
+ status = private_f_string_dynamics_adjust(0, &structure->array[i].value);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_map_multi_t), (void **) &map_multis->array, &map_multis->used, &map_multis->size);
+ return f_memory_array_adjust(length, sizeof(f_string_map_multi_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_)
#endif // !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_)
#if !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
- f_status_t private_f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const map_multis) {
+ f_status_t private_f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multis->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &map_multis->array[i].name.string, &map_multis->array[i].name.used, &map_multis->array[i].name.size);
+ status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamics_resize(0, &map_multis->array[i].value);
+ status = private_f_string_dynamics_resize(0, &structure->array[i].value);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_map_multi_t), (void **) &map_multis->array, &map_multis->used, &map_multis->size);
+ return f_memory_array_resize(length, sizeof(f_string_map_multi_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
#endif
#if !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_)
- f_status_t private_f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) {
+ f_status_t private_f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multiss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_map_multis_adjust(0, &map_multiss->array[i]);
+ status = private_f_string_map_multis_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_map_multis_t), (void **) &map_multiss->array, &map_multiss->used, &map_multiss->size);
+ return f_memory_array_adjust(length, sizeof(f_string_map_multis_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_)
#if !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
- f_status_t private_f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) {
+ f_status_t private_f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multiss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_map_multis_resize(0, &map_multiss->array[i]);
+ status = private_f_string_map_multis_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_map_multis_t), (void **) &map_multiss->array, &map_multiss->used, &map_multiss->size);
+ return f_memory_array_resize(length, sizeof(f_string_map_multis_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss to adjust.
*
* @return
* @see f_string_map_multiss_adjust()
*/
#if !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_)
- extern f_status_t private_f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss to resize.
*
* @return
* @see f_string_map_multiss_increase_by()
*/
#if !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
- extern f_status_t private_f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_)
- f_status_t private_f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const maps) {
+ f_status_t private_f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < maps->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &maps->array[i].name.string, &maps->array[i].name.used, &maps->array[i].name.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &maps->array[i].value.string, &maps->array[i].value.used, &maps->array[i].value.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_t), (void **) &structure->array[i].value.string, &structure->array[i].value.used, &structure->array[i].value.size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_map_t), (void **) &maps->array, &maps->used, &maps->size);
+ return f_memory_array_adjust(length, sizeof(f_string_map_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_)
#endif // !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_)
#if !defined(_di_f_string_maps_append_) || !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_resize_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) || !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
- f_status_t private_f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const maps) {
+ f_status_t private_f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < maps->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &maps->array[i].name.string, &maps->array[i].name.used, &maps->array[i].name.size);
+ status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &maps->array[i].value.string, &maps->array[i].value.used, &maps->array[i].value.size);
+ status = f_memory_array_resize(0, sizeof(f_string_t), (void **) &structure->array[i].value.string, &structure->array[i].value.used, &structure->array[i].value.size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_map_t), (void **) &maps->array, &maps->used, &maps->size);
+ return f_memory_array_resize(length, sizeof(f_string_map_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_maps_append_) || !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_resize_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) || !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The maps to adjust.
*
* @return
* @see f_string_maps_adjust()
*/
#if !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_)
- extern f_status_t private_f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const maps) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The maps to resize.
*
* @return
* @see f_string_mapss_increase_by()
*/
#if !defined(_di_f_string_maps_append_) || !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_resize_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) || !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
- extern f_status_t private_f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const maps) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_maps_append_) || !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_resize_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) || !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_)
- f_status_t private_f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const mapss) {
+ f_status_t private_f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < mapss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_maps_adjust(0, &mapss->array[i]);
+ status = private_f_string_maps_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_maps_t), (void **) &mapss->array, &mapss->used, &mapss->size);
+ return f_memory_array_adjust(length, sizeof(f_string_maps_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_)
#if !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
- f_status_t private_f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const mapss) {
+ f_status_t private_f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < mapss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_maps_resize(0, &mapss->array[i]);
+ status = private_f_string_maps_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_maps_t), (void **) &mapss->array, &mapss->used, &mapss->size);
+ return f_memory_array_resize(length, sizeof(f_string_maps_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
*
* @param length
* The new size to use.
- * @param mapss
- * The mapss to adjust.
+ * @param structure
+ * The structure to adjust.
*
* @return
* F_none on success.
* @see f_string_mapss_adjust()
*/
#if !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_)
- extern f_status_t private_f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const mapss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param mapss
- * The mapss to resize.
+ * @param structure
+ * The structure to resize.
*
* @return
* F_none on success.
* @see f_string_mapss_increase_by()
*/
#if !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
- extern f_status_t private_f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const mapss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_)
- f_status_t private_f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) {
+ f_status_t private_f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < quantityss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(length, sizeof(f_string_quantitys_t), (void **) &quantityss->array[i].array, &quantityss->array[i].used, &quantityss->array[i].size);
+ status = f_memory_array_adjust(length, sizeof(f_string_quantitys_t), (void **) &structure->array[i].array, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_quantitys_t), (void **) &quantityss->array, &quantityss->used, &quantityss->size);
+ return f_memory_array_adjust(length, sizeof(f_string_quantitys_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_)
#if !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_)
- f_status_t private_f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) {
+ f_status_t private_f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < quantityss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_quantity_t), (void **) &quantityss->array[i].array, &quantityss->array[i].used, &quantityss->array[i].size);
+ status = f_memory_array_resize(0, sizeof(f_string_quantity_t), (void **) &structure->array[i].array, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_quantitys_t), (void **) &quantityss->array, &quantityss->used, &quantityss->size);
+ return f_memory_array_resize(length, sizeof(f_string_quantitys_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_)
*
* @param length
* The new size to use.
- * @param quantityss
- * The quantityss to adjust.
+ * @param structure
+ * The structure to adjust.
*
* @return
* F_none on success.
* @see f_string_quantityss_adjust()
*/
#if !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_)
- extern f_status_t private_f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param quantityss
- * The quantityss to resize.
+ * @param structure
+ * The structure to resize.
*
* @return
* F_none on success.
* @see f_string_quantityss_increase_by()
*/
#if !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_)
- extern f_status_t private_f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_)
- f_status_t private_f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const rangess) {
+ f_status_t private_f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < rangess->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &rangess->array[i].array, &rangess->array[i].used, &rangess->array[i].size);
+ status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &structure->array[i].array, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_ranges_t), (void **) &rangess->array, &rangess->used, &rangess->size);
+ return f_memory_array_adjust(length, sizeof(f_string_ranges_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_)
#if !defined(_di_f_string_ranges_append_) || !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_resize_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_)
- f_status_t private_f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const rangess) {
+ f_status_t private_f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < rangess->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &rangess->array[i].array, &rangess->array[i].used, &rangess->array[i].size);
+ status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &structure->array[i].array, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_ranges_t), (void **) &rangess->array, &rangess->used, &rangess->size);
+ return f_memory_array_resize(length, sizeof(f_string_ranges_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_ranges_append_) || !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_resize_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_)
*
* @param length
* The new size to use.
- * @param rangess
- * The rangess to adjust.
+ * @param structure
+ * The structure to adjust.
*
* @return
* F_none on success.
* @see f_string_rangess_adjust()
*/
#if !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_)
- extern f_status_t private_f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const rangess) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param rangess
- * The rangess to resize.
+ * @param structure
+ * The structure to resize.
*
* @return
* F_none on success.
* @see f_string_rangess_increase_by()
*/
#if !defined(_di_f_string_ranges_append_) || !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_resize_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_)
- extern f_status_t private_f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const rangess) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_ranges_append_) || !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_resize_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_)
- f_status_t private_f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const triples) {
+ f_status_t private_f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < triples->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &triples->array[i].a.string, &triples->array[i].a.used, &triples->array[i].a.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &structure->array[i].a.string, &structure->array[i].a.used, &structure->array[i].a.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &triples->array[i].b.string, &triples->array[i].b.used, &triples->array[i].b.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &structure->array[i].b.string, &structure->array[i].b.used, &structure->array[i].b.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &triples->array[i].c.string, &triples->array[i].c.used, &triples->array[i].c.size);
+ status = f_memory_array_adjust(0, sizeof(f_string_triple_t), (void **) &structure->array[i].c.string, &structure->array[i].c.used, &structure->array[i].c.size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_triple_t), (void **) &triples->array, &triples->used, &triples->size);
+ return f_memory_array_adjust(length, sizeof(f_string_triple_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_)
#endif // !defined(_di_f_string_triples_append_all_) || !defined(_di_f_string_tripless_append_) || !defined(_di_f_string_tripless_append_all_)
#if !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_)
- f_status_t private_f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const triples) {
+ f_status_t private_f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < triples->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &triples->array[i].a.string, &triples->array[i].a.used, &triples->array[i].a.size);
+ status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &structure->array[i].a.string, &structure->array[i].a.used, &structure->array[i].a.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &triples->array[i].b.string, &triples->array[i].b.used, &triples->array[i].b.size);
+ status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &structure->array[i].b.string, &structure->array[i].b.used, &structure->array[i].b.size);
if (F_status_is_error(status)) return status;
- status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &triples->array[i].c.string, &triples->array[i].c.used, &triples->array[i].c.size);
+ status = f_memory_array_resize(0, sizeof(f_string_triple_t), (void **) &structure->array[i].c.string, &structure->array[i].c.used, &structure->array[i].c.size);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_triple_t), (void **) &triples->array, &triples->used, &triples->size);
+ return f_memory_array_resize(length, sizeof(f_string_triple_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_)
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The triples to adjust.
*
* @return
* @see f_string_triples_adjust()
*/
#if !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_)
- extern f_status_t private_f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const triples) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The triples to resize.
*
* @return
* @see f_string_triples_increase_by()
*/
#if !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_)
- extern f_status_t private_f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const triples) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_)
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to adjust.
*
* @return
* @see f_string_tripless_adjust()
*/
#if !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
- extern f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to resize.
*
* @return
* @see f_string_tripless_increase_by()
*/
#if !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
- extern f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
- f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const tripless) {
+ f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < tripless->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_triples_adjust(0, &tripless->array[i]);
+ status = private_f_string_triples_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_string_triples_t), (void **) &tripless->array, &tripless->used, &tripless->size);
+ return f_memory_array_adjust(length, sizeof(f_string_triples_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
#if !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
- f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const tripless) {
+ f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < tripless->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_string_triples_resize(0, &tripless->array[i]);
+ status = private_f_string_triples_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_string_triples_t), (void **) &tripless->array, &tripless->used, &tripless->size);
+ return f_memory_array_resize(length, sizeof(f_string_triples_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to adjust.
*
* @return
* @see f_string_tripless_adjust()
*/
#if !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
- extern f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to resize.
*
* @return
* @see f_string_tripless_increase_by()
*/
#if !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
- extern f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_)
#ifdef __cplusplus
#endif
#ifndef _di_f_string_quantitys_adjust_
- f_status_t f_string_quantitys_adjust(const f_number_unsigned_t length, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_adjust(const f_number_unsigned_t length, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_adjust(length, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_adjust(length, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_adjust_
#endif // _di_f_string_quantitys_append_all_
#ifndef _di_f_string_quantitys_decimate_by_
- f_status_t f_string_quantitys_decimate_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_decimate_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_decimate_by(amount, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_decimate_by(amount, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_decimate_by_
#ifndef _di_f_string_quantitys_decrease_by_
- f_status_t f_string_quantitys_decrease_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_decrease_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_decrease_by(amount, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_decrease_by(amount, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_decrease_by_
#ifndef _di_f_string_quantitys_increase_
- f_status_t f_string_quantitys_increase(const f_number_unsigned_t step, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_increase(const f_number_unsigned_t step, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase(step, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_increase(step, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_increase_
#ifndef _di_f_string_quantitys_increase_by_
- f_status_t f_string_quantitys_increase_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_increase_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase_by(amount, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_increase_by(amount, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_increase_by_
#ifndef _di_f_string_quantitys_resize_
- f_status_t f_string_quantitys_resize(const f_number_unsigned_t length, f_string_quantitys_t * const quantitys) {
+ f_status_t f_string_quantitys_resize(const f_number_unsigned_t length, f_string_quantitys_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantitys) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_resize(length, sizeof(f_string_quantity_t), (void **) &quantitys->array, &quantitys->used, &quantitys->size);
+ return f_memory_array_resize(length, sizeof(f_string_quantity_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_quantitys_resize_
*
* @param length
* The new size to use.
- * @param quantitys
+ * @param structure
* The string quantitys array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_adjust_
- extern f_status_t f_string_quantitys_adjust(const f_number_unsigned_t length, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_adjust(const f_number_unsigned_t length, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param quantitys
+ * @param structure
* The string quantitys array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_decimate_by_
- extern f_status_t f_string_quantitys_decimate_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_decimate_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param quantitys
+ * @param structure
* The string quantitys array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_decrease_by_
- extern f_status_t f_string_quantitys_decrease_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_decrease_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param quantitys
+ * @param structure
* The string quantitys array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_increase_
- extern f_status_t f_string_quantitys_increase(const f_number_unsigned_t step, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_increase(const f_number_unsigned_t step, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param quantitys
+ * @param structure
* The string quantitys array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_increase_by_
- extern f_status_t f_string_quantitys_increase_by(const f_number_unsigned_t amount, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_increase_by(const f_number_unsigned_t amount, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_increase_by_
/**
*
* @param length
* The new size to use.
- * @param quantitys
+ * @param structure
* The string quantitys array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantitys_resize_
- extern f_status_t f_string_quantitys_resize(const f_number_unsigned_t length, f_string_quantitys_t * const quantitys);
+ extern f_status_t f_string_quantitys_resize(const f_number_unsigned_t length, f_string_quantitys_t * const structure);
#endif // _di_f_string_quantitys_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_quantityss_adjust_
- f_status_t f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_quantityss_adjust(length, quantityss);
+ return private_f_string_quantityss_adjust(length, structure);
}
#endif // _di_f_string_quantityss_adjust_
#endif // _di_f_string_quantityss_append_all_
#ifndef _di_f_string_quantityss_decimate_by_
- f_status_t f_string_quantityss_decimate_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_decimate_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_quantityss_adjust((quantityss->size > amount) ? quantityss->size - amount : 0, quantityss);
+ return private_f_string_quantityss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_quantityss_decimate_by_
#ifndef _di_f_string_quantityss_decrease_by_
- f_status_t f_string_quantityss_decrease_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_decrease_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_quantityss_resize((quantityss->size > amount) ? quantityss->size - amount : 0, quantityss);
+ return private_f_string_quantityss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_quantityss_decrease_by_
#ifndef _di_f_string_quantityss_increase_
- f_status_t f_string_quantityss_increase(const f_number_unsigned_t step, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_increase(const f_number_unsigned_t step, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && quantityss->used + 1 > quantityss->size) {
- f_number_unsigned_t length = quantityss->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (quantityss->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_quantityss_resize(length, quantityss);
+ return private_f_string_quantityss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_quantityss_increase_
#ifndef _di_f_string_quantityss_increase_by_
- f_status_t f_string_quantityss_increase_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_increase_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (quantityss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = quantityss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > quantityss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_quantityss_resize(length, quantityss);
+ return private_f_string_quantityss_resize(length, structure);
}
}
#endif // _di_f_string_quantityss_increase_by_
#ifndef _di_f_string_quantityss_resize_
- f_status_t f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss) {
+ f_status_t f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!quantityss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_quantityss_resize(length, quantityss);
+ return private_f_string_quantityss_resize(length, structure);
}
#endif // _di_f_string_quantityss_resize_
*
* @param length
* The new size to use.
- * @param quantityss
+ * @param structure
* The string quantityss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_adjust_
- extern f_status_t f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param quantityss
+ * @param structure
* The string quantityss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_decimate_by_
- extern f_status_t f_string_quantityss_decimate_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_decimate_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param quantityss
+ * @param structure
* The string quantityss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_decrease_by_
- extern f_status_t f_string_quantityss_decrease_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_decrease_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param quantityss
+ * @param structure
* The string quantityss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_increase_
- extern f_status_t f_string_quantityss_increase(const f_number_unsigned_t step, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_increase(const f_number_unsigned_t step, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param quantityss
+ * @param structure
* The string quantityss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_increase_by_
- extern f_status_t f_string_quantityss_increase_by(const f_number_unsigned_t amount, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_increase_by(const f_number_unsigned_t amount, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param quantityss
+ * @param structure
* The string quantityss array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_quantityss_resize_
- extern f_status_t f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const quantityss);
+ extern f_status_t f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const structure);
#endif // _di_f_string_quantityss_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_ranges_adjust_
- f_status_t f_string_ranges_adjust(const f_number_unsigned_t length, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_adjust(const f_number_unsigned_t length, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_adjust(length, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_adjust(length, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_adjust_
#endif // _di_f_string_ranges_append_all_
#ifndef _di_f_string_ranges_decimate_by_
- f_status_t f_string_ranges_decimate_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_decimate_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return f_memory_array_decimate_by(amount, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_decimate_by(amount, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_decimate_by_
#ifndef _di_f_string_ranges_decrease_by_
- f_status_t f_string_ranges_decrease_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_decrease_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_decrease_by(amount, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_decrease_by(amount, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_decrease_by_
#ifndef _di_f_string_ranges_increase_
- f_status_t f_string_ranges_increase(const f_number_unsigned_t step, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_increase(const f_number_unsigned_t step, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase(step, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_increase(step, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_increase_
#ifndef _di_f_string_ranges_increase_by_
- f_status_t f_string_ranges_increase_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_increase_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_increase_by(amount, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_increase_by(amount, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_increase_by_
#ifndef _di_f_string_ranges_resize_
- f_status_t f_string_ranges_resize(const f_number_unsigned_t length, f_string_ranges_t * const ranges) {
+ f_status_t f_string_ranges_resize(const f_number_unsigned_t length, f_string_ranges_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!ranges) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ return f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // _di_f_string_ranges_resize_
*
* @param length
* The new size to use.
- * @param ranges
+ * @param structure
* The string ranges array to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_ranges_adjust_
- extern f_status_t f_string_ranges_adjust(const f_number_unsigned_t length, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_adjust(const f_number_unsigned_t length, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param ranges
+ * @param structure
* The string ranges array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_ranges_decimate_by_
- extern f_status_t f_string_ranges_decimate_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_decimate_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param ranges
+ * @param structure
* The string ranges array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_ranges_decrease_by_
- extern f_status_t f_string_ranges_decrease_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_decrease_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param ranges
+ * @param structure
* The string ranges array to resize.
* F_data_not on success, but there is no reason to increase size (used + 1 <= size).
*
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_ranges_increase_
- extern f_status_t f_string_ranges_increase(const f_number_unsigned_t step, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_increase(const f_number_unsigned_t step, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param ranges
+ * @param structure
* The string ranges array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_ranges_increase_by_
- extern f_status_t f_string_ranges_increase_by(const f_number_unsigned_t amount, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_increase_by(const f_number_unsigned_t amount, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_increase_by_
/**
*
* @param length
* The new size to use.
- * @param ranges
+ * @param structure
* The string ranges array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_ranges_resize_
- extern f_status_t f_string_ranges_resize(const f_number_unsigned_t length, f_string_ranges_t * const ranges);
+ extern f_status_t f_string_ranges_resize(const f_number_unsigned_t length, f_string_ranges_t * const structure);
#endif // _di_f_string_ranges_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_rangess_adjust_
- f_status_t f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_rangess_adjust(length, rangess);
+ return private_f_string_rangess_adjust(length, structure);
}
#endif // _di_f_string_rangess_adjust_
#endif // _di_f_string_rangess_append_all_
#ifndef _di_f_string_rangess_decimate_by_
- f_status_t f_string_rangess_decimate_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_decimate_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_rangess_adjust((rangess->size > amount) ? rangess->size - amount : 0, rangess);
+ return private_f_string_rangess_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_rangess_decimate_by_
#ifndef _di_f_string_rangess_decrease_by_
- f_status_t f_string_rangess_decrease_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_decrease_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_rangess_resize((rangess->size > amount) ? rangess->size - amount : 0, rangess);
+ return private_f_string_rangess_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_rangess_decrease_by_
#ifndef _di_f_string_rangess_increase_
- f_status_t f_string_rangess_increase(const f_number_unsigned_t step, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_increase(const f_number_unsigned_t step, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && rangess->used + 1 > rangess->size) {
- f_number_unsigned_t length = rangess->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (rangess->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_rangess_resize(length, rangess);
+ return private_f_string_rangess_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_rangess_increase_
#ifndef _di_f_string_rangess_increase_by_
- f_status_t f_string_rangess_increase_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_increase_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (rangess->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = rangess->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > rangess->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_rangess_resize(length, rangess);
+ return private_f_string_rangess_resize(length, structure);
}
}
#endif // _di_f_string_rangess_increase_by_
#ifndef _di_f_string_rangess_resize_
- f_status_t f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const rangess) {
+ f_status_t f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!rangess) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_rangess_resize(length, rangess);
+ return private_f_string_rangess_resize(length, structure);
}
#endif // _di_f_string_rangess_resize_
*
* @param length
* The new size to use.
- * @param rangess
+ * @param structure
* The string rangess array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_adjust_
- extern f_status_t f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param rangess
+ * @param structure
* The string rangess array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_decimate_by_
- extern f_status_t f_string_rangess_decimate_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_decimate_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param rangess
+ * @param structure
* The string rangess array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_decrease_by_
- extern f_status_t f_string_rangess_decrease_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_decrease_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param rangess
+ * @param structure
* The string rangess array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_increase_
- extern f_status_t f_string_rangess_increase(const f_number_unsigned_t step, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_increase(const f_number_unsigned_t step, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param rangess
+ * @param structure
* The string rangess array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_increase_by_
- extern f_status_t f_string_rangess_increase_by(const f_number_unsigned_t amount, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_increase_by(const f_number_unsigned_t amount, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_increase_by_
/**
*
* @param length
* The new size to use.
- * @param rangess
+ * @param structure
* The string rangess array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_rangess_resize_
- extern f_status_t f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const rangess);
+ extern f_status_t f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const structure);
#endif // _di_f_string_rangess_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_string_triples_adjust_
- f_status_t f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_triples_adjust(length, triples);
+ return private_f_string_triples_adjust(length, structure);
}
#endif // _di_f_string_triples_adjust_
#endif // _di_f_string_triples_append_all_
#ifndef _di_f_string_triples_decimate_by_
- f_status_t f_string_triples_decimate_by(const f_number_unsigned_t amount, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_decimate_by(const f_number_unsigned_t amount, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_triples_adjust((triples->size > amount) ? triples->size - amount : 0, triples);
+ return private_f_string_triples_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_triples_decimate_by_
#ifndef _di_f_string_triples_decrease_by_
- f_status_t f_string_triples_decrease_by(const f_number_unsigned_t amount, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_decrease_by(const f_number_unsigned_t amount, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_triples_resize((triples->size > amount) ? triples->size - amount : 0, triples);
+ return private_f_string_triples_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_triples_decrease_by_
#ifndef _di_f_string_triples_increase_
- f_status_t f_string_triples_increase(const f_number_unsigned_t step, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_increase(const f_number_unsigned_t step, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && triples->used + 1 > triples->size) {
- f_number_unsigned_t length = triples->used + F_memory_default_allocation_small_d;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + F_memory_default_allocation_small_d;
if (length > F_number_t_size_unsigned_d) {
- if (triples->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_triples_resize(length, triples);
+ return private_f_string_triples_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_triples_increase_
#ifndef _di_f_string_triples_increase_by_
- f_status_t f_string_triples_increase_by(const f_number_unsigned_t amount, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_increase_by(const f_number_unsigned_t amount, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (triples->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = triples->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > triples->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_triples_resize(length, triples);
+ return private_f_string_triples_resize(length, structure);
}
}
#endif // _di_f_string_triples_increase_by_
#ifndef _di_f_string_triples_resize_
- f_status_t f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const triples) {
+ f_status_t f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_triples_resize(length, triples);
+ return private_f_string_triples_resize(length, structure);
}
#endif // _di_f_string_triples_resize_
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_triples_adjust_
- extern f_status_t f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const structure);
#endif // _di_f_string_triples_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_triples_decimate_by_
- extern f_status_t f_string_triples_decimate_by(const f_number_unsigned_t amount, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_decimate_by(const f_number_unsigned_t amount, f_string_triples_t * const structure);
#endif // _di_f_string_triples_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_triples_decrease_by_
- extern f_status_t f_string_triples_decrease_by(const f_number_unsigned_t amount, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_decrease_by(const f_number_unsigned_t amount, f_string_triples_t * const structure);
#endif // _di_f_string_triples_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_triples_increase_
- extern f_status_t f_string_triples_increase(const f_number_unsigned_t step, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_increase(const f_number_unsigned_t step, f_string_triples_t * const structure);
#endif // _di_f_string_triples_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_triples_increase_by_
- extern f_status_t f_string_triples_increase_by(const f_number_unsigned_t amount, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_increase_by(const f_number_unsigned_t amount, f_string_triples_t * const structure);
#endif // _di_f_string_triples_increase_by_
/**
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The string triples array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_triples_resize_
- extern f_status_t f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const triples);
+ extern f_status_t f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const structure);
#endif // _di_f_string_triples_resize_
#ifdef __cplusplus
#endif // _di_f_string_tripless_append_all_
#ifndef _di_f_string_tripless_adjust_
- f_status_t f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_tripless_adjust(length, tripless);
+ return private_f_string_tripless_adjust(length, structure);
}
#endif // _di_f_string_tripless_adjust_
#ifndef _di_f_string_tripless_decimate_by_
- f_status_t f_string_tripless_decimate_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_decimate_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_tripless_adjust((tripless->size > amount) ? tripless->size - amount : 0, tripless);
+ return private_f_string_tripless_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_tripless_decimate_by_
#ifndef _di_f_string_tripless_decrease_by_
- f_status_t f_string_tripless_decrease_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_decrease_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- return private_f_string_tripless_resize((tripless->size > amount) ? tripless->size - amount : 0, tripless);
+ return private_f_string_tripless_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_string_tripless_decrease_by_
#ifndef _di_f_string_tripless_increase_
- f_status_t f_string_tripless_increase(const f_number_unsigned_t step, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_increase(const f_number_unsigned_t step, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && tripless->used + 1 > tripless->size) {
- f_number_unsigned_t length = tripless->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (tripless->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_string_tripless_resize(length, tripless);
+ return private_f_string_tripless_resize(length, structure);
}
return F_data_not;
#endif // _di_f_string_tripless_increase_
#ifndef _di_f_string_tripless_increase_by_
- f_status_t f_string_tripless_increase_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_increase_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (tripless->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = tripless->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > tripless->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_string_tripless_resize(length, tripless);
+ return private_f_string_tripless_resize(length, structure);
}
}
#endif // _di_f_string_tripless_increase_by_
#ifndef _di_f_string_tripless_resize_
- f_status_t f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const tripless) {
+ f_status_t f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_string_tripless_resize(length, tripless);
+ return private_f_string_tripless_resize(length, structure);
}
#endif // _di_f_string_tripless_resize_
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_tripless_adjust_
- extern f_status_t f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_tripless_decimate_by_
- extern f_status_t f_string_tripless_decimate_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_decimate_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_tripless_decrease_by_
- extern f_status_t f_string_tripless_decrease_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_decrease_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_tripless_increase_
- extern f_status_t f_string_tripless_increase(const f_number_unsigned_t step, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_increase(const f_number_unsigned_t step, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_tripless_increase_by_
- extern f_status_t f_string_tripless_increase_by(const f_number_unsigned_t amount, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_increase_by(const f_number_unsigned_t amount, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_increase_by_
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The string tripless array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_tripless_resize_
- extern f_status_t f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const tripless);
+ extern f_status_t f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure);
#endif // _di_f_string_tripless_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_utf_string_dynamics_adjust_
- f_status_t f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_dynamics_adjust(length, dynamics);
+ return private_f_utf_string_dynamics_adjust(length, structure);
}
#endif // _di_f_utf_string_dynamics_adjust_
#endif // _di_f_utf_string_dynamics_append_all_
#ifndef _di_f_utf_string_dynamics_decimate_by_
- f_status_t f_utf_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (dynamics->size > amount) {
- return private_f_utf_string_dynamics_adjust(dynamics->size - amount, dynamics);
- }
-
- return private_f_utf_string_dynamics_adjust(0, dynamics);
+ return private_f_utf_string_dynamics_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_dynamics_decimate_by_
#ifndef _di_f_utf_string_dynamics_decrease_by_
- f_status_t f_utf_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (dynamics->size > amount) {
- return private_f_utf_string_dynamics_resize(dynamics->size - amount, dynamics);
- }
-
- return private_f_utf_string_dynamics_resize(0, dynamics);
+ return private_f_utf_string_dynamics_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_dynamics_decrease_by_
#ifndef _di_f_utf_string_dynamics_increase_
- f_status_t f_utf_string_dynamics_increase(const f_number_unsigned_t step, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_increase(const f_number_unsigned_t step, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!step) return F_data_not;
- if (dynamics->used + 1 > dynamics->size) {
- f_number_unsigned_t length = dynamics->used + step;
+ if (structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (dynamics->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_dynamics_resize(length, dynamics);
+ return private_f_utf_string_dynamics_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_dynamics_increase_
#ifndef _di_f_utf_string_dynamics_increase_by_
- f_status_t f_utf_string_dynamics_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (dynamics->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = dynamics->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > dynamics->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_dynamics_resize(length, dynamics);
+ return private_f_utf_string_dynamics_resize(structure->used + amount, structure);
}
}
#endif // _di_f_utf_string_dynamics_increase_by_
#ifndef _di_f_utf_string_dynamics_resize_
- f_status_t f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) {
+ f_status_t f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamics) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_dynamics_resize(length, dynamics);
+ return private_f_utf_string_dynamics_resize(length, structure);
}
#endif // _di_f_utf_string_dynamics_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines dynamic (and static) UTF-8 string data.
+ * Defines dynamic string data.
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_dynamics_h
#define _F_utf_dynamics_h
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*/
#ifndef _di_f_utf_string_dynamics_adjust_
- extern f_status_t f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamics_decimate_by_
- extern f_status_t f_utf_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamics_decrease_by_
- extern f_status_t f_utf_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamics_increase_
- extern f_status_t f_utf_string_dynamics_increase(const f_number_unsigned_t step, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_increase(const f_number_unsigned_t step, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamics_increase_by_
- extern f_status_t f_utf_string_dynamics_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_increase_by_
/**
*
* @param length
* The new size to use.
- * @param dynamics
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamics_resize_
- extern f_status_t f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics);
+ extern f_status_t f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure);
#endif // _di_f_utf_string_dynamics_resize_
#ifdef __cplusplus
#endif
#ifndef _di_f_utf_string_dynamicss_adjust_
- f_status_t f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_dynamicss_adjust(length, dynamicss);
+ return private_f_utf_string_dynamicss_adjust(length, structure);
}
#endif // _di_f_utf_string_dynamicss_adjust_
#endif // _di_f_utf_string_dynamicss_append_all_
#ifndef _di_f_utf_string_dynamicss_decimate_by_
- f_status_t f_utf_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (dynamicss->size > amount) {
- return private_f_utf_string_dynamicss_adjust(dynamicss->size - amount, dynamicss);
- }
-
- return private_f_utf_string_dynamicss_adjust(0, dynamicss);
+ return private_f_utf_string_dynamicss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_dynamicss_decimate_by_
#ifndef _di_f_utf_string_dynamicss_decrease_by_
- f_status_t f_utf_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (dynamicss->size > amount) {
- return private_f_utf_string_dynamicss_resize(dynamicss->size - amount, dynamicss);
- }
-
- return private_f_utf_string_dynamicss_resize(0, dynamicss);
+ return private_f_utf_string_dynamicss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_dynamicss_decrease_by_
#ifndef _di_f_utf_string_dynamicss_increase_
- f_status_t f_utf_string_dynamicss_increase(const f_number_unsigned_t step, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_increase(const f_number_unsigned_t step, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!step) return F_data_not;
- if (dynamicss->used + 1 > dynamicss->size) {
- f_number_unsigned_t length = dynamicss->used + step;
+ if (structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (dynamicss->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_dynamicss_resize(length, dynamicss);
+ return private_f_utf_string_dynamicss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_dynamicss_increase_
#ifndef _di_f_utf_string_dynamicss_increase_by_
- f_status_t f_utf_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (dynamicss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = dynamicss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > dynamicss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_dynamicss_resize(length, dynamicss);
+ return private_f_utf_string_dynamicss_resize(structure->used + amount, structure);
}
}
#endif // _di_f_utf_string_dynamicss_increase_by_
#ifndef _di_f_utf_string_dynamicss_resize_
- f_status_t f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) {
+ f_status_t f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!dynamicss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_dynamicss_resize(length, dynamicss);
+ return private_f_utf_string_dynamicss_resize(length, structure);
}
#endif // _di_f_utf_string_dynamicss_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines dynamic (and static) UTF-8 string data.
+ * Defines dynamic string data.
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_dynamicss_h
#define _F_utf_dynamicss_h
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*/
#ifndef _di_f_utf_string_dynamicss_adjust_
- extern f_status_t f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamicss_decimate_by_
- extern f_status_t f_utf_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_decimate_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamicss_decrease_by_
- extern f_status_t f_utf_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_decrease_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamicss_increase_
- extern f_status_t f_utf_string_dynamicss_increase(const f_number_unsigned_t step, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_increase(const f_number_unsigned_t step, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamicss_increase_by_
- extern f_status_t f_utf_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_increase_by(const f_number_unsigned_t amount, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param dynamicss
+ * @param structure
* The array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamicss_resize_
- extern f_status_t f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss);
+ extern f_status_t f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure);
#endif // _di_f_utf_string_dynamicss_resize_
#ifdef __cplusplus
if (F_status_is_error(status)) return status;
}
- if (private_f_utf_character_is_control(utf)) {
- return F_false;
- }
-
- if (private_f_utf_character_is_whitespace(utf, F_true)) {
- return F_false;
- }
+ if (private_f_utf_character_is_control(utf)) return F_false;
+ if (private_f_utf_character_is_whitespace(utf, F_true)) return F_false;
// Zero-width characters are be treated as a non-graph.
- if (private_f_utf_character_is_zero_width(utf)) {
- return F_false;
- }
+ if (private_f_utf_character_is_zero_width(utf)) return F_false;
return F_true;
}
}
// ASCII: U+0021 '!' to U+0023 '#'.
- if (sequence[0] > 0x20 && sequence[0] < 0x24) {
- return F_true;
- }
+ if (sequence[0] > 0x20 && sequence[0] < 0x24) return F_true;
// ASCII: U+0025 '%' to U+002A '*'.
- if (sequence[0] > 0x24 && sequence[0] < 0x2b) {
- return F_true;
- }
+ if (sequence[0] > 0x24 && sequence[0] < 0x2b) return F_true;
// ASCII: U+002C ',' to U+002F '/'.
- if (sequence[0] > 0x2b && sequence[0] < 0x30) {
- return F_true;
- }
+ if (sequence[0] > 0x2b && sequence[0] < 0x30) return F_true;
// ASCII: U+003A ':', U+003B ';', U+003F '?', or U+0040 '@'.
- if (sequence[0] == 0x3a || sequence[0] == 0x3b || sequence[0] == 0x3f || sequence[0] == 0x40) {
- return F_true;
- }
+ if (sequence[0] == 0x3a || sequence[0] == 0x3b || sequence[0] == 0x3f || sequence[0] == 0x40) return F_true;
// ASCII: U+005B '[' to U+005D ']'.
- if (sequence[0] > 0x5a && sequence[0] < 0x5e) {
- return F_true;
- }
+ if (sequence[0] > 0x5a && sequence[0] < 0x5e) return F_true;
// ASCII: U+005F '_', U+007B '{', or U+007D '}'.
- if (sequence[0] == 0x5f || sequence[0] == 0x7b || sequence[0] == 0x7d) {
- return F_true;
- }
+ if (sequence[0] == 0x5f || sequence[0] == 0x7b || sequence[0] == 0x7d) return F_true;
return F_false;
}
}
// ASCII: U+0024 ('$') or U+002B ('+').
- if (sequence[0] == 0x24 || sequence[0] == 0x2b) {
- return F_true;
- }
+ if (sequence[0] == 0x24 || sequence[0] == 0x2b) return F_true;
// ASCII: U+003C ('<') to U+003E ('>').
- if (sequence[0] >= 0x3c && sequence[0] <= 0x3e) {
- return F_true;
- }
+ if (sequence[0] >= 0x3c && sequence[0] <= 0x3e) return F_true;
// ASCII: U+005E ('^'), U+0060 ('`'), U+007C ('|'), or U+007E ('~').
- if (sequence[0] == 0x5e || sequence[0] == 0x60 || sequence[0] == 0x7c || sequence[0] == 0x7e) {
- return F_true;
- }
+ if (sequence[0] == 0x5e || sequence[0] == 0x60 || sequence[0] == 0x7c || sequence[0] == 0x7e) return F_true;
return F_false;
}
return private_f_utf_character_is_word(utf, strict);
}
- if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0]) {
- return F_true;
- }
+ if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0]) return F_true;
return F_false;
}
return private_f_utf_character_is_word_dash(utf, strict);
}
- if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0] || *sequence == f_string_ascii_minus_s.string[0]) {
- return F_true;
- }
+ if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0] || *sequence == f_string_ascii_minus_s.string[0]) return F_true;
return F_false;
}
return private_f_utf_character_is_word_dash_plus(utf, strict);
}
- if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0] || *sequence == f_string_ascii_minus_s.string[0] || *sequence == f_string_ascii_plus_s.string[0]) {
- return F_true;
- }
+ if (isalnum(*sequence) || *sequence == f_string_ascii_underscore_s.string[0] || *sequence == f_string_ascii_minus_s.string[0] || *sequence == f_string_ascii_plus_s.string[0]) return F_true;
return F_false;
}
f_status_t f_utf_character_is(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_utf_fragment;
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_utf_fragment;
return F_true;
}
f_status_t f_utf_character_is_alphabetic(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_alphabetic(sequence);
}
- if (isalpha(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (isalpha(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_alphabetic_digit(const f_utf_char_t sequence, uint64_t * const value) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_alphabetic_digit(sequence, value);
}
f_status_t f_utf_character_is_alphabetic_numeric(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_alphabetic_numeric(sequence);
}
- if (isalnum(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (isalnum(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
#ifndef _di_f_utf_character_is_ascii_
f_status_t f_utf_character_is_ascii(const f_utf_char_t sequence) {
- if (macro_f_utf_char_t_width_is(sequence)) {
- return F_false;
- }
+ if (macro_f_utf_char_t_width_is(sequence)) return F_false;
return F_true;
}
f_status_t f_utf_character_is_combining(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_combining(sequence);
}
f_status_t f_utf_character_is_control(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_control(sequence);
}
- if (iscntrl(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (iscntrl(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_control_code(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_control_code(sequence);
}
- if (iscntrl(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (iscntrl(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_control_format(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_control_format(sequence);
}
f_status_t f_utf_character_is_control_picture(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_control_picture(sequence);
}
f_status_t f_utf_character_is_digit(const f_utf_char_t sequence, uint64_t * const value) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_digit(sequence, value);
}
f_status_t f_utf_character_is_emoji(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_emoji(sequence);
}
f_status_t f_utf_character_is_graph(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
-
- if (private_f_utf_character_is_control(sequence)) {
- return F_false;
- }
-
- if (private_f_utf_character_is_whitespace(sequence, F_true)) {
- return F_false;
- }
-
- if (private_f_utf_character_is_zero_width(sequence)) {
- return F_false;
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
+ if (private_f_utf_character_is_control(sequence)) return F_false;
+ if (private_f_utf_character_is_whitespace(sequence, F_true)) return F_false;
+ if (private_f_utf_character_is_zero_width(sequence)) return F_false;
return F_true;
}
- if (isgraph(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (isgraph(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_numeric(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_numeric(sequence);
}
- if (isdigit(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (isdigit(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_phonetic(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_phonetic(sequence);
}
f_status_t f_utf_character_is_private(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_private(sequence);
}
f_status_t f_utf_character_is_punctuation(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_punctuation(sequence);
}
// ASCII: U+0021 '!' to U+0023 '#'.
- if (sequence > 0x20000000 && sequence < 0x24000000) {
- return F_true;
- }
+ if (sequence > 0x20000000 && sequence < 0x24000000) return F_true;
// ASCII: U+0025 '%' to U+002A '*'.
- if (sequence > 0x24000000 && sequence < 0x2b000000) {
- return F_true;
- }
+ if (sequence > 0x24000000 && sequence < 0x2b000000) return F_true;
// ASCII: U+002C ',' to U+002F '/'.
- if (sequence > 0x2b000000 && sequence < 0x30000000) {
- return F_true;
- }
+ if (sequence > 0x2b000000 && sequence < 0x30000000) return F_true;
// ASCII: U+003A ':', U+003B ';', U+003F '?', or U+0040 '@'.
- if (sequence == 0x3a000000 || sequence == 0x3b000000 || sequence == 0x3f000000 || sequence == 0x40000000) {
- return F_true;
- }
+ if (sequence == 0x3a000000 || sequence == 0x3b000000 || sequence == 0x3f000000 || sequence == 0x40000000) return F_true;
// ASCII: U+005B '[' to U+005D ']'.
- if (sequence > 0x5a000000 && sequence < 0x5e000000) {
- return F_true;
- }
+ if (sequence > 0x5a000000 && sequence < 0x5e000000) return F_true;
// ASCII: U+005F '_', U+007B '{', or U+007D '}'.
- if (sequence == 0x5f000000 || sequence == 0x7b000000 || sequence == 0x7d000000) {
- return F_true;
- }
+ if (sequence == 0x5f000000 || sequence == 0x7b000000 || sequence == 0x7d000000) return F_true;
return F_false;
}
f_status_t f_utf_character_is_subscript(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_subscript(sequence);
}
f_status_t f_utf_character_is_superscript(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_superscript(sequence);
}
f_status_t f_utf_character_is_symbol(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_symbol(sequence);
}
// ASCII: U+0024 ('$') or U+002B ('+').
- if (sequence == 0x24000000 || sequence == 0x2b000000) {
- return F_true;
- }
+ if (sequence == 0x24000000 || sequence == 0x2b000000) return F_true;
// ASCII: U+003C ('<') to U+003E ('>').
- if (sequence >= 0x3c000000 && sequence <= 0x3e000000) {
- return F_true;
- }
+ if (sequence >= 0x3c000000 && sequence <= 0x3e000000) return F_true;
// ASCII: U+005E ('^'), U+0060 ('`'), U+007C ('|'), or U+007E ('~').
- if (sequence == 0x5e000000 || sequence == 0x60000000 || sequence == 0x7c000000 || sequence == 0x7e000000) {
- return F_true;
- }
+ if (sequence == 0x5e000000 || sequence == 0x60000000 || sequence == 0x7c000000 || sequence == 0x7e000000) return F_true;
return F_false;
}
f_status_t f_utf_character_is_unassigned(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_unassigned(sequence);
}
f_status_t f_utf_character_is_whitespace(const f_utf_char_t sequence, const bool strict) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_whitespace(sequence, strict);
}
- if (isspace(macro_f_utf_char_t_to_char_1(sequence))) {
- return F_true;
- }
+ if (isspace(macro_f_utf_char_t_to_char_1(sequence))) return F_true;
return F_false;
}
f_status_t f_utf_character_is_whitespace_modifier(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_whitespace_modifier(sequence);
}
f_status_t f_utf_character_is_whitespace_other(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_whitespace_other(sequence);
}
f_status_t f_utf_character_is_whitespace_zero_width(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_whitespace_zero_width(sequence);
}
f_status_t f_utf_character_is_wide(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_wide(sequence);
}
f_status_t f_utf_character_is_word(const f_utf_char_t sequence, const bool strict) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_word(sequence, strict);
}
- if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0]) {
- return F_true;
- }
+ if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0]) return F_true;
return F_false;
}
f_status_t f_utf_character_is_word_dash(const f_utf_char_t sequence, const bool strict) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_word_dash(sequence, strict);
}
- if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_minus_s.string[0]) {
- return F_true;
- }
+ if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_minus_s.string[0]) return F_true;
return F_false;
}
f_status_t f_utf_character_is_word_dash_plus(const f_utf_char_t sequence, const bool strict) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
return private_f_utf_character_is_word_dash_plus(sequence, strict);
}
- if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_minus_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_plus_s.string[0]) {
- return F_true;
- }
+ if (isalnum(macro_f_utf_char_t_to_char_1(sequence)) || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_underscore_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_minus_s.string[0] || macro_f_utf_char_t_to_char_1(sequence) == f_string_ascii_plus_s.string[0]) return F_true;
return F_false;
}
f_status_t f_utf_character_is_zero_width(const f_utf_char_t sequence) {
if (macro_f_utf_char_t_width_is(sequence)) {
- if (macro_f_utf_char_t_width_is(sequence) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(sequence) == 1) return F_status_set_error(F_utf_fragment);
// Control and combining characters are zero-width.
if (private_f_utf_character_is_control(sequence)) return F_true;
}
// These control characters are considered zero-width spaces.
- if (macro_f_utf_char_t_to_char_1(sequence) >= 0x00 && macro_f_utf_char_t_to_char_1(sequence) < 0x09) {
- return F_true;
- }
- else if (macro_f_utf_char_t_to_char_1(sequence) > 0x0b && macro_f_utf_char_t_to_char_1(sequence) < 0x20) {
- return F_true;
- }
- else if (macro_f_utf_char_t_to_char_1(sequence) == 0x7f) {
- return F_true;
- }
+ if (macro_f_utf_char_t_to_char_1(sequence) >= 0x00 && macro_f_utf_char_t_to_char_1(sequence) < 0x09) return F_true;
+ if (macro_f_utf_char_t_to_char_1(sequence) > 0x0b && macro_f_utf_char_t_to_char_1(sequence) < 0x20) return F_true;
+ if (macro_f_utf_char_t_to_char_1(sequence) == 0x7f) return F_true;
return F_false;
}
#include "../utf.h"
#include "../private-utf.h"
-#include "private-string.h"
#ifdef __cplusplus
extern "C" {
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines map UTF-8 string data.
+ * Defines map string data.
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_map_h
#define _F_utf_map_h
#include "../utf.h"
#include "../private-utf.h"
-#include "private-string.h"
#ifdef __cplusplus
extern "C" {
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#endif
#ifndef _di_f_utf_string_map_multis_adjust_
- f_status_t f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_map_multis_adjust(length, map_multis);
+ return private_f_utf_string_map_multis_adjust(length, structure);
}
#endif // _di_f_utf_string_map_multis_adjust_
#endif // _di_f_utf_string_map_multis_append_all_
#ifndef _di_f_utf_string_map_multis_decimate_by_
- f_status_t f_utf_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (map_multis->size > amount) {
- return private_f_utf_string_map_multis_adjust(map_multis->size - amount, map_multis);
- }
-
- return private_f_utf_string_map_multis_adjust(0, map_multis);
+ return private_f_utf_string_map_multis_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_map_multis_decimate_by_
#ifndef _di_f_utf_string_map_multis_decrease_by_
- f_status_t f_utf_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (map_multis->size > amount) {
- return private_f_utf_string_map_multis_resize(map_multis->size - amount, map_multis);
- }
-
- return private_f_utf_string_map_multis_resize(0, map_multis);
+ return private_f_utf_string_map_multis_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_map_multis_decrease_by_
#ifndef _di_f_utf_string_map_multis_increase_
- f_status_t f_utf_string_map_multis_increase(const f_number_unsigned_t step, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_increase(const f_number_unsigned_t step, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && map_multis->used + 1 > map_multis->size) {
- f_number_unsigned_t length = map_multis->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (map_multis->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_map_multis_resize(length, map_multis);
+ return private_f_utf_string_map_multis_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_map_multis_increase_
#ifndef _di_f_utf_string_map_multis_increase_by_
- f_status_t f_utf_string_map_multis_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (map_multis->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = map_multis->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > map_multis->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_map_multis_resize(length, map_multis);
+ return private_f_utf_string_map_multis_resize(length, structure);
}
}
#endif // _di_f_utf_string_map_multis_increase_by_
#ifndef _di_f_utf_string_map_multis_resize_
- f_status_t f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis) {
+ f_status_t f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multis) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_map_multis_resize(length, map_multis);
+ return private_f_utf_string_map_multis_resize(length, structure);
}
#endif // _di_f_utf_string_map_multis_resize_
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_adjust_
- extern f_status_t f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_decimate_by_
- extern f_status_t f_utf_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_decrease_by_
- extern f_status_t f_utf_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_increase_
- extern f_status_t f_utf_string_map_multis_increase(const f_number_unsigned_t step, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_increase(const f_number_unsigned_t step, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param map_multis
+ * @param structure
* The map_multis array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_increase_by_
- extern f_status_t f_utf_string_map_multis_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_increase_by_
/**
*
* @param length
* The new size to use.
- * @param map_multis
+ * @param structure
* The map_multis array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multis_resize_
- extern f_status_t f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis);
+ extern f_status_t f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure);
#endif // _di_f_utf_string_map_multis_resize_
#ifdef __cplusplus
#include "../private-utf.h"
#include "private-dynamic.h"
#include "private-dynamics.h"
-#include "private-dynamicss.h"
#include "private-map_multis.h"
#include "private-map_multiss.h"
#include "private-string.h"
#endif
#ifndef _di_f_utf_string_map_multiss_adjust_
- f_status_t f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_map_multiss_adjust(length, map_multiss);
+ return private_f_utf_string_map_multiss_adjust(length, structure);
}
#endif // _di_f_utf_string_map_multiss_adjust_
#endif // _di_f_utf_string_map_multiss_append_all_
#ifndef _di_f_utf_string_map_multiss_decimate_by_
- f_status_t f_utf_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (map_multiss->size > amount) {
- return private_f_utf_string_map_multiss_adjust(map_multiss->size - amount, map_multiss);
- }
-
- return private_f_utf_string_map_multiss_adjust(0, map_multiss);
+ return private_f_utf_string_map_multiss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_map_multiss_decimate_by_
#ifndef _di_f_utf_string_map_multiss_decrease_by_
- f_status_t f_utf_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (map_multiss->size > amount) {
- return private_f_utf_string_map_multiss_resize(map_multiss->size - amount, map_multiss);
- }
-
- return private_f_utf_string_map_multiss_resize(0, map_multiss);
+ return private_f_utf_string_map_multiss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_map_multiss_decrease_by_
#ifndef _di_f_utf_string_map_multiss_increase_
- f_status_t f_utf_string_map_multiss_increase(const f_number_unsigned_t step, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_increase(const f_number_unsigned_t step, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && map_multiss->used + 1 > map_multiss->size) {
- f_number_unsigned_t length = map_multiss->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (map_multiss->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_map_multiss_resize(length, map_multiss);
+ return private_f_utf_string_map_multiss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_map_multiss_increase_
#ifndef _di_f_utf_string_map_multiss_increase_by_
- f_status_t f_utf_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (map_multiss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = map_multiss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > map_multiss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_map_multiss_resize(length, map_multiss);
+ return private_f_utf_string_map_multiss_resize(length, structure);
}
}
#endif // _di_f_utf_string_map_multiss_increase_by_
#ifndef _di_f_utf_string_map_multiss_resize_
- f_status_t f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) {
+ f_status_t f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!map_multiss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_map_multiss_resize(length, map_multiss);
+ return private_f_utf_string_map_multiss_resize(length, structure);
}
#endif // _di_f_utf_string_map_multiss_resize_
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#endif
/**
- * An array of string maps.
+ * An array of string maps arrays.
*
* Properties:
* - array: The array of an array of string maps.
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_adjust_
- extern f_status_t f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_decimate_by_
- extern f_status_t f_utf_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_decimate_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_decrease_by_
- extern f_status_t f_utf_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_decrease_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_increase_
- extern f_status_t f_utf_string_map_multiss_increase(const f_number_unsigned_t step, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_increase(const f_number_unsigned_t step, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param map_multiss
+ * @param structure
* The map_multiss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_increase_by_
- extern f_status_t f_utf_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_increase_by(const f_number_unsigned_t amount, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_map_multiss_resize_
- extern f_status_t f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss);
+ extern f_status_t f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure);
#endif // _di_f_utf_string_map_multiss_resize_
#ifdef __cplusplus
#include "../utf.h"
#include "../private-utf.h"
-#include "private-string.h"
#include "private-maps.h"
+#include "private-string.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _di_f_utf_string_maps_adjust_
- f_status_t f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_maps_adjust(length, maps);
+ return private_f_utf_string_maps_adjust(length, structure);
}
#endif // _di_f_utf_string_maps_adjust_
#endif // _di_f_utf_string_maps_append_all_
#ifndef _di_f_utf_string_maps_decimate_by_
- f_status_t f_utf_string_maps_decimate_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_decimate_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (maps->size > amount) {
- return private_f_utf_string_maps_adjust(maps->size - amount, maps);
- }
-
- return private_f_utf_string_maps_adjust(0, maps);
+ return private_f_utf_string_maps_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_maps_decimate_by_
#ifndef _di_f_utf_string_maps_decrease_by_
- f_status_t f_utf_string_maps_decrease_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_decrease_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (maps->size > amount) {
- return private_f_utf_string_maps_resize(maps->size - amount, maps);
- }
-
- return private_f_utf_string_maps_resize(0, maps);
+ return private_f_utf_string_maps_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_maps_decrease_by_
#ifndef _di_f_utf_string_maps_increase_
- f_status_t f_utf_string_maps_increase(const f_number_unsigned_t step, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_increase(const f_number_unsigned_t step, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && maps->used + 1 > maps->size) {
- f_number_unsigned_t length = maps->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (maps->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_maps_resize(length, maps);
+ return private_f_utf_string_maps_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_maps_increase_
#ifndef _di_f_utf_string_maps_increase_by_
- f_status_t f_utf_string_maps_increase_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_increase_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (maps->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = maps->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > maps->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_maps_resize(length, maps);
+ return private_f_utf_string_maps_resize(length, structure);
}
}
#endif // _di_f_utf_string_maps_increase_by_
#ifndef _di_f_utf_string_maps_resize_
- f_status_t f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) {
+ f_status_t f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!maps) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_maps_resize(length, maps);
+ return private_f_utf_string_maps_resize(length, structure);
}
#endif // _di_f_utf_string_maps_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines map UTF-8 string data.
+ * Defines map string data.
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_maps_h
#define _F_utf_maps_h
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_adjust_
- extern f_status_t f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_decimate_by_
- extern f_status_t f_utf_string_maps_decimate_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_decimate_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_decrease_by_
- extern f_status_t f_utf_string_maps_decrease_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_decrease_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_increase_
- extern f_status_t f_utf_string_maps_increase(const f_number_unsigned_t step, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_increase(const f_number_unsigned_t step, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param maps
+ * @param structure
* The string maps array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_increase_by_
- extern f_status_t f_utf_string_maps_increase_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_increase_by(const f_number_unsigned_t amount, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_increase_by_
/**
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The string maps array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_maps_resize_
- extern f_status_t f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const maps);
+ extern f_status_t f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const structure);
#endif // _di_f_utf_string_maps_resize_
#ifdef __cplusplus
#include "../utf.h"
#include "../private-utf.h"
-#include "private-string.h"
#include "private-maps.h"
#include "private-mapss.h"
+#include "private-string.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _di_f_utf_string_mapss_adjust_
- f_status_t f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_mapss_adjust(length, mapss);
+ return private_f_utf_string_mapss_adjust(length, structure);
}
#endif // _di_f_utf_string_mapss_adjust_
#endif // _di_f_utf_string_mapss_append_all_
#ifndef _di_f_utf_string_mapss_decimate_by_
- f_status_t f_utf_string_mapss_decimate_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_decimate_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (mapss->size > amount) {
- return private_f_utf_string_mapss_adjust(mapss->size - amount, mapss);
- }
-
- return private_f_utf_string_mapss_adjust(0, mapss);
+ return private_f_utf_string_mapss_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_mapss_decimate_by_
#ifndef _di_f_utf_string_mapss_decrease_by_
- f_status_t f_utf_string_mapss_decrease_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_decrease_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (mapss->size > amount) {
- return private_f_utf_string_mapss_resize(mapss->size - amount, mapss);
- }
-
- return private_f_utf_string_mapss_resize(0, mapss);
+ return private_f_utf_string_mapss_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_mapss_decrease_by_
#ifndef _di_f_utf_string_mapss_increase_
- f_status_t f_utf_string_mapss_increase(const f_number_unsigned_t step, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_increase(const f_number_unsigned_t step, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && mapss->used + 1 > mapss->size) {
- f_number_unsigned_t length = mapss->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (mapss->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_mapss_resize(length, mapss);
+ return private_f_utf_string_mapss_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_mapss_increase_
#ifndef _di_f_utf_string_mapss_increase_by_
- f_status_t f_utf_string_mapss_increase_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_increase_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (mapss->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = mapss->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > mapss->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_mapss_resize(length, mapss);
+ return private_f_utf_string_mapss_resize(length, structure);
}
}
#endif // _di_f_utf_string_mapss_increase_by_
#ifndef _di_f_utf_string_mapss_resize_
- f_status_t f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) {
+ f_status_t f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!mapss) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_mapss_resize(length, mapss);
+ return private_f_utf_string_mapss_resize(length, structure);
}
#endif // _di_f_utf_string_mapss_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines map UTF-8 string data.
+ * Defines map string data.
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_mapss_h
#define _F_utf_mapss_h
*
* @param length
* The new size to use.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_adjust_
- extern f_status_t f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_decimate_by_
- extern f_status_t f_utf_string_mapss_decimate_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_decimate_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_decrease_by_
- extern f_status_t f_utf_string_mapss_decrease_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_decrease_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_increase_
- extern f_status_t f_utf_string_mapss_increase(const f_number_unsigned_t step, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_increase(const f_number_unsigned_t step, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param mapss
+ * @param structure
* The string mapss array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_increase_by_
- extern f_status_t f_utf_string_mapss_increase_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_increase_by(const f_number_unsigned_t amount, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_increase_by_
/**
*
* @param length
* The new size to use.
- * @param mapss
+ * @param structure
* The string mapss array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_mapss_resize_
- extern f_status_t f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss);
+ extern f_status_t f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure);
#endif // _di_f_utf_string_mapss_resize_
#ifdef __cplusplus
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#endif
#if !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
- f_status_t private_f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) {
-
- if (dynamics->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamics->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_adjust(0, &dynamics->array[i]);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(dynamics->size, length, sizeof(f_utf_string_dynamic_t), (void **) & dynamics->array);
- if (F_status_is_error(status)) return status;
-
- dynamics->size = length;
-
- if (dynamics->used > dynamics->size) {
- dynamics->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_dynamic_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
}
#endif // !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_)
-
#if !defined(_di_f_utf_string_dynamics_append_all_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_)
f_status_t private_f_utf_string_dynamics_append_all(const f_utf_string_dynamics_t source, f_utf_string_dynamics_t * const destination) {
}
#endif // !defined(_di_f_utf_string_dynamics_append_all_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_)
-#if !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_terminate_) || !defined(_di_f_utf_string_map_multis_terminate_after_)
- f_status_t private_f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) {
-
- if (dynamics->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+#if !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(f_utf_string_dynamics_resize) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
+ f_status_t private_f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamics->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_resize(0, &dynamics->array[i]);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_t), (void **) &structure->array[i].string, &structure->array[i].used, &structure->array[i].size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(dynamics->size, length, sizeof(f_utf_string_dynamic_t), (void **) & dynamics->array);
- if (F_status_is_error(status)) return status;
-
- dynamics->size = length;
-
- if (dynamics->used > dynamics->size) {
- dynamics->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_dynamic_t), (void **) &structure->array, &structure->used, &structure->size);
}
-#endif // !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_terminate_) || !defined(_di_f_utf_string_map_multis_terminate_after_)
+#endif // !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(f_utf_string_dynamics_resize) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
#ifdef __cplusplus
} // extern "C"
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param dynamics
- * The strings to adjust.
+ * @param structure
+ * The dynamics to adjust.
*
* @return
* F_none on success.
* @see f_utf_string_map_multis_append()
*/
#if !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
- extern f_status_t private_f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
/**
* @param source
* The source string to append.
* @param destination
- * The destination strings the source is appended onto.
+ * The destination dynamics the source is appended onto.
*
* @return
* F_none on success.
* @param source
* The source strings to append.
* @param destination
- * The destination strings the source is appended onto.
+ * The destination dynamics the source is appended onto.
*
* @return
* F_none on success.
*
* @param length
* The new size to use.
- * @param dynamics
- * The strings to resize.
+ * @param structure
+ * The dynamics to resize.
*
* @return
* F_none on success.
* @see f_utf_string_dynamics_decrease_by()
* @see f_utf_string_dynamics_increase()
* @see f_utf_string_dynamics_increase_by()
+ * @see f_utf_string_dynamics_resize()
* @see f_utf_string_map_multis_append()
* @see f_utf_string_map_multis_append_all()
* @see f_utf_string_map_multis_decrease_by()
* @see f_utf_string_map_multiss_increase()
* @see f_utf_string_map_multiss_increase_by()
*/
-#if !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
- extern f_status_t private_f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const dynamics) F_attribute_visibility_internal_d;
-#endif // !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
+#if !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(f_utf_string_dynamics_resize) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
+ extern f_status_t private_f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) F_attribute_visibility_internal_d;
+#endif // !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(f_utf_string_dynamics_resize) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
#ifdef __cplusplus
} // extern "C"
#endif
#if !defined(_di_f_utf_string_dynamicss_adjust_) || !defined(_di_f_utf_string_dynamicss_append_) || !defined(_di_f_utf_string_dynamicss_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
- f_status_t private_f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) {
-
- if (dynamicss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamicss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamics_adjust(0, &dynamicss->array[i]);
+ status = private_f_utf_string_dynamics_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(dynamicss->size, length, sizeof(f_utf_string_dynamics_t), (void **) & dynamicss->array);
- if (F_status_is_error(status)) return status;
-
- dynamicss->size = length;
-
- if (dynamicss->used > dynamicss->size) {
- dynamicss->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_dynamics_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_dynamicss_adjust_) || !defined(_di_f_utf_string_dynamicss_append_) || !defined(_di_f_utf_string_dynamicss_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
#if !defined(_di_f_utf_string_dynamicss_decrease_by_) || !defined(_di_f_utf_string_dynamicss_increase_) || !defined(_di_f_utf_string_dynamicss_increase_by_) || !defined(_di_f_utf_string_dynamicss_append_all_) || !defined(_di_f_utf_string_map_multis_append_all_)
- f_status_t private_f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) {
-
- if (dynamicss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < dynamicss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamics_resize(0, &dynamicss->array[i]);
+ status = private_f_utf_string_dynamics_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(dynamicss->size, length, sizeof(f_utf_string_dynamics_t), (void **) & dynamicss->array);
- if (F_status_is_error(status)) return status;
-
- dynamicss->size = length;
-
- if (dynamicss->used > dynamicss->size) {
- dynamicss->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_dynamics_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_dynamicss_decrease_by_) || !defined(_di_f_utf_string_dynamicss_increase_) || !defined(_di_f_utf_string_dynamicss_increase_by_) || !defined(_di_f_utf_string_dynamicss_append_all_) || !defined(_di_f_utf_string_map_multis_append_all_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param dynamicss
- * The strings to adjust.
+ * @param structure
+ * The dynamicss to adjust.
*
* @return
* F_none on success.
* Errors (with error bit) from: f_memory_adjust().
*
* @see f_memory_adjust()
+ *
* @see f_utf_string_dynamicss_adjust()
* @see f_utf_string_dynamicss_append()
* @see f_utf_string_dynamicss_decimate_by()
* @see f_utf_string_map_multis_append()
*/
#if !defined(_di_f_utf_string_dynamicss_adjust_) || !defined(_di_f_utf_string_dynamicss_append_) || !defined(_di_f_utf_string_dynamicss_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
- extern f_status_t private_f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_dynamicss_adjust_) || !defined(_di_f_utf_string_dynamicss_append_) || !defined(_di_f_utf_string_dynamicss_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_)
/**
*
* @param length
* The new size to use.
- * @param dynamicss
- * The strings to resize.
+ * @param structure
+ * The dynamicss to resize.
*
* @return
* F_none on success.
* Errors (with error bit) from: f_memory_resize().
*
* @see f_memory_resize()
+ *
* @see f_utf_string_dynamicss_append_all()
* @see f_utf_string_dynamicss_decrease_by()
* @see f_utf_string_dynamicss_increase()
* @see f_utf_string_map_multis_append_all()
*/
#if !defined(_di_f_utf_string_dynamicss_decrease_by_) || !defined(_di_f_utf_string_dynamicss_increase_) || !defined(_di_f_utf_string_dynamicss_increase_by_) || !defined(_di_f_utf_string_dynamicss_append_all_) || !defined(_di_f_utf_string_map_multis_append_all_)
- extern f_status_t private_f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const dynamicss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_dynamicss_decrease_by_) || !defined(_di_f_utf_string_dynamicss_increase_) || !defined(_di_f_utf_string_dynamicss_increase_by_) || !defined(_di_f_utf_string_dynamicss_append_all_) || !defined(_di_f_utf_string_map_multis_append_all_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_decimate_by_)
- f_status_t private_f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis) {
-
- if (map_multis->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multis->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_adjust(0, &map_multis->array[i].name);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamics_adjust(0, &map_multis->array[i].value);
+ status = private_f_utf_string_dynamics_adjust(0, &structure->array[i].value);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(map_multis->size, length, sizeof(f_utf_string_map_multi_t), (void **) & map_multis->array);
- if (F_status_is_error(status)) return status;
-
- map_multis->size = length;
-
- if (map_multis->used > map_multis->size) {
- map_multis->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_map_multi_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_decimate_by_)
#endif // !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_)
#if !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
- f_status_t private_f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const map_multis) {
-
- if (map_multis->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multis->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_resize(0, &map_multis->array[i].name);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamics_resize(0, &map_multis->array[i].value);
+ status = private_f_utf_string_dynamics_resize(0, &structure->array[i].value);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(map_multis->size, length, sizeof(f_utf_string_map_multi_t), (void **) & map_multis->array);
- if (F_status_is_error(status)) return status;
-
- map_multis->size = length;
-
- if (map_multis->used > map_multis->size) {
- map_multis->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_map_multi_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
* These are provided for internal reduction in redundant code.
* These should not be exposed/used outside of this project.
*/
-#ifndef _PRIVATE_F_map_multis_h
-#define _PRIVATE_F_map_multis_h
+#ifndef _PRIVATE_F_utf_map_multis_h
+#define _PRIVATE_F_utf_map_multis_h
#ifdef __cplusplus
extern "C" {
* Intended to be shared to each of the different implementation variations.
*
* @param source
- * The source map_multis to append.
+ * The source destination to append.
* @param destination
* The destination map_multis the source is appended onto.
*
} // extern "C"
#endif
-#endif // _PRIVATE_F_map_multis_h
+#endif // _PRIVATE_F_utf_map_multis_h
#include "../utf.h"
#include "../private-utf.h"
#include "private-dynamic.h"
+#include "private-dynamics.h"
#include "private-map_multis.h"
#include "private-map_multiss.h"
#include "private-string.h"
#endif
#if !defined(_di_f_utf_string_map_multiss_adjust_) || !defined(_di_f_utf_string_map_multiss_decimate_by_)
- f_status_t private_f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) {
-
- if (map_multiss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multiss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_map_multis_adjust(0, &map_multiss->array[i]);
+ status = private_f_utf_string_map_multis_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(map_multiss->size, length, sizeof(f_utf_string_map_multis_t), (void **) & map_multiss->array);
- if (F_status_is_error(status)) return status;
-
- map_multiss->size = length;
-
- if (map_multiss->used > map_multiss->size) {
- map_multiss->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_map_multis_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_map_multiss_adjust_) || !defined(_di_f_utf_string_map_multiss_decimate_by_)
#if !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
- f_status_t private_f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) {
-
- if (map_multiss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < map_multiss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_map_multis_resize(0, &map_multiss->array[i]);
+ status = private_f_utf_string_map_multis_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(map_multiss->size, length, sizeof(f_utf_string_map_multis_t), (void **) & map_multiss->array);
- if (F_status_is_error(status)) return status;
-
- map_multiss->size = length;
-
- if (map_multiss->used > map_multiss->size) {
- map_multiss->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_map_multis_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
* These are provided for internal reduction in redundant code.
* These should not be exposed/used outside of this project.
*/
-#ifndef _PRIVATE_F_map_multiss_h
-#define _PRIVATE_F_map_multiss_h
+#ifndef _PRIVATE_F_utf_map_multiss_h
+#define _PRIVATE_F_utf_map_multiss_h
#ifdef __cplusplus
extern "C" {
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss to adjust.
*
* @return
* @see f_utf_string_map_multiss_adjust()
*/
#if !defined(_di_f_utf_string_map_multiss_adjust_) || !defined(_di_f_utf_string_map_multiss_decimate_by_)
- extern f_status_t private_f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_map_multiss_adjust_) || !defined(_di_f_utf_string_map_multiss_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param map_multiss
+ * @param structure
* The map_multiss to resize.
*
* @return
* @see f_utf_string_map_multiss_increase_by()
*/
#if !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
- extern f_status_t private_f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_)
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _PRIVATE_F_map_multiss_h
+#endif // _PRIVATE_F_utf_map_multiss_h
#endif
#if !defined(_di_f_utf_string_maps_adjust_) || !defined(_di_f_utf_string_maps_decimate_by_)
- f_status_t private_f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) {
-
- if (maps->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < maps->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_adjust(0, &maps->array[i].name);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_adjust(0, &maps->array[i].value);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_t), (void **) &structure->array[i].value.string, &structure->array[i].value.used, &structure->array[i].value.size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(maps->size, length, sizeof(f_utf_string_map_t), (void **) & maps->array);
- if (F_status_is_error(status)) return status;
-
- maps->size = length;
-
- if (maps->used > maps->size) {
- maps->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_map_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_maps_adjust_) || !defined(_di_f_utf_string_maps_decimate_by_)
#endif // !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_)
#if !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_maps_decrease_by_) || !defined(_di_f_utf_string_maps_increase_) || !defined(_di_f_utf_string_maps_increase_by_) || !defined(_di_f_utf_string_maps_resize_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) || !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
- f_status_t private_f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) {
-
- if (maps->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < maps->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_resize(0, &maps->array[i].name);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_t), (void **) &structure->array[i].name.string, &structure->array[i].name.used, &structure->array[i].name.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_resize(0, &maps->array[i].value);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_t), (void **) &structure->array[i].value.string, &structure->array[i].value.used, &structure->array[i].value.size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(maps->size, length, sizeof(f_utf_string_map_t), (void **) & maps->array);
- if (F_status_is_error(status)) return status;
-
- maps->size = length;
-
- if (maps->used > maps->size) {
- maps->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_map_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_maps_decrease_by_) || !defined(_di_f_utf_string_maps_increase_) || !defined(_di_f_utf_string_maps_increase_by_) || !defined(_di_f_utf_string_maps_resize_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) || !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The maps to adjust.
*
* @return
* @see f_utf_string_maps_adjust()
*/
#if !defined(_di_f_utf_string_maps_adjust_) || !defined(_di_f_utf_string_maps_decimate_by_)
- extern f_status_t private_f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_maps_adjust_) || !defined(_di_f_utf_string_maps_decimate_by_)
/**
* Intended to be shared to each of the different implementation variations.
*
* @param source
- * The source maps to append.
+ * The source destination to append.
* @param destination
* The destination maps the source is appended onto.
*
*
* @param length
* The new size to use.
- * @param maps
+ * @param structure
* The maps to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*
* @see f_memory_resize()
- *
* @see f_utf_string_maps_append()
* @see f_utf_string_maps_append_all()
* @see f_utf_string_maps_decrease_by()
* @see f_utf_string_mapss_increase_by()
*/
#if !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_maps_decrease_by_) || !defined(_di_f_utf_string_maps_increase_) || !defined(_di_f_utf_string_maps_increase_by_) || !defined(_di_f_utf_string_maps_resize_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) || !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
- extern f_status_t private_f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const maps) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_maps_decrease_by_) || !defined(_di_f_utf_string_maps_increase_) || !defined(_di_f_utf_string_maps_increase_by_) || !defined(_di_f_utf_string_maps_resize_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) || !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_utf_string_mapss_adjust_) || !defined(_di_f_utf_string_mapss_decimate_by_)
- f_status_t private_f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) {
-
- if (mapss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < mapss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_maps_adjust(0, &mapss->array[i]);
+ status = private_f_utf_string_maps_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(mapss->size, length, sizeof(f_utf_string_maps_t), (void **) & mapss->array);
- if (F_status_is_error(status)) return status;
-
- mapss->size = length;
-
- if (mapss->used > mapss->size) {
- mapss->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_maps_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_mapss_adjust_) || !defined(_di_f_utf_string_mapss_decimate_by_)
#if !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
- f_status_t private_f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) {
-
- if (mapss->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < mapss->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_maps_resize(0, &mapss->array[i]);
+ status = private_f_utf_string_maps_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(mapss->size, length, sizeof(f_utf_string_maps_t), (void **) & mapss->array);
- if (F_status_is_error(status)) return status;
-
- mapss->size = length;
-
- if (mapss->used > mapss->size) {
- mapss->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_maps_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param mapss
- * The mapss to adjust.
+ * @param structure
+ * The structure to adjust.
*
* @return
* F_none on success.
* @see f_utf_string_mapss_adjust()
*/
#if !defined(_di_f_utf_string_mapss_adjust_) || !defined(_di_f_utf_string_mapss_decimate_by_)
- extern f_status_t private_f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_mapss_adjust_) || !defined(_di_f_utf_string_mapss_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param mapss
- * The mapss to resize.
+ * @param structure
+ * The structure to resize.
*
* @return
* F_none on success.
* @see f_utf_string_mapss_increase_by()
*/
#if !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
- extern f_status_t private_f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const mapss) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_)
- f_status_t private_f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) {
-
- if (triples->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < triples->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].a);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].a.string, &structure->array[i].a.used, &structure->array[i].a.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].b);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].b.string, &structure->array[i].b.used, &structure->array[i].b.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].c);
+ status = f_memory_array_adjust(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].c.string, &structure->array[i].c.used, &structure->array[i].c.size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(triples->size, length, sizeof(f_utf_string_triple_t), (void **) & triples->array);
- if (F_status_is_error(status)) return status;
-
- triples->size = length;
-
- if (triples->used > triples->size) {
- triples->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_triple_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_)
#endif // !defined(_di_f_utf_string_triples_append_all_) || !defined(_di_f_utf_string_tripless_append_) || !defined(_di_f_utf_string_tripless_append_all_)
#if !defined(_di_f_utf_string_triples_decrease_by_) || !defined(_di_f_utf_string_triples_increase_) || !defined(_di_f_utf_string_triples_increase_by_)
- f_status_t private_f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) {
-
- if (triples->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < triples->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].a);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].a.string, &structure->array[i].a.used, &structure->array[i].a.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].b);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].b.string, &structure->array[i].b.used, &structure->array[i].b.size);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].c);
+ status = f_memory_array_resize(0, sizeof(f_utf_string_triple_t), (void **) &structure->array[i].c.string, &structure->array[i].c.used, &structure->array[i].c.size);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(triples->size, length, sizeof(f_utf_string_triple_t), (void **) & triples->array);
- if (F_status_is_error(status)) return status;
-
- triples->size = length;
-
- if (triples->used > triples->size) {
- triples->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_triple_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_triples_decrease_by_) || !defined(_di_f_utf_string_triples_increase_) || !defined(_di_f_utf_string_triples_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
* These are provided for internal reduction in redundant code.
* These should not be exposed/used outside of this project.
*/
-#ifndef _PRIVATE_F_utf_triples_h
-#define _PRIVATE_F_utf_triples_h
+#ifndef _PRIVATE_F_utf_triple_h
+#define _PRIVATE_F_utf_triple_h
#ifdef __cplusplus
extern "C" {
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The triples to adjust.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*
* @see f_memory_adjust()
- *
* @see f_utf_string_triples_adjust()
*/
#if !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_)
- extern f_status_t private_f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_)
/**
* Intended to be shared to each of the different implementation variations.
*
* @param source
- * The source triples to append.
+ * The source destination to append.
* @param destination
* The destination triples the source is appended onto.
*
* Errors (with error bit) from: f_memory_resize().
*
* @see f_memory_resize()
- *
* @see f_utf_string_triples_append_all()
* @see f_utf_string_tripless_append()
* @see f_utf_string_tripless_append_all()
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The triples to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*
* @see f_memory_resize()
- *
* @see f_utf_string_triples_decrease_by()
* @see f_utf_string_triples_increase()
* @see f_utf_string_triples_increase_by()
*/
#if !defined(_di_f_utf_string_triples_decrease_by_) || !defined(_di_f_utf_string_triples_increase_) || !defined(_di_f_utf_string_triples_increase_by_)
- extern f_status_t private_f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_triples_decrease_by_) || !defined(_di_f_utf_string_triples_increase_) || !defined(_di_f_utf_string_triples_increase_by_)
+/**
+ * Private implementation for resizing.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length
+ * The new size to use.
+ * @param structure
+ * The tripless to adjust.
+ *
+ * @return
+ * F_none on success.
+ *
+ * F_array_too_large (with error bit) if the combined array is too large.
+ *
+ * Errors (with error bit) from: f_memory_adjust().
+ *
+ * @see f_memory_adjust()
+ * @see f_utf_string_tripless_adjust()
+ */
+#if !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
+ extern f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) F_attribute_visibility_internal_d;
+#endif // !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
+
+/**
+ * Private implementation for resizing.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length
+ * The new size to use.
+ * @param structure
+ * The tripless to resize.
+ *
+ * @return
+ * F_none on success.
+ *
+ * F_array_too_large (with error bit) if the combined array is too large.
+ *
+ * Errors (with error bit) from: f_memory_resize().
+ *
+ * @see f_memory_resize()
+ * @see f_utf_string_tripless_decrease_by()
+ * @see f_utf_string_tripless_increase()
+ * @see f_utf_string_tripless_increase_by()
+ */
+#if !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
+ extern f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) F_attribute_visibility_internal_d;
+#endif // !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
+
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _PRIVATE_F_utf_triples_h
+#endif // _PRIVATE_F_utf_triple_h
#endif
#if !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
- f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) {
-
- if (tripless->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < tripless->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_triples_adjust(0, &tripless->array[i]);
+ status = private_f_utf_string_triples_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(tripless->size, length, sizeof(f_utf_string_triples_t), (void **) & tripless->array);
- if (F_status_is_error(status)) return status;
-
- tripless->size = length;
-
- if (tripless->used > tripless->size) {
- tripless->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_utf_string_triples_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
#if !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
- f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) {
-
- if (tripless->used + length > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < tripless->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_utf_string_triples_resize(0, &tripless->array[i]);
+ status = private_f_utf_string_triples_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_resize(tripless->size, length, sizeof(f_utf_string_triples_t), (void **) & tripless->array);
- if (F_status_is_error(status)) return status;
-
- tripless->size = length;
-
- if (tripless->used > tripless->size) {
- tripless->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_utf_string_triples_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to adjust.
*
* @return
* Errors (with error bit) from: f_memory_adjust().
*
* @see f_memory_adjust()
- *
* @see f_utf_string_tripless_adjust()
*/
#if !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
- extern f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_)
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The tripless to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*
* @see f_memory_resize()
- *
* @see f_utf_string_tripless_decrease_by()
* @see f_utf_string_tripless_increase()
* @see f_utf_string_tripless_increase_by()
*/
#if !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
- extern f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_)
#ifdef __cplusplus
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
/**
* FLL - Level 0
*
- * Project: String
+ * Project: UTF
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (destination->used < length) {
- return private_f_utf_string_append(source, length, destination);
- }
+ if (destination->used < length) return private_f_utf_string_append(source, length, destination);
f_number_unsigned_t i = 1;
f_number_unsigned_t j = 1;
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (!destination->used) {
- return private_f_utf_string_append_nulless(source, length, destination);
- }
+ if (!destination->used) return private_f_utf_string_append_nulless(source, length, destination);
f_number_unsigned_t i = 1;
f_number_unsigned_t j = 1;
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (!length) {
- return F_data_not;
- }
+ if (!length) return F_data_not;
if (glue_length && destination->used) {
f_status_t status = private_f_utf_string_append(glue, glue_length, destination);
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (destination->used < length) {
- return private_f_utf_string_prepend(source, length, destination);
- }
+ if (destination->used < length) return private_f_utf_string_prepend(source, length, destination);
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (!destination->used) {
- return private_f_utf_string_prepend_nulless(source, length, destination);
- }
+ if (!destination->used) return private_f_utf_string_prepend_nulless(source, length, destination);
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != f_utf_char_t_eol_s) {
- if (macro_f_utf_char_t_width_is(string[range->start]) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(string[range->start]) == 1) return F_status_set_error(F_utf_fragment);
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != seek_to) {
- if (string[range->start] == f_utf_char_t_eol_s) {
- return F_none_eol;
- }
+ if (string[range->start] == f_utf_char_t_eol_s) return F_none_eol;
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != seek_to) {
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (destination->used < length) {
- return private_f_utf_string_append(source, length, destination);
- }
+ if (destination->used < length) return private_f_utf_string_append(source, length, destination);
f_number_unsigned_t i = 1;
f_number_unsigned_t j = 1;
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (!destination->used) {
- return private_f_utf_string_append_nulless(source, length, destination);
- }
+ if (!destination->used) return private_f_utf_string_append_nulless(source, length, destination);
f_number_unsigned_t i = 1;
f_number_unsigned_t j = 1;
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (!length) {
- return F_data_not;
- }
+ if (!length) return F_data_not;
if (glue_length && destination->used) {
f_status_t status = private_f_utf_string_append(glue, glue_length, destination);
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (destination->used < length) {
- return private_f_utf_string_prepend(source, length, destination);
- }
+ if (destination->used < length) return private_f_utf_string_prepend(source, length, destination);
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
#endif // _di_level_0_parameter_checking_
if (!length) return F_data_not;
-
- if (!destination->used) {
- return private_f_utf_string_prepend_nulless(source, length, destination);
- }
+ if (!destination->used) return private_f_utf_string_prepend_nulless(source, length, destination);
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != f_utf_char_t_eol_s) {
- if (macro_f_utf_char_t_width_is(string[range->start]) == 1) {
- return F_status_set_error(F_utf_fragment);
- }
+ if (macro_f_utf_char_t_width_is(string[range->start]) == 1) return F_status_set_error(F_utf_fragment);
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != seek_to) {
- if (string[range->start] == f_utf_char_t_eol_s) {
- return F_none_eol;
- }
+ if (string[range->start] == f_utf_char_t_eol_s) return F_none_eol;
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (range->start > range->stop) {
- return F_data_not_stop;
- }
+ if (range->start > range->stop) return F_data_not_stop;
while (string[range->start] != seek_to) {
++range->start;
- if (range->start > range->stop) {
- return F_none_stop;
- }
+ if (range->start > range->stop) return F_none_stop;
} // while
return F_none;
#include "../utf.h"
#include "../private-utf.h"
-#include "private-string.h"
#ifdef __cplusplus
extern "C" {
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines 3-tuple of UTF-8 string data called a triple (which is an ordered list of 3 strings).
+ * Defines 3-tuple of string data called a triple (which is an ordered list of 3 strings).
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_triple_h
#define _F_utf_triple_h
#endif
#ifndef _di_f_utf_string_triples_adjust_
- f_status_t f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_triples_adjust(length, triples);
+ return private_f_utf_string_triples_adjust(length, structure);
}
#endif // _di_f_utf_string_triples_adjust_
#endif // _di_f_utf_string_triples_append_all_
#ifndef _di_f_utf_string_triples_decimate_by_
- f_status_t f_utf_string_triples_decimate_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_decimate_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (triples->size > amount) {
- return private_f_utf_string_triples_adjust(triples->size - amount, triples);
- }
+ if (!amount) return F_data_not;
- return private_f_utf_string_triples_adjust(0, triples);
+ return private_f_utf_string_triples_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_triples_decimate_by_
#ifndef _di_f_utf_string_triples_decrease_by_
- f_status_t f_utf_string_triples_decrease_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_decrease_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (triples->size > amount) {
- return private_f_utf_string_triples_resize(triples->size - amount, triples);
- }
-
- return private_f_utf_string_triples_resize(0, triples);
+ return private_f_utf_string_triples_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_triples_decrease_by_
#ifndef _di_f_utf_string_triples_increase_
- f_status_t f_utf_string_triples_increase(const f_number_unsigned_t step, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_increase(const f_number_unsigned_t step, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && triples->used + 1 > triples->size) {
- f_number_unsigned_t length = triples->used + F_memory_default_allocation_small_d;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + F_memory_default_allocation_small_d;
if (length > F_number_t_size_unsigned_d) {
- if (triples->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_triples_resize(length, triples);
+ return private_f_utf_string_triples_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_triples_increase_
#ifndef _di_f_utf_string_triples_increase_by_
- f_status_t f_utf_string_triples_increase_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_increase_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (triples->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = triples->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > triples->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_triples_resize(length, triples);
+ return private_f_utf_string_triples_resize(length, structure);
}
}
#endif // _di_f_utf_string_triples_increase_by_
#ifndef _di_f_utf_string_triples_resize_
- f_status_t f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const triples) {
+ f_status_t f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!triples) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_triples_resize(length, triples);
+ return private_f_utf_string_triples_resize(length, structure);
}
#endif // _di_f_utf_string_triples_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines 3-tuple of UTF-8 string data called a triple (which is an ordered list of 3 strings).
+ * Defines 3-tuple of string data called a triple (which is an ordered list of 3 strings).
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_triples_h
#define _F_utf_triples_h
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_string_triples_adjust_
- extern f_status_t f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_triples_decimate_by_
- extern f_status_t f_utf_string_triples_decimate_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_decimate_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_triples_decrease_by_
- extern f_status_t f_utf_string_triples_decrease_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_decrease_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_triples_increase_
- extern f_status_t f_utf_string_triples_increase(const f_number_unsigned_t step, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_increase(const f_number_unsigned_t step, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param triples
+ * @param structure
* The string triples array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_triples_increase_by_
- extern f_status_t f_utf_string_triples_increase_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_increase_by(const f_number_unsigned_t amount, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_increase_by_
/**
*
* @param length
* The new size to use.
- * @param triples
+ * @param structure
* The string triples array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_triples_resize_
- extern f_status_t f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const triples);
+ extern f_status_t f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const structure);
#endif // _di_f_utf_string_triples_resize_
#ifdef __cplusplus
#endif // _di_f_utf_string_tripless_append_all_
#ifndef _di_f_utf_string_tripless_adjust_
- f_status_t f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_tripless_adjust(length, tripless);
+ return private_f_utf_string_tripless_adjust(length, structure);
}
#endif // _di_f_utf_string_tripless_adjust_
#ifndef _di_f_utf_string_tripless_decimate_by_
- f_status_t f_utf_string_tripless_decimate_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_decimate_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (tripless->size > amount) {
- return private_f_utf_string_tripless_adjust(tripless->size - amount, tripless);
- }
-
- return private_f_utf_string_tripless_adjust(0, tripless);
+ return private_f_utf_string_tripless_adjust((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_tripless_decimate_by_
#ifndef _di_f_utf_string_tripless_decrease_by_
- f_status_t f_utf_string_tripless_decrease_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_decrease_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (tripless->size > amount) {
- return private_f_utf_string_tripless_resize(tripless->size - amount, tripless);
- }
-
- return private_f_utf_string_tripless_resize(0, tripless);
+ return private_f_utf_string_tripless_resize((structure->size > amount) ? structure->size - amount : 0, structure);
}
#endif // _di_f_utf_string_tripless_decrease_by_
#ifndef _di_f_utf_string_tripless_increase_
- f_status_t f_utf_string_tripless_increase(const f_number_unsigned_t step, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_increase(const f_number_unsigned_t step, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- if (step && tripless->used + 1 > tripless->size) {
- f_number_unsigned_t length = tripless->used + step;
+ if (step && structure->used + 1 > structure->size) {
+ f_number_unsigned_t length = structure->used + step;
if (length > F_number_t_size_unsigned_d) {
- if (tripless->used + 1 > F_number_t_size_unsigned_d) {
- return F_status_set_error(F_array_too_large);
- }
+ if (structure->used + 1 > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
length = F_number_t_size_unsigned_d;
}
- return private_f_utf_string_tripless_resize(length, tripless);
+ return private_f_utf_string_tripless_resize(length, structure);
}
return F_data_not;
#endif // _di_f_utf_string_tripless_increase_
#ifndef _di_f_utf_string_tripless_increase_by_
- f_status_t f_utf_string_tripless_increase_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_increase_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (amount) {
- if (tripless->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ if (structure->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- const f_number_unsigned_t length = tripless->used + amount;
+ const f_number_unsigned_t length = structure->used + amount;
- if (length > tripless->size) {
+ if (length > structure->size) {
if (length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- return private_f_utf_string_tripless_resize(length, tripless);
+ return private_f_utf_string_tripless_resize(length, structure);
}
}
#endif // _di_f_utf_string_tripless_increase_by_
#ifndef _di_f_utf_string_tripless_resize_
- f_status_t f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless) {
+ f_status_t f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) {
#ifndef _di_level_0_parameter_checking_
- if (!tripless) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_utf_string_tripless_resize(length, tripless);
+ return private_f_utf_string_tripless_resize(length, structure);
}
#endif // _di_f_utf_string_tripless_resize_
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines 3-tuple of UTF-8 string data called a triple (which is an ordered list of 3 strings).
+ * Defines 3-tuple of string data called a triple (which is an ordered list of 3 strings).
*
- * This is auto-included by utf.h and should not need to be explicitly included.
+ * This is auto-included by string.h and should not need to be explicitly included.
*/
#ifndef _F_utf_tripless_h
#define _F_utf_tripless_h
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_string_tripless_adjust_
- extern f_status_t f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_adjust_
/**
*
* @param amount
* A positive number representing how much to decimate the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_tripless_decimate_by_
- extern f_status_t f_utf_string_tripless_decimate_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_decimate_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_decimate_by_
/**
*
* @param amount
* A positive number representing how much to decrease the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_tripless_decrease_by_
- extern f_status_t f_utf_string_tripless_decrease_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_decrease_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_decrease_by_
/**
* @param step
* The allocation step to use.
* Must be greater than 0.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_tripless_increase_
- extern f_status_t f_utf_string_tripless_increase(const f_number_unsigned_t step, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_increase(const f_number_unsigned_t step, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_increase_
/**
*
* @param amount
* A positive number representing how much to increase the size by.
- * @param tripless
+ * @param structure
* The string tripless array to resize.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_tripless_increase_by_
- extern f_status_t f_utf_string_tripless_increase_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_increase_by(const f_number_unsigned_t amount, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_increase_by_
/**
*
* @param length
* The new size to use.
- * @param tripless
+ * @param structure
* The string tripless array to adjust.
*
* @return
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_tripless_resize_
- extern f_status_t f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const tripless);
+ extern f_status_t f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure);
#endif // _di_f_utf_string_tripless_resize_
#ifdef __cplusplus