build_sources_library string/map.c string/maps.c string/mapss.c
build_sources_library string/map_multi.c string/map_multis.c string/map_multiss.c
build_sources_library string/quantity.c string/quantitys.c string/quantityss.c
-build_sources_library string/range.c string/ranges.c string/rangess.c
-build_sources_library string/range_double.c string/range_doubles.c string/range_doubless.c
build_sources_library string/static.c string/statics.c string/staticss.c
build_sources_library string/triple.c string/triples.c string/tripless.c
build_sources_library time.c
-build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
+build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/range.c type_array/ranges.c type_array/rangess.c type_array/range_double.c type_array/range_doubles.c type_array/range_doubless.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
build_sources_library utf.c private-utf.c private-utf_alphabetic.c private-utf_combining.c private-utf_control.c private-utf_digit.c private-utf_emoji.c private-utf_numeric.c private-utf_phonetic.c private-utf_private.c private-utf_punctuation.c private-utf_subscript.c private-utf_superscript.c private-utf_symbol.c private-utf_unassigned.c private-utf_valid.c private-utf_whitespace.c private-utf_wide.c private-utf_word.c private-utf_zero_width.c
build_sources_library utf/common.c utf/convert.c
build_sources_library utf/dynamic.c utf/dynamics.c utf/dynamicss.c
build_sources_headers string/map.h string/maps.h string/mapss.h
build_sources_headers string/map_multi.h string/map_multis.h string/map_multiss.h
build_sources_headers string/quantity.h string/quantitys.h string/quantityss.h
-build_sources_headers string/range.h string/ranges.h string/rangess.h
-build_sources_headers string/range_double.h string/range_doubles.h string/range_doubless.h
build_sources_headers string/static.h string/statics.h string/staticss.h
build_sources_headers string/triple.h string/triples.h string/tripless.h
build_sources_headers time.h
-build_sources_headers type.h type/cell.h type/file.h type/fll.h type/mode.h type/number.h type/state.h type/status.h type/time.h
-build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
+build_sources_headers type.h type/cell.h type/file.h type/fll.h type/mode.h type/number.h type/range.h type/range_double.h type/state.h type/status.h type/time.h
+build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/range.h type_array/ranges.h type_array/rangess.h type_array/range_double.h type_array/range_doubles.h type_array/range_doubless.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
build_sources_headers utf.h utf/common.h utf/convert.h utf/dynamic.h utf/dynamics.h utf/dynamicss.h utf/is.h utf/is_character.h utf/map.h utf/maps.h utf/mapss.h utf/map_multi.h utf/map_multis.h utf/map_multiss.h utf/static.h utf/statics.h utf/staticss.h utf/string.h utf/triple.h utf/triples.h utf/tripless.h
build_sources_headers-thread thread.h thread/attribute.h thread/barrier.h thread/barrier_attribute.h thread/condition.h thread/condition_attribute.h thread/id.h thread/key.h thread/lock.h thread/lock_attribute.h thread/mutex.h thread/mutex_attribute.h thread/once.h thread/semaphore.h thread/set.h thread/spin.h
build_sources_library level_0/string/map.c level_0/string/maps.c level_0/string/mapss.c
build_sources_library level_0/string/map_multi.c level_0/string/map_multis.c level_0/string/map_multiss.c
build_sources_library level_0/string/quantity.c level_0/string/quantitys.c level_0/string/quantityss.c
-build_sources_library level_0/string/range.c level_0/string/ranges.c level_0/string/rangess.c
-build_sources_library level_0/string/range_double.c level_0/string/range_doubles.c level_0/string/range_doubless.c
build_sources_library level_0/string/static.c level_0/string/statics.c level_0/string/staticss.c
build_sources_library level_0/string/triple.c level_0/string/triples.c level_0/string/tripless.c
build_sources_library level_0/time.c
-build_sources_library level_0/type_array/cell.c level_0/type_array/file.c level_0/type_array/fll_id.c level_0/type_array/int8.c level_0/type_array/int16.c level_0/type_array/int32.c level_0/type_array/int64.c level_0/type_array/int128.c level_0/type_array/number_signed.c level_0/type_array/number_unsigned.c level_0/type_array/poll.c level_0/type_array/state.c level_0/type_array/status.c level_0/type_array/uint8.c level_0/type_array/uint16.c level_0/type_array/uint32.c level_0/type_array/uint64.c level_0/type_array/uint128.c
+build_sources_library level_0/type_array/cell.c level_0/type_array/file.c level_0/type_array/fll_id.c level_0/type_array/int8.c level_0/type_array/int16.c level_0/type_array/int32.c level_0/type_array/int64.c level_0/type_array/int128.c level_0/type_array/number_signed.c level_0/type_array/number_unsigned.c level_0/type_array/poll.c level_0/type_array/range.c level_0/type_array/ranges.c level_0/type_array/rangess.c level_0/type_array/range_double.c level_0/type_array/range_doubles.c level_0/type_array/range_doubless.c level_0/type_array/state.c level_0/type_array/status.c level_0/type_array/uint8.c level_0/type_array/uint16.c level_0/type_array/uint32.c level_0/type_array/uint64.c level_0/type_array/uint128.c
build_sources_library level_0/utf.c level_0/private-utf.c level_0/private-utf_alphabetic.c level_0/private-utf_combining.c level_0/private-utf_control.c level_0/private-utf_digit.c level_0/private-utf_emoji.c level_0/private-utf_numeric.c level_0/private-utf_phonetic.c level_0/private-utf_private.c level_0/private-utf_punctuation.c level_0/private-utf_subscript.c level_0/private-utf_superscript.c level_0/private-utf_symbol.c level_0/private-utf_unassigned.c level_0/private-utf_valid.c level_0/private-utf_whitespace.c level_0/private-utf_wide.c level_0/private-utf_word.c level_0/private-utf_zero_width.c
build_sources_library level_0/utf/common.c level_0/utf/convert.c
build_sources_library level_0/utf/dynamic.c level_0/utf/dynamics.c level_0/utf/dynamicss.c
build_sources_headers level_0/string/map.h level_0/string/maps.h level_0/string/mapss.h
build_sources_headers level_0/string/map_multi.h level_0/string/map_multis.h level_0/string/map_multiss.h
build_sources_headers level_0/string/quantity.h level_0/string/quantitys.h level_0/string/quantityss.h
-build_sources_headers level_0/string/range.h level_0/string/ranges.h level_0/string/rangess.h
-build_sources_headers level_0/string/range_double.h level_0/string/range_doubles.h level_0/string/range_doubless.h
build_sources_headers level_0/string/static.h level_0/string/statics.h level_0/string/staticss.h
build_sources_headers level_0/string/triple.h level_0/string/triples.h level_0/string/tripless.h
build_sources_headers level_0/time.h
-build_sources_headers level_0/type.h level_0/type/cell.h level_0/type/file.h level_0/type/fll.h level_0/type/mode.h level_0/type/number.h level_0/type/state.h level_0/type/status.h level_0/type/time.h
-build_sources_headers level_0/type_array.h level_0/type_array_file.h level_0/type_array/common.h level_0/type_array/cell.h level_0/type_array/file.h level_0/type_array/fll_id.h level_0/type_array/int8.h level_0/type_array/int16.h level_0/type_array/int32.h level_0/type_array/int64.h level_0/type_array/int128.h level_0/type_array/number_signed.h level_0/type_array/number_unsigned.h level_0/type_array/poll.h level_0/type_array/state.h level_0/type_array/status.h level_0/type_array/uint8.h level_0/type_array/uint16.h level_0/type_array/uint32.h level_0/type_array/uint64.h level_0/type_array/uint128.h
+build_sources_headers level_0/type.h level_0/type/cell.h level_0/type/file.h level_0/type/fll.h level_0/type/mode.h level_0/type/number.h level_0/type/range.h level_0/type/range_double.h level_0/type/state.h level_0/type/status.h level_0/type/time.h
+build_sources_headers level_0/type_array.h level_0/type_array_file.h level_0/type_array/common.h level_0/type_array/cell.h level_0/type_array/file.h level_0/type_array/fll_id.h level_0/type_array/int8.h level_0/type_array/int16.h level_0/type_array/int32.h level_0/type_array/int64.h level_0/type_array/int128.h level_0/type_array/number_signed.h level_0/type_array/number_unsigned.h level_0/type_array/poll.h level_0/type_array/range.h level_0/type_array/ranges.h level_0/type_array/rangess.h level_0/type_array/range_double.h level_0/type_array/range_doubles.h level_0/type_array/range_doubless.h level_0/type_array/state.h level_0/type_array/status.h level_0/type_array/uint8.h level_0/type_array/uint16.h level_0/type_array/uint32.h level_0/type_array/uint64.h level_0/type_array/uint128.h
build_sources_headers level_0/utf.h level_0/utf/common.h level_0/utf/convert.h level_0/utf/dynamic.h level_0/utf/dynamics.h level_0/utf/dynamicss.h level_0/utf/is.h level_0/utf/is_character.h level_0/utf/map.h level_0/utf/maps.h level_0/utf/mapss.h level_0/utf/map_multi.h level_0/utf/map_multis.h level_0/utf/map_multiss.h level_0/utf/static.h level_0/utf/statics.h level_0/utf/staticss.h level_0/utf/string.h level_0/utf/triple.h level_0/utf/triples.h level_0/utf/tripless.h
build_sources_headers level_1/control_group.h
build_sources_program fll/level_0/pipe.c
build_sources_program fll/level_0/print.c fll/level_0/private-print.c fll/level_0/print/common.c fll/level_0/print/to.c fll/level_0/print/private-to.c
build_sources_program fll/level_0/signal.c
-build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c fll/level_0/string/dynamic.c fll/level_0/string/map.c fll/level_0/string/map_multi.cfll/level_0/string/quantity.c fll/level_0/string/range.c fll/level_0/string/static.c fll/level_0/string/triple.c
-build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
+build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c fll/level_0/string/dynamic.c fll/level_0/string/map.c fll/level_0/string/map_multi.cfll/level_0/string/quantity.c fll/level_0/string/static.c fll/level_0/string/triple.c
+build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/range.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
build_sources_program fll/level_0/utf.c fll/level_0/private-utf.c fll/level_0/private-utf_alphabetic.c fll/level_0/private-utf_combining.c fll/level_0/private-utf_control.c fll/level_0/private-utf_digit.c fll/level_0/private-utf_emoji.c fll/level_0/private-utf_numeric.c fll/level_0/private-utf_phonetic.c fll/level_0/private-utf_private.c fll/level_0/private-utf_punctuation.c fll/level_0/private-utf_subscript.c fll/level_0/private-utf_superscript.c fll/level_0/private-utf_symbol.c fll/level_0/private-utf_unassigned.c fll/level_0/private-utf_valid.c fll/level_0/private-utf_whitespace.c fll/level_0/private-utf_wide.c fll/level_0/private-utf_word.c fll/level_0/private-utf_zero_width.c
build_sources_program fll/level_0/utf/common.c fll/level_0/utf/convert.c fll/level_0/utf/dynamic.c fll/level_0/utf/is.c fll/level_0/utf/is_character.c fll/level_0/utf/map.c fll/level_0/utf/map_multi.c fll/level_0/utf/static.c fll/level_0/utf/string.c fll/level_0/utf/triple.c fll/level_0/utf/private-dynamic.c fll/level_0/utf/private-map.c fll/level_0/utf/private-map_multi.c fll/level_0/utf/private-triple.c fll/level_0/utf/private-string.c
#define _di_f_string_quantityss_t_
#define _di_f_string_quantitys_t_
#define _di_f_string_quantity_t_
-#define _di_f_string_range_double_empty_c_
-#define _di_f_string_range_doubles_append_
-#define _di_f_string_range_doubles_append_all_
-#define _di_f_string_range_doubless_append_
-#define _di_f_string_range_doubless_append_all_
-#define _di_f_string_range_doubless_delete_callback_
-#define _di_f_string_range_doubless_destroy_callback_
-#define _di_f_string_range_doubless_t_
-#define _di_f_string_range_doubles_t_
-#define _di_f_string_range_double_t_
-#define _di_f_string_range_empty_c_
-#define _di_f_string_ranges_append_
-#define _di_f_string_ranges_append_all_
-#define _di_f_string_rangess_append_
-#define _di_f_string_rangess_append_all_
-//#define _di_f_string_rangess_delete_callback_
-#define _di_f_string_rangess_destroy_callback_
-//#define _di_f_string_rangess_t_
-//#define _di_f_string_ranges_t_
-//#define _di_f_string_range_t_
+#define _di_f_range_double_empty_c_
+#define _di_f_range_doubles_append_
+#define _di_f_range_doubles_append_all_
+#define _di_f_range_doubless_append_
+#define _di_f_range_doubless_append_all_
+#define _di_f_range_doubless_delete_callback_
+#define _di_f_range_doubless_destroy_callback_
+#define _di_f_range_doubless_t_
+#define _di_f_range_doubles_t_
+#define _di_f_range_double_t_
+#define _di_f_range_empty_c_
+#define _di_f_ranges_append_
+#define _di_f_ranges_append_all_
+#define _di_f_rangess_append_
+#define _di_f_rangess_append_all_
+//#define _di_f_rangess_delete_callback_
+#define _di_f_rangess_destroy_callback_
+//#define _di_f_rangess_t_
+//#define _di_f_ranges_t_
+//#define _di_f_range_t_
#define _di_f_string_seek_line_
#define _di_f_string_seek_line_to_
#define _di_f_string_seek_to_
build_sources_program fll/level_0/rip.c fll/level_0/rip/utf.c fll/level_0/private-rip.c fll/level_0/rip/private-utf.c
build_sources_program fll/level_0/signal.c
build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c
-build_sources_program fll/level_0/string/dynamic.c fll/level_0/string/dynamics.c fll/level_0/string/dynamicss.c fll/level_0/string/map.c fll/level_0/string/maps.c fll/level_0/string/mapss.c fll/level_0/string/map_multi.c fll/level_0/string/map_multis.c fll/level_0/string/map_multiss.c fll/level_0/string/quantity.c fll/level_0/string/quantitys.c fll/level_0/string/quantityss.c fll/level_0/string/range.c fll/level_0/string/ranges.c fll/level_0/string/rangess.c fll/level_0/string/static.c fll/level_0/string/statics.c fll/level_0/string/staticss.c fll/level_0/string/triple.c fll/level_0/string/triples.c fll/level_0/string/tripless.c
-build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
+build_sources_program fll/level_0/string/dynamic.c fll/level_0/string/dynamics.c fll/level_0/string/dynamicss.c fll/level_0/string/map.c fll/level_0/string/maps.c fll/level_0/string/mapss.c fll/level_0/string/map_multi.c fll/level_0/string/map_multis.c fll/level_0/string/map_multiss.c fll/level_0/string/quantity.c fll/level_0/string/quantitys.c fll/level_0/string/quantityss.c fll/level_0/string/static.c fll/level_0/string/statics.c fll/level_0/string/staticss.c fll/level_0/string/triple.c fll/level_0/string/triples.c fll/level_0/string/tripless.c
+build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/range.c fll/level_0/type_array/ranges.c fll/level_0/type_array/rangess.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
build_sources_program fll/level_0/utf.c fll/level_0/private-utf.c fll/level_0/private-utf_alphabetic.c fll/level_0/private-utf_combining.c fll/level_0/private-utf_control.c fll/level_0/private-utf_digit.c fll/level_0/private-utf_emoji.c fll/level_0/private-utf_numeric.c fll/level_0/private-utf_phonetic.c fll/level_0/private-utf_private.c fll/level_0/private-utf_punctuation.c fll/level_0/private-utf_subscript.c fll/level_0/private-utf_superscript.c fll/level_0/private-utf_symbol.c fll/level_0/private-utf_unassigned.c fll/level_0/private-utf_valid.c fll/level_0/private-utf_whitespace.c fll/level_0/private-utf_wide.c fll/level_0/private-utf_word.c fll/level_0/private-utf_zero_width.c
build_sources_program fll/level_0/utf/common.c fll/level_0/utf/convert.c fll/level_0/utf/dynamic.c fll/level_0/utf/dynamics.c fll/level_0/utf/dynamicss.c fll/level_0/utf/is.c fll/level_0/utf/is_character.c fll/level_0/utf/map.c fll/level_0/utf/maps.c fll/level_0/utf/mapss.c fll/level_0/utf/map_multi.c fll/level_0/utf/map_multis.c fll/level_0/utf/map_multiss.c fll/level_0/utf/static.c fll/level_0/utf/statics.c fll/level_0/utf/staticss.c fll/level_0/utf/string.c fll/level_0/utf/triple.c fll/level_0/utf/triples.c fll/level_0/utf/tripless.c
build_sources_program fll/level_0/utf/private-dynamics.c fll/level_0/utf/private-maps.c fll/level_0/utf/private-map_multis.c fll/level_0/utf/private-string.c fll/level_0/utf/private-triples.c
build_sources_program fll/level_0/pipe.c
build_sources_program fll/level_0/print.c fll/level_0/private-print.c fll/level_0/print/common.c fll/level_0/print/to.c fll/level_0/print/private-to.c
build_sources_program fll/level_0/signal.c
-build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c fll/level_0/string/dynamic.c fll/level_0/string/map.c fll/level_0/string/map_multi.c fll/level_0/string/quantity.c fll/level_0/string/range.c fll/level_0/string/static.c fll/level_0/string/triple.c
+build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c fll/level_0/string/dynamic.c fll/level_0/string/map.c fll/level_0/string/map_multi.c fll/level_0/string/quantity.c fll/level_0/string/static.c fll/level_0/string/triple.c
build_sources_program fll/level_0/thread.c fll/level_0/private-thread.c fll/level_0/thread/attribute.c fll/level_0/thread/barrier.c fll/level_0/thread/barrier_attribute.c fll/level_0/thread/condition.c fll/level_0/thread/condition_attribute.c fll/level_0/thread/id.c fll/level_0/thread/key.c fll/level_0/thread/lock.c fll/level_0/thread/lock_attribute.c fll/level_0/thread/mutex.c fll/level_0/thread/mutex_attribute.c fll/level_0/thread/once.c fll/level_0/thread/semaphore.c fll/level_0/thread/set.c fll/level_0/thread/spin.c
-build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
+build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/range.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
build_sources_program fll/level_0/utf.c fll/level_0/private-utf.c fll/level_0/private-utf_alphabetic.c fll/level_0/private-utf_combining.c fll/level_0/private-utf_control.c fll/level_0/private-utf_digit.c fll/level_0/private-utf_emoji.c fll/level_0/private-utf_numeric.c fll/level_0/private-utf_phonetic.c fll/level_0/private-utf_private.c fll/level_0/private-utf_punctuation.c fll/level_0/private-utf_subscript.c fll/level_0/private-utf_superscript.c fll/level_0/private-utf_symbol.c fll/level_0/private-utf_unassigned.c fll/level_0/private-utf_valid.c fll/level_0/private-utf_whitespace.c fll/level_0/private-utf_wide.c fll/level_0/private-utf_word.c fll/level_0/private-utf_zero_width.c
build_sources_program fll/level_0/utf/common.c fll/level_0/utf/convert.c fll/level_0/utf/dynamic.c fll/level_0/utf/is.c fll/level_0/utf/is_character.c fll/level_0/utf/map.c fll/level_0/utf/map_multi.c fll/level_0/utf/static.c fll/level_0/utf/string.c fll/level_0/utf/triple.c fll/level_0/utf/private-dynamic.c fll/level_0/utf/private-map.c fll/level_0/utf/private-map_multi.c fll/level_0/utf/private-triple.c fll/level_0/utf/private-string.c
build_sources_program fll/level_0/print.c fll/level_0/private-print.c fll/level_0/print/common.c fll/level_0/print/to.c fll/level_0/print/private-to.c
build_sources_program fll/level_0/signal.c
build_sources_program fll/level_0/string.c fll/level_0/private-string.c fll/level_0/string/common.c
-build_sources_program fll/level_0/string/dynamic.c fll/level_0/string/dynamics.c fll/level_0/string/dynamicss.c fll/level_0/string/map.c fll/level_0/string/maps.c fll/level_0/string/mapss.c fll/level_0/string/map_multi.c fll/level_0/string/map_multis.c fll/level_0/string/map_multiss.c fll/level_0/string/quantity.c fll/level_0/string/quantitys.c fll/level_0/string/quantityss.c fll/level_0/string/range.c fll/level_0/string/ranges.c fll/level_0/string/rangess.c fll/level_0/string/static.c fll/level_0/string/statics.c fll/level_0/string/staticss.c fll/level_0/string/triple.c fll/level_0/string/triples.c fll/level_0/string/tripless.c
-build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
+build_sources_program fll/level_0/string/dynamic.c fll/level_0/string/dynamics.c fll/level_0/string/dynamicss.c fll/level_0/string/map.c fll/level_0/string/maps.c fll/level_0/string/mapss.c fll/level_0/string/map_multi.c fll/level_0/string/map_multis.c fll/level_0/string/map_multiss.c fll/level_0/string/quantity.c fll/level_0/string/quantitys.c fll/level_0/string/quantityss.c fll/level_0/string/static.c fll/level_0/string/statics.c fll/level_0/string/staticss.c fll/level_0/string/triple.c fll/level_0/string/triples.c fll/level_0/string/tripless.c
+build_sources_program fll/level_0/type_array/cell.c fll/level_0/type_array/file.c fll/level_0/type_array/fll_id.c fll/level_0/type_array/int8.c fll/level_0/type_array/int16.c fll/level_0/type_array/int32.c fll/level_0/type_array/int64.c fll/level_0/type_array/int128.c fll/level_0/type_array/number_signed.c fll/level_0/type_array/number_unsigned.c fll/level_0/type_array/poll.c fll/level_0/type_array/range.c fll/level_0/type_array/ranges.c fll/level_0/type_array/rangess.c fll/level_0/type_array/state.c fll/level_0/type_array/status.c fll/level_0/type_array/uint8.c fll/level_0/type_array/uint16.c fll/level_0/type_array/uint32.c fll/level_0/type_array/uint64.c fll/level_0/type_array/uint128.c
build_sources_program fll/level_0/utf.c fll/level_0/private-utf.c fll/level_0/private-utf_alphabetic.c fll/level_0/private-utf_combining.c fll/level_0/private-utf_control.c fll/level_0/private-utf_digit.c fll/level_0/private-utf_emoji.c fll/level_0/private-utf_numeric.c fll/level_0/private-utf_phonetic.c fll/level_0/private-utf_private.c fll/level_0/private-utf_punctuation.c fll/level_0/private-utf_subscript.c fll/level_0/private-utf_superscript.c fll/level_0/private-utf_symbol.c fll/level_0/private-utf_unassigned.c fll/level_0/private-utf_valid.c fll/level_0/private-utf_whitespace.c fll/level_0/private-utf_wide.c fll/level_0/private-utf_word.c fll/level_0/private-utf_zero_width.c
build_sources_program fll/level_0/utf/common.c fll/level_0/utf/convert.c fll/level_0/utf/dynamic.c fll/level_0/utf/dynamics.c fll/level_0/utf/dynamicss.c fll/level_0/utf/is.c fll/level_0/utf/is_character.c fll/level_0/utf/map.c fll/level_0/utf/maps.c fll/level_0/utf/mapss.c fll/level_0/utf/map_multi.c fll/level_0/utf/map_multis.c fll/level_0/utf/map_multiss.c fll/level_0/utf/static.c fll/level_0/utf/statics.c fll/level_0/utf/staticss.c fll/level_0/utf/string.c fll/level_0/utf/triple.c fll/level_0/utf/triples.c fll/level_0/utf/tripless.c
build_sources_program fll/level_0/utf/private-dynamics.c fll/level_0/utf/private-maps.c fll/level_0/utf/private-map_multis.c fll/level_0/utf/private-string.c fll/level_0/utf/private-triples.c
* - map_multis: Maps to f_string_map_multis_t.
* - quantity: Maps to f_string_quantity_t.
* - quantitys: Maps to f_string_quantitys_t.
- * - range: Maps to f_string_range_t.
- * - ranges: Maps to f_string_ranges_t.
+ * - range: Maps to f_range_t.
+ * - ranges: Maps to f_ranges_t.
* - triple: Maps to f_string_triple_t.
* - triples: Maps to f_string_triples_t.
* - void: Maps to (void *).
case f_abstruse_ranges_e:
if (abstruse->is.a_quantitys.size) {
- return f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &abstruse->is.a_ranges.array, &abstruse->is.a_ranges.used, &abstruse->is.a_ranges.size);
+ return f_memory_array_resize(0, sizeof(f_range_t), (void **) &abstruse->is.a_ranges.array, &abstruse->is.a_ranges.used, &abstruse->is.a_ranges.size);
}
break;
case f_abstruse_ranges_e:
if (abstruse->is.a_quantitys.size) {
- return f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &abstruse->is.a_ranges.array, &abstruse->is.a_ranges.used, &abstruse->is.a_ranges.size);
+ return f_memory_array_adjust(0, sizeof(f_range_t), (void **) &abstruse->is.a_ranges.array, &abstruse->is.a_ranges.used, &abstruse->is.a_ranges.size);
}
break;
f_number_signeds_t a_signeds;
f_number_unsigned_t a_unsigned;
f_number_unsigneds_t a_unsigneds;
+ f_range_t a_range;
+ f_ranges_t a_ranges;
f_string_t a_string;
f_string_t * a_strings;
f_string_dynamic_t a_dynamic;
f_string_map_multis_t a_map_multis;
f_string_quantity_t a_quantity;
f_string_quantitys_t a_quantitys;
- f_string_range_t a_range;
- f_string_ranges_t a_ranges;
f_string_triple_t a_triple;
f_string_triples_t a_triples;
void * a_void;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 1;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 1;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 1;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 1;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
mock_unwrap_f_memory = 0;
f_string_t a_string = "example";
- f_string_range_t a_range = macro_f_string_range_t_initialize_1(1, 2);
+ f_range_t a_range = macro_f_range_t_initialize_1(1, 2);
f_string_static_t a_static = macro_f_string_static_t_initialize_1(a_string, 0, 7);
f_string_dynamic_t a_dynamic = f_string_dynamic_t_initialize;
#endif // _di_f_compare_dynamic_trim_string_
#ifndef _di_f_compare_dynamic_partial_
- f_status_t f_compare_dynamic_partial(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2) {
return private_f_compare(
string1.string,
#endif // _di_f_compare_dynamic_partial_
#ifndef _di_f_compare_dynamic_partial_dynamic_
- f_status_t f_compare_dynamic_partial_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2) {
return private_f_compare(
string1.string,
#endif // _di_f_compare_dynamic_partial_dynamic_
#ifndef _di_f_compare_dynamic_partial_string_
- f_status_t f_compare_dynamic_partial_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2) {
return private_f_compare(
string1,
#endif // _di_f_compare_dynamic_partial_string_
#ifndef _di_f_compare_dynamic_partial_except_
- f_status_t f_compare_dynamic_partial_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except(
string1.string,
#endif // _di_f_compare_dynamic_partial_except_
#ifndef _di_f_compare_dynamic_partial_except_dynamic_
- f_status_t f_compare_dynamic_partial_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except(
string1.string,
#endif // _di_f_compare_dynamic_partial_except_dynamic_
#ifndef _di_f_compare_dynamic_partial_except_string_
- f_status_t f_compare_dynamic_partial_except_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except(
string1,
#endif // _di_f_compare_dynamic_partial_except_string_
#ifndef _di_f_compare_dynamic_partial_except_trim_
- f_status_t f_compare_dynamic_partial_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except_trim(
string1.string,
#endif // _di_f_compare_dynamic_partial_except_trim_
#ifndef _di_f_compare_dynamic_partial_except_trim_dynamic_
- f_status_t f_compare_dynamic_partial_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except_trim(
string1.string,
#endif // _di_f_compare_dynamic_partial_except_trim_dynamic_
#ifndef _di_f_compare_dynamic_partial_except_trim_string_
- f_status_t f_compare_dynamic_partial_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_dynamic_partial_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_except_trim(
string1,
#endif // _di_f_compare_dynamic_partial_except_trim_string_
#ifndef _di_f_compare_dynamic_partial_trim_
- f_status_t f_compare_dynamic_partial_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial_trim(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2) {
return private_f_compare_trim(
string1.string,
#endif // _di_f_compare_dynamic_partial_trim_
#ifndef _di_f_compare_dynamic_partial_trim_dynamic_
- f_status_t f_compare_dynamic_partial_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2) {
return private_f_compare_trim(
string1.string,
#endif // _di_f_compare_dynamic_partial_trim_dynamic_
#ifndef _di_f_compare_dynamic_partial_trim_string_
- f_status_t f_compare_dynamic_partial_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2) {
+ f_status_t f_compare_dynamic_partial_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2) {
return private_f_compare_trim(
string1,
#include <fll/level_0/memory.h>
#include <fll/level_0/type.h>
#include <fll/level_0/utf.h>
+#include <fll/level_0/type_array.h>
// FLL-0 compare includes.
#include <fll/level_0/compare/utf.h>
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_
- extern f_status_t f_compare_dynamic_partial(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_dynamic_
- extern f_status_t f_compare_dynamic_partial_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_except_
- extern f_status_t f_compare_dynamic_partial_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_except_dynamic_
- extern f_status_t f_compare_dynamic_partial_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_except_string_
- extern f_status_t f_compare_dynamic_partial_except_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_except_trim_
- extern f_status_t f_compare_dynamic_partial_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_trim_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_except_trim_dynamic_
- extern f_status_t f_compare_dynamic_partial_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_trim_dynamic_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_except_trim_string_
- extern f_status_t f_compare_dynamic_partial_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_dynamic_partial_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_dynamic_partial_except_trim_string_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_dynamic_partial_string_
- extern f_status_t f_compare_dynamic_partial_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_trim_
- extern f_status_t f_compare_dynamic_partial_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial_trim(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range1, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_trim_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_trim_dynamic_
- extern f_status_t f_compare_dynamic_partial_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_trim_dynamic_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_compare_dynamic_partial_trim_string_
- extern f_status_t f_compare_dynamic_partial_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2);
+ extern f_status_t f_compare_dynamic_partial_trim_string(const f_string_t string1, const f_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2);
#endif // _di_f_compare_dynamic_partial_trim_string_
/**
#endif // _di_f_compare_utf_dynamic_trim_string_
#ifndef _di_f_compare_utf_dynamic_partial_
- f_status_t f_compare_utf_dynamic_partial(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2) {
return private_f_compare_utf(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_
#ifndef _di_f_compare_utf_dynamic_partial_dynamic_
- f_status_t f_compare_utf_dynamic_partial_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2) {
return private_f_compare_utf(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_dynamic_
#ifndef _di_f_compare_utf_dynamic_partial_string_
- f_status_t f_compare_utf_dynamic_partial_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2) {
return private_f_compare_utf(
string1,
#endif // _di_f_compare_utf_dynamic_partial_string_
#ifndef _di_f_compare_utf_dynamic_partial_except_
- f_status_t f_compare_utf_dynamic_partial_except(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_except_
#ifndef _di_f_compare_utf_dynamic_partial_except_dynamic_
- f_status_t f_compare_utf_dynamic_partial_except_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_except_dynamic_
#ifndef _di_f_compare_utf_dynamic_partial_except_string_
- f_status_t f_compare_utf_dynamic_partial_except_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except(
string1,
#endif // _di_f_compare_utf_dynamic_partial_except_string_
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_
- f_status_t f_compare_utf_dynamic_partial_except_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except_trim(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_except_trim_
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_dynamic_
- f_status_t f_compare_utf_dynamic_partial_except_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except_trim(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_except_trim_dynamic_
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_string_
- f_status_t f_compare_utf_dynamic_partial_except_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
+ f_status_t f_compare_utf_dynamic_partial_except_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2) {
return private_f_compare_utf_except_trim(
string1,
#endif // _di_f_compare_utf_dynamic_partial_except_trim_string_
#ifndef _di_f_compare_utf_dynamic_partial_trim_
- f_status_t f_compare_utf_dynamic_partial_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2) {
return private_f_compare_utf_trim(
string1.string,
#endif // _di_f_compare_utf_utf_string_dynamic_partial_trim_
#ifndef _di_f_compare_utf_dynamic_partial_trim_dynamic_
- f_status_t f_compare_utf_dynamic_partial_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2) {
return private_f_compare_utf_trim(
string1.string,
#endif // _di_f_compare_utf_dynamic_partial_trim_dynamic_
#ifndef _di_f_compare_utf_dynamic_partial_trim_string_
- f_status_t f_compare_utf_dynamic_partial_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2) {
+ f_status_t f_compare_utf_dynamic_partial_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2) {
return private_f_compare_utf_trim(
string1,
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_
- extern f_status_t f_compare_utf_dynamic_partial(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_dynamic_
- extern f_status_t f_compare_utf_dynamic_partial_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_
- extern f_status_t f_compare_utf_dynamic_partial_except(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_dynamic_
- extern f_status_t f_compare_utf_dynamic_partial_except_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_string_
- extern f_status_t f_compare_utf_dynamic_partial_except_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_string_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_
- extern f_status_t f_compare_utf_dynamic_partial_except_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_trim_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_dynamic_
- extern f_status_t f_compare_utf_dynamic_partial_except_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_trim_dynamic_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_except_trim_string_
- extern f_status_t f_compare_utf_dynamic_partial_except_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
+ extern f_status_t f_compare_utf_dynamic_partial_except_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2, const f_number_unsigneds_t except1, const f_number_unsigneds_t except2);
#endif // _di_f_compare_utf_dynamic_partial_except_trim_string_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_compare_utf_dynamic_partial_string_
- extern f_status_t f_compare_utf_dynamic_partial_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_string_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_trim_
- extern f_status_t f_compare_utf_dynamic_partial_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range1, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_trim_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_trim_dynamic_
- extern f_status_t f_compare_utf_dynamic_partial_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial_trim_dynamic(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_trim_dynamic_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_compare_utf_dynamic_partial_trim_string_
- extern f_status_t f_compare_utf_dynamic_partial_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_string_range_t range2);
+ extern f_status_t f_compare_utf_dynamic_partial_trim_string(const f_utf_string_t string1, const f_utf_string_static_t string2, const f_number_unsigned_t length1, const f_range_t range2);
#endif // _di_f_compare_utf_dynamic_partial_trim_string_
/**
f_memory
f_string
f_utf
+f_type_array
build_language c
build_libraries -lc
-build_libraries-individual -lf_memory -lf_string -lf_utf
+build_libraries-individual -lf_memory -lf_string -lf_type_array -lf_utf
build_sources_library compare.c compare/utf.c private-compare.c compare/private-utf.c
build_language c
build_libraries -lc -lcmocka
-build_libraries-individual -lf_memory -lf_string -lf_utf -lf_compare
+build_libraries-individual -lf_memory -lf_string -lf_type_array -lf_utf -lf_compare
build_sources_program test-compare-.c test-compare-dynamic.c test-compare-dynamic_string.c
build_sources_program test-compare-dynamic_partial.c test-compare-dynamic_partial_dynamic.c test-compare-dynamic_partial_string.c
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial(string_1s[i], string_2s[i], f_string_range_empty_c, f_string_range_empty_c);
+ status = f_compare_dynamic_partial(string_1s[i], string_2s[i], f_range_empty_c, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
- status = f_compare_dynamic_partial(string_1s[i], string_2s[i], f_string_range_empty_c, range_2);
+ status = f_compare_dynamic_partial(string_1s[i], string_2s[i], f_range_empty_c, range_2);
}
assert_int_equal(status, expects[i]);
range_1.stop = string_1s[i].used - 4;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial(string_1s[i], string_2s[i], range_1, f_string_range_empty_c);
+ status = f_compare_dynamic_partial(string_1s[i], string_2s[i], range_1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c);
+ status = f_compare_dynamic_partial_dynamic(string_1s[i], string_2s[i], f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
for (; i < 64; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c);
+ status = f_compare_dynamic_partial_dynamic(string_1s[i], string_2s[i], f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0", 0, 8),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except(string_1s[i], string_2s[i], range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except(string_1s[i], string_2s[i], range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except(string_1s[i], string_2s[i], range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except(string_1s[i], string_2s[i], range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0", 0, 8),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_dynamic(string_1s[i], string_2s[i], f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
for (; i < 64; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_dynamic(string_1s[i], string_2s[i], f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_string(string_1s[i].string, string_2s[i], 0, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_string(string_1s[i].string, string_2s[i], 0, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_string(string_1s[i].string, string_2s[i], range_1.stop + 1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_string(string_1s[i].string, string_2s[i], range_1.stop + 1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0\0\0\t", 0, 11),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim(string_1s[i], string_2s[i], range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim(string_1s[i], string_2s[i], range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim(string_1s[i], string_2s[i], range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim(string_1s[i], string_2s[i], range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0\0\0\t", 0, 11),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim_dynamic(string_1s[i], string_2s[i], f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
for (; i < 64; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim_dynamic(string_1s[i], string_2s[i], f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim_string(string_1s[i].string, string_2s[i], 0, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim_string(string_1s[i].string, string_2s[i], 0, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_except_trim_string(string_1s[i].string, string_2s[i], range_1.stop + 1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_dynamic_partial_except_trim_string(string_1s[i].string, string_2s[i], range_1.stop + 1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_string(string_1s[i].string, string_2s[i], 0, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_string(string_1s[i].string, string_2s[i], 0, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_string(string_1s[i].string + range_1.start, string_2s[i], (range_1.stop - range_1.start) + 1, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_string(string_1s[i].string + range_1.start, string_2s[i], (range_1.stop - range_1.start) + 1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], f_string_range_empty_c, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], f_range_empty_c, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
- status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], f_string_range_empty_c, range_2);
+ status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], f_range_empty_c, range_2);
}
assert_int_equal(status, expects[i]);
range_1.stop = string_1s[i].used - 4;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], range_1, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim(string_1s[i], string_2s[i], range_1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim_dynamic(string_1s[i], string_2s[i], f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
for (; i < 64; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim_dynamic(string_1s[i], string_2s[i], f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim_dynamic(string_1s[i], string_2s[i], f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
for (; i < 8; ++i) {
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim_string(string_1s[i].string, string_2s[i], 0, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim_string(string_1s[i].string, string_2s[i], 0, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_dynamic_partial_trim_string(string_1s[i].string + range_1.start, string_2s[i], (range_1.stop - range_1.start) + 1, f_string_range_empty_c);
+ status = f_compare_dynamic_partial_trim_string(string_1s[i].string + range_1.start, string_2s[i], (range_1.stop - range_1.start) + 1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, f_string_range_empty_c, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, f_range_empty_c, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
- status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, f_string_range_empty_c, range_2);
+ status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, f_range_empty_c, range_2);
}
assert_int_equal(status, expects[i]);
range_1.stop = string_1s[i].used - 4;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, range_1, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, range_1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0", 0, 8),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except(utf_string_1, utf_string_2, range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except(utf_string_1, utf_string_2, range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0", 0, 8),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_string(utf_string_1.string, utf_string_2, 0, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_string(utf_string_1.string, utf_string_2, range_1.stop + 1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_string(utf_string_1.string, utf_string_2, range_1.stop + 1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0\0\0\t", 0, 11),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim(utf_string_1, utf_string_2, range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim(utf_string_1, utf_string_2, range_1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("SKIPone\0\0\0\t", 0, 11),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_string_static_t string_2s[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim_string(utf_string_1.string, utf_string_2, 0, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_except_trim_string(utf_string_1.string, utf_string_2, range_1.stop + 1, f_string_range_empty_c, excepts_1, excepts_2);
+ status = f_compare_utf_dynamic_partial_except_trim_string(utf_string_1.string, utf_string_2, range_1.stop + 1, f_range_empty_c, excepts_1, excepts_2);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_string(utf_string_1.string, utf_string_2, 0, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_string(utf_string_1.string + range_1.start, utf_string_2, (range_1.stop - range_1.start) + 1, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_string(utf_string_1.string + range_1.start, utf_string_2, (range_1.stop - range_1.start) + 1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, f_string_range_empty_c, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, f_range_empty_c, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
- status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, f_string_range_empty_c, range_2);
+ status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, f_range_empty_c, range_2);
}
assert_int_equal(status, expects[i]);
range_1.stop = string_1s[i].used - 4;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, range_1, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, range_1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
macro_f_string_static_t_initialize_1("aaone\0", 0, 6),
};
- f_string_range_t range_1 = macro_f_string_range_t_initialize_1(3, 9);
- f_string_range_t range_2 = macro_f_string_range_t_initialize_1(2, 0);
+ f_range_t range_1 = macro_f_range_t_initialize_1(3, 9);
+ f_range_t range_2 = macro_f_range_t_initialize_1(2, 0);
const f_status_t expects[] = {
assert_int_equal(status, F_okay);
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim_string(utf_string_1.string, utf_string_2, 0, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
range_1.stop = string_1s[i].used - 1;
if (i % 8 == 0) {
- status = f_compare_utf_dynamic_partial_trim_string(utf_string_1.string + range_1.start, utf_string_2, (range_1.stop - range_1.start) + 1, f_string_range_empty_c);
+ status = f_compare_utf_dynamic_partial_trim_string(utf_string_1.string + range_1.start, utf_string_2, (range_1.stop - range_1.start) + 1, f_range_empty_c);
}
else {
range_2.stop = string_2s[i].used - 1;
#endif // _di_f_file_write_until_
#ifndef _di_f_file_write_range_
- f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const written) {
+ f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const written) {
if (file.id == -1 || !buffer.used || range.start > range.stop || range.start >= buffer.used || !file.size_write) {
if (written) {
* @see write()
*/
#ifndef _di_f_file_write_range_
- extern f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const written);
+ extern f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const written);
#endif // _di_f_file_write_range_
#ifdef __cplusplus
#endif // _di_f_file_stream_write_until_
#ifndef _di_f_file_stream_write_range_
- f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const written) {
+ f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const written) {
if (!file.stream || !buffer.used || range.start > range.stop || range.start >= buffer.used || !file.size_write) {
if (written) {
* @see fwrite_unlocked()
*/
#ifndef _di_f_file_stream_write_range_
- extern f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const written);
+ extern f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const written);
#endif // _di_f_file_stream_write_range_
#ifdef __cplusplus
void test__f_file_stream_write_range__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
{
f_file_t file = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
void test__f_file_stream_write_range__returns_stream_not(void **state) {
const f_file_t file = f_file_t_initialize;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
{
const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0);
f_file_t file = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0);
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_status_t status = f_file_stream_write_range(file, test, range, 0);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0);
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
f_number_unsigned_t written = 1;
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
f_number_unsigned_t written = 1;
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
f_number_unsigned_t written = 1;
void test__f_file_stream_write_range__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
{
f_file_t file = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
void test__f_file_write_range__fails(void **state) {
const f_string_static_t path = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
int errnos[] = {
EAGAIN,
void test__f_file_write_range__returns_file_descriptor_not(void **state) {
f_file_t file = f_file_t_initialize;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
file.size_write = 1;
const f_file_t file = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_file_write_range(file, f_string_empty_s, range, 0);
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_string_static_t path = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_status_t status = f_file_write_range(file, path, range, 0);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
const f_status_t status = f_file_write_range(file, f_string_empty_s, range, 0);
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
f_number_unsigned_t written = 1;
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_string_static_t path = macro_f_string_static_t_initialize_1("test", 0, 4);
f_number_unsigned_t written = 1;
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
f_number_unsigned_t written = 1;
void test__f_file_write_range__works(void **state) {
const f_string_static_t path = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 0);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 0);
{
f_file_t file = f_file_t_initialize;
#endif // _di_f_fss_apply_delimit_
#ifndef _di_f_fss_apply_delimit_range_
- void f_fss_apply_delimit_range(const f_number_unsigneds_t delimits, const f_string_range_t range, f_string_static_t * const buffer, f_state_t * const state) {
+ void f_fss_apply_delimit_range(const f_number_unsigneds_t delimits, const f_range_t range, f_string_static_t * const buffer, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
#endif // _di_f_fss_count_lines_
#ifndef _di_f_fss_count_lines_range_
- void f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const line, f_state_t * const state) {
+ void f_fss_count_lines_range(const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const line, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
#endif // _di_f_fss_fail_utf_to_false_
#ifndef _di_f_fss_is_combining_
- f_status_t f_fss_is_combining(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state) {
+ f_status_t f_fss_is_combining(const f_string_static_t buffer, const f_range_t range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_is_combining_
#ifndef _di_f_fss_is_graph_
- f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state) {
+ f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_range_t range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_is_graph_
#ifndef _di_f_fss_is_space_
- f_status_t f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state) {
+ f_status_t f_fss_is_space(const f_string_static_t buffer, const f_range_t range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_is_space_
#ifndef _di_f_fss_is_zero_width_
- f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state) {
+ f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_range_t range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_is_zero_width_
#ifndef _di_f_fss_seek_to_eol_
- void f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t * const range, f_state_t * const state) {
+ void f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_range_t * const range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
#endif // _di_f_fss_seek_to_eol_
#ifndef _di_f_fss_skip_past_delimit_
- void f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t * const range, f_state_t * const state) {
+ void f_fss_skip_past_delimit(const f_string_static_t buffer, f_range_t * const range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
#endif // _di_f_fss_skip_past_delimit_
#ifndef _di_f_fss_skip_past_space_
- void f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t * const range, f_state_t * const state) {
+ void f_fss_skip_past_space(const f_string_static_t buffer, f_range_t * const range, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_apply_delimit_range_
- extern void f_fss_apply_delimit_range(const f_number_unsigneds_t delimits, const f_string_range_t range, f_string_static_t * const buffer, f_state_t * const state);
+ extern void f_fss_apply_delimit_range(const f_number_unsigneds_t delimits, const f_range_t range, f_string_static_t * const buffer, f_state_t * const state);
#endif // _di_f_fss_apply_delimit_range_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_count_lines_range_
- extern void f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const line, f_state_t * const state);
+ extern void f_fss_count_lines_range(const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const line, f_state_t * const state);
#endif // _di_f_fss_count_lines_range_
/**
* @see f_utf_is_combining()
*/
#ifndef _di_f_fss_is_combining_
- extern f_status_t f_fss_is_combining(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state);
+ extern f_status_t f_fss_is_combining(const f_string_static_t buffer, const f_range_t range, f_state_t * const state);
#endif // _di_f_fss_is_combining_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_f_fss_is_graph_
- extern f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state);
+ extern f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_range_t range, f_state_t * const state);
#endif // _di_f_fss_is_graph_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_is_space_
- extern f_status_t f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state);
+ extern f_status_t f_fss_is_space(const f_string_static_t buffer, const f_range_t range, f_state_t * const state);
#endif // _di_f_fss_is_space_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_is_zero_width_
- extern f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range, f_state_t * const state);
+ extern f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_range_t range, f_state_t * const state);
#endif // _di_f_fss_is_zero_width_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_seek_to_eol_
- extern void f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t * const range, f_state_t * const state);
+ extern void f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_range_t * const range, f_state_t * const state);
#endif // _di_f_fss_seek_to_eol_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_skip_past_delimit_
- extern void f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t * const range, f_state_t * const state);
+ extern void f_fss_skip_past_delimit(const f_string_static_t buffer, f_range_t * const range, f_state_t * const state);
#endif // _di_f_fss_skip_past_delimit_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_skip_past_space_
- extern void f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t * const range, f_state_t * const state);
+ extern void f_fss_skip_past_space(const f_string_static_t buffer, f_range_t * const range, f_state_t * const state);
#endif // _di_f_fss_skip_past_space_
#ifdef __cplusplus
if (!item) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &item->content.array, &item->content.used, &item->content.size);
+ return f_memory_array_resize(0, sizeof(f_range_t), (void **) &item->content.array, &item->content.used, &item->content.size);
}
#endif // _di_f_fss_item_delete_
if (!item) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &item->content.array, &item->content.used, &item->content.size);
+ return f_memory_array_adjust(0, sizeof(f_range_t), (void **) &item->content.array, &item->content.used, &item->content.size);
}
#endif // _di_f_fss_item_destroy_
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].content.size && array[i].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].content.size && array[i].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].content.size && array[i].array[j].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].content.size && array[i].array[j].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
} // for
*/
#ifndef _di_f_fss_item_t_
typedef struct {
- f_string_range_t object;
- f_string_ranges_t content;
+ f_range_t object;
+ f_ranges_t content;
f_number_unsigned_t parent;
} f_fss_item_t;
- #define f_fss_item_t_initialize { f_string_range_t_initialize, f_string_ranges_t_initialize, 0 }
+ #define f_fss_item_t_initialize { f_range_t_initialize, f_ranges_t_initialize, 0 }
#define macro_f_fss_item_t_initialize_1(object, content, parent) macro_f_number_unsigneds_t_initialize_1(object, content, parent)
#define macro_f_fss_item_t_clear(item) \
- macro_f_string_range_t_clear(item.object); \
- macro_f_string_ranges_t_clear(item.content); \
+ macro_f_range_t_clear(item.object); \
+ macro_f_ranges_t_clear(item.content); \
item.parent = 0;
#endif // _di_f_fss_item_t_
f_status_t status = F_okay;
if (named->objects.size && named->objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &named->objects.array, &named->objects.used, &named->objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &named->objects.array, &named->objects.used, &named->objects.size);
if (F_status_is_error(status)) return status;
}
if (named->contents.size && named->contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &named->contents.array, &named->contents.used, &named->contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &named->contents.array, &named->contents.used, &named->contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_okay;
if (named->objects.size && named->objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &named->objects.array, &named->objects.used, &named->objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &named->objects.array, &named->objects.used, &named->objects.size);
if (F_status_is_error(status)) return status;
}
if (named->contents.size && named->contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &named->contents.array, &named->contents.used, &named->contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &named->contents.array, &named->contents.used, &named->contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
*/
#ifndef _di_f_fss_named_t_
typedef struct {
- f_string_range_t name;
+ f_range_t name;
- f_string_ranges_t objects;
- f_string_rangess_t contents;
+ f_ranges_t objects;
+ f_rangess_t contents;
f_uint8ss_t quotess;
} f_fss_named_t;
- #define f_fss_named_t_initialize { f_string_range_t_initialize, f_string_ranges_t_initialize, f_string_rangess_t_initialize, f_uint8ss_t_initialize }
+ #define f_fss_named_t_initialize { f_range_t_initialize, f_ranges_t_initialize, f_rangess_t_initialize, f_uint8ss_t_initialize }
#define macro_f_fss_named_t_initialize_1(name, objects, contents, quotess) macro_f_number_unsigneds_t_initialize_1(name, objects, contents, quotess)
- #define macro_f_fss_named_t_initialize_2(name) macro_f_number_unsigneds_t_initialize_1(name, f_string_ranges_t_initialize, f_string_rangess_t_initialize, f_uint8ss_t_initialize)
+ #define macro_f_fss_named_t_initialize_2(name) macro_f_number_unsigneds_t_initialize_1(name, f_ranges_t_initialize, f_rangess_t_initialize, f_uint8ss_t_initialize)
#define macro_f_fss_named_t_clear(named) \
- macro_f_string_range_t_clear(named.name) \
- macro_f_string_ranges_t_clear(named.objects) \
- macro_f_string_rangess_t_clear(named.contents) \
+ macro_f_range_t_clear(named.name) \
+ macro_f_ranges_t_clear(named.objects) \
+ macro_f_rangess_t_clear(named.contents) \
macro_f_uint8ss_t_clear(named.quotess)
#endif // _di_f_fss_named_t_
for (j = 0; j < nest->depth[i].size; ++j) {
if (nest->depth[i].array[j].content.size && nest->depth[i].array[j].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &nest->depth[i].array[j].content.array, &nest->depth[i].array[j].content.used, &nest->depth[i].array[j].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &nest->depth[i].array[j].content.array, &nest->depth[i].array[j].content.used, &nest->depth[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < nest->depth[i].size; ++j) {
if (nest->depth[i].array[j].content.size && nest->depth[i].array[j].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &nest->depth[i].array[j].content.array, &nest->depth[i].array[j].content.used, &nest->depth[i].array[j].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &nest->depth[i].array[j].content.array, &nest->depth[i].array[j].content.used, &nest->depth[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (k = 0; k < array[i].depth[j].size; ++k) {
if (array[i].depth[j].array[k].content.size && array[i].depth[j].array[k].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].depth[j].array[k].content.array, &array[i].depth[j].array[k].content.used, &array[i].depth[j].array[k].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].depth[j].array[k].content.array, &array[i].depth[j].array[k].content.used, &array[i].depth[j].array[k].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (k = 0; k < array[i].depth[j].size; ++k) {
if (array[i].depth[j].array[k].content.size && array[i].depth[j].array[k].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].depth[j].array[k].content.array, &array[i].depth[j].array[k].content.used, &array[i].depth[j].array[k].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].depth[j].array[k].content.array, &array[i].depth[j].array[k].content.used, &array[i].depth[j].array[k].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (l = 0; l < array[i].array[j].depth[k].size; ++l) {
if (array[i].array[j].depth[k].array[l].content.size && array[i].array[j].depth[k].array[l].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].depth[k].array[l].content.array, &array[i].array[j].depth[k].array[l].content.used, &array[i].array[j].depth[k].array[l].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].depth[k].array[l].content.array, &array[i].array[j].depth[k].array[l].content.used, &array[i].array[j].depth[k].array[l].content.size);
if (F_status_is_error(status)) return status;
}
} // for
for (l = 0; l < array[i].array[j].depth[k].size; ++l) {
if (array[i].array[j].depth[k].array[l].content.size && array[i].array[j].depth[k].array[l].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].depth[k].array[l].content.array, &array[i].array[j].depth[k].array[l].content.used, &array[i].array[j].depth[k].array[l].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].depth[k].array[l].content.array, &array[i].array[j].depth[k].array[l].content.used, &array[i].array[j].depth[k].array[l].content.size);
if (F_status_is_error(status)) return status;
}
} // for
f_status_t status = F_okay;
if (set->objects.size && set->objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &set->objects.array, &set->objects.used, &set->objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &set->objects.array, &set->objects.used, &set->objects.size);
if (F_status_is_error(status)) return status;
}
if (set->contents.size && set->contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &set->contents.array, &set->contents.used, &set->contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &set->contents.array, &set->contents.used, &set->contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
}
f_status_t status = F_okay;
if (set->objects.size && set->objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &set->objects.array, &set->objects.used, &set->objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &set->objects.array, &set->objects.used, &set->objects.size);
if (F_status_is_error(status)) return status;
}
if (set->contents.size && set->contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &set->contents.array, &set->contents.used, &set->contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &set->contents.array, &set->contents.used, &set->contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
} // for
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
} // for
*/
#ifndef _di_f_fss_set_t_
typedef struct {
- f_string_ranges_t objects;
- f_string_rangess_t contents;
+ f_ranges_t objects;
+ f_rangess_t contents;
} f_fss_set_t;
- #define f_fss_set_t_initialize { f_string_ranges_t_initialize, f_string_rangess_t_initialize }
+ #define f_fss_set_t_initialize { f_ranges_t_initialize, f_rangess_t_initialize }
#define macro_f_fss_set_t_initialize_1(objects, contents) { objects, contents }
#define macro_f_fss_set_t_clear(set) \
- macro_f_string_ranges_t_clear(set.objects) \
- macro_f_string_rangess_t_clear(set.contents)
+ macro_f_ranges_t_clear(set.objects) \
+ macro_f_rangess_t_clear(set.contents)
#endif // _di_f_fss_set_t_
/**
f_status_t status = F_okay;
if (set_quote->objects.size && set_quote->objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &set_quote->objects.array, &set_quote->objects.used, &set_quote->objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &set_quote->objects.array, &set_quote->objects.used, &set_quote->objects.size);
if (F_status_is_error(status)) return status;
}
if (set_quote->contents.size && set_quote->contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &set_quote->contents.array, &set_quote->contents.used, &set_quote->contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &set_quote->contents.array, &set_quote->contents.used, &set_quote->contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_okay;
if (set_quote->objects.size && set_quote->objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &set_quote->objects.array, &set_quote->objects.used, &set_quote->objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &set_quote->objects.array, &set_quote->objects.used, &set_quote->objects.size);
if (F_status_is_error(status)) return status;
}
if (set_quote->contents.size && set_quote->contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &set_quote->contents.array, &set_quote->contents.used, &set_quote->contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &set_quote->contents.array, &set_quote->contents.used, &set_quote->contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].objects.size && array[i].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].objects.array, &array[i].objects.used, &array[i].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].contents.size && array[i].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].contents.array, &array[i].contents.used, &array[i].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_delete_callback);
+ status = f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_delete_callback);
if (F_status_is_error(status)) return status;
}
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].objects.size && array[i].array[j].objects.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].objects.array, &array[i].array[j].objects.used, &array[i].array[j].objects.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].contents.size && array[i].array[j].contents.array) {
- status = f_memory_arrays_adjust(0, sizeof(f_string_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_string_rangess_destroy_callback);
+ status = f_memory_arrays_adjust(0, sizeof(f_ranges_t), (void **) &array[i].array[j].contents.array, &array[i].array[j].contents.used, &array[i].array[j].contents.size, &f_rangess_destroy_callback);
if (F_status_is_error(status)) return status;
}
*/
#ifndef _di_f_fss_set_quote_t_
typedef struct {
- f_string_ranges_t objects;
- f_string_rangess_t contents;
+ f_ranges_t objects;
+ f_rangess_t contents;
f_uint8s_t objects_quote;
f_uint8ss_t contents_quote;
} f_fss_set_quote_t;
- #define f_fss_set_quote_t_initialize { f_string_ranges_t_initialize, f_string_rangess_t_initialize, f_uint8s_t_initialize, f_uint8ss_t_initialize }
+ #define f_fss_set_quote_t_initialize { f_ranges_t_initialize, f_rangess_t_initialize, f_uint8s_t_initialize, f_uint8ss_t_initialize }
#define macro_f_fss_set_quote_t_initialize_1(objects, contents, objects_quote, contents_quote) { objects, contents, objects_quote, contents_quote }
#define macro_f_fss_set_quote_t_clear(set) \
- macro_f_string_ranges_t_clear(set.objects) \
- macro_f_string_rangess_t_clear(set.contents) \
+ macro_f_ranges_t_clear(set.objects) \
+ macro_f_rangess_t_clear(set.contents) \
macro_f_uint8s_t_clear(set.objects_quote) \
macro_f_uint8ss_t_clear(set.contents_quote)
#endif // _di_f_fss_set_quote_t_
typedef struct {
uint8_t control;
uint32_t size;
- f_string_range_t payload;
+ f_range_t payload;
} f_fss_simple_packet_range_t;
#define f_fss_simple_packet_range_t_initialize { \
0, \
0, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
}
#define macro_f_fss_simple_packet_range_t_initialize_1(control, size, payload) { \
const f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
f_state_t state_data = f_state_t_initialize;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
{
f_fss_apply_delimit_range(delimits, range, 0, &state_data);
f_state_t state_data = f_state_t_initialize;
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
f_string_static_t empty = f_string_static_t_initialize;
f_fss_apply_delimit_range(delimits, range, &empty, &state_data);
}
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
f_fss_apply_delimit_range(delimits, range, &test, &state_data);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, test.used - 1);
+ const f_range_t range = macro_f_range_t_initialize_1(0, test.used - 1);
f_string_static_t empty = f_string_static_t_initialize;
f_fss_apply_delimit_range(delimits, range, &empty, &state_data);
for (uint8_t i = 0; i < 7; ++i) {
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, tests[i].used - 1);
+ const f_range_t range = macro_f_range_t_initialize_1(0, tests[i].used - 1);
f_fss_apply_delimit_range(delimitss[i], range, &tests[i], &state_data);
void test__f_fss_count_lines_range__parameter_checking(void **state) {
f_state_t state_data = f_state_t_initialize;
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
{
f_fss_count_lines_range(f_string_empty_s, range, 0, &state_data);
{
f_number_unsigned_t line = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_count_lines_range(f_string_empty_s, range, &line, &state_data);
{
f_number_unsigned_t line = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_count_lines_range(test, range, &line, &state_data);
{
f_number_unsigned_t line = 0;
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, test.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, test.used - 1);
f_fss_count_lines_range(f_string_empty_s, range, &line, &state_data);
for (uint8_t i = 0; i < 5; expect += ++i) {
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, buffers[i].used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, buffers[i].used - 1);
f_fss_count_lines_range(buffers[i], range, &line, &state_data);
for (f_number_unsigned_t i = 0; i < 11; ++i) {
- const f_string_range_t range = macro_f_string_range_t_initialize_1(offset[i], tests[i].used - 1);
+ const f_range_t range = macro_f_range_t_initialize_1(offset[i], tests[i].used - 1);
const f_status_t status = f_fss_is_combining(tests[i], range, &state_data);
} // for
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_combining(f_string_empty_s, range, &state_data);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 2);
const f_status_t status = f_fss_is_combining(f_string_empty_s, range, &state_data);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_combining(test, range, &state_data);
for (f_number_unsigned_t i = 0; i < 12; ++i) {
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, tests[i].used - 1);
+ const f_range_t range = macro_f_range_t_initialize_1(0, tests[i].used - 1);
const f_status_t status = f_fss_is_graph(tests[i], range, &state_data);
} // for
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_graph(f_string_empty_s, range, &state_data);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 2);
const f_status_t status = f_fss_is_graph(f_string_empty_s, range, &state_data);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_graph(test, range, &state_data);
for (f_number_unsigned_t i = 0; i < 12; ++i) {
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, tests[i].used - 1);
+ const f_range_t range = macro_f_range_t_initialize_1(0, tests[i].used - 1);
const f_status_t status = f_fss_is_space(tests[i], range, &state_data);
} // for
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_space(f_string_empty_s, range, &state_data);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 2);
const f_status_t status = f_fss_is_space(f_string_empty_s, range, &state_data);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_space(test, range, &state_data);
};
// Use range to designate which part of a string is to be tested.
- f_string_range_t ranges[] = {
+ f_range_t ranges[] = {
{ .start = 0, .stop = tests[0].used },
{ .start = 0, .stop = tests[1].used },
{ .start = 0, .stop = tests[2].used },
} // for
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_zero_width(f_string_empty_s, range, &state_data);
}
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t range = macro_f_range_t_initialize_1(0, 2);
const f_status_t status = f_fss_is_zero_width(f_string_empty_s, range, &state_data);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_fss_is_zero_width(test, range, &state_data);
f_fss_item_t data = f_fss_item_t_initialize;
{
- const f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.content.array, &data.content.used, &data.content.size);
+ const f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.content.array, &data.content.used, &data.content.size);
assert_int_equal(status, F_okay);
}
f_fss_item_t data = f_fss_item_t_initialize;
{
- const f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.content.array, &data.content.used, &data.content.size);
+ const f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.content.array, &data.content.used, &data.content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t data = { .content = bases };
f_fss_item_t data_array[] = { data };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_item_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t data = { .content = bases };
f_fss_item_t data_array[] = { data };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_item_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t data = { .content = bases };
f_fss_item_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t data = { .content = bases };
f_fss_item_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_fss_named_t data = f_fss_named_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &data.quotess.array, &data.quotess.used, &data.quotess.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_fss_named_t data = f_fss_named_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &data.quotess.array, &data.quotess.used, &data.quotess.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_named_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &datas.array[0].quotess.array, &datas.array[0].quotess.used, &datas.array[0].quotess.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_named_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &datas.array[0].quotess.array, &datas.array[0].quotess.used, &datas.array[0].quotess.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
status = f_memory_array_resize(1, sizeof(f_fss_named_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].quotess.array, &datass.array[0].array[0].quotess.used, &datass.array[0].array[0].quotess.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
status = f_memory_array_resize(1, sizeof(f_fss_named_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].quotess.array, &datass.array[0].array[0].quotess.used, &datass.array[0].array[0].quotess.size);
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &data.depth[0].array, &data.depth[0].used, &data.depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.depth[0].array[0].content.array, &data.depth[0].array[0].content.used, &data.depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.depth[0].array[0].content.array, &data.depth[0].array[0].content.used, &data.depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &data.depth[0].array, &data.depth[0].used, &data.depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.depth[0].array[0].content.array, &data.depth[0].array[0].content.used, &data.depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.depth[0].array[0].content.array, &data.depth[0].array[0].content.used, &data.depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t item = { .content = bases };
f_fss_item_t item_array[] = { item };
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datas.array[0].depth[0].array, &datas.array[0].depth[0].used, &datas.array[0].depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].depth[0].array[0].content.array, &datas.array[0].depth[0].array[0].content.used, &datas.array[0].depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].depth[0].array[0].content.array, &datas.array[0].depth[0].array[0].content.used, &datas.array[0].depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
f_fss_item_t item = { .content = bases };
f_fss_item_t item_array[] = { item };
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datas.array[0].depth[0].array, &datas.array[0].depth[0].used, &datas.array[0].depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].depth[0].array[0].content.array, &datas.array[0].depth[0].array[0].content.used, &datas.array[0].depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].depth[0].array[0].content.array, &datas.array[0].depth[0].array[0].content.used, &datas.array[0].depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array[0].depth[0].array, &datass.array[0].array[0].depth[0].used, &datass.array[0].array[0].depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].depth[0].array[0].content.array, &datass.array[0].array[0].depth[0].array[0].content.used, &datass.array[0].array[0].depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].depth[0].array[0].content.array, &datass.array[0].array[0].depth[0].array[0].content.used, &datass.array[0].array[0].depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array[0].depth[0].array, &datass.array[0].array[0].depth[0].used, &datass.array[0].array[0].depth[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].depth[0].array[0].content.array, &datass.array[0].array[0].depth[0].array[0].content.used, &datass.array[0].array[0].depth[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].depth[0].array[0].content.array, &datass.array[0].array[0].depth[0].array[0].content.used, &datass.array[0].array[0].depth[0].array[0].content.size);
assert_int_equal(status, F_okay);
}
f_state_t state_data = f_state_t_initialize;
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_seek_to_eol(f_string_empty_s, &range, &state_data);
}
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_seek_to_eol(test, &range, &state_data);
}
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, 1);
f_fss_seek_to_eol(f_string_empty_s, &range, &state_data);
macro_f_string_static_t_initialize_1("\ntest\n\n", 0, 7),
};
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, tests[0].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[1].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[2].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[3].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[4].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[5].used - 1),
- macro_f_string_range_t_initialize_1(0, tests[6].used - 2),
- macro_f_string_range_t_initialize_1(0, tests[7].used - 2),
- macro_f_string_range_t_initialize_1(0, tests[8].used - 2),
- macro_f_string_range_t_initialize_1(0, tests[9].used - 2),
- macro_f_string_range_t_initialize_1(0, tests[10].used - 2),
- macro_f_string_range_t_initialize_1(1, tests[11].used - 2),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, tests[0].used - 1),
+ macro_f_range_t_initialize_1(0, tests[1].used - 1),
+ macro_f_range_t_initialize_1(0, tests[2].used - 1),
+ macro_f_range_t_initialize_1(0, tests[3].used - 1),
+ macro_f_range_t_initialize_1(0, tests[4].used - 1),
+ macro_f_range_t_initialize_1(0, tests[5].used - 1),
+ macro_f_range_t_initialize_1(0, tests[6].used - 2),
+ macro_f_range_t_initialize_1(0, tests[7].used - 2),
+ macro_f_range_t_initialize_1(0, tests[8].used - 2),
+ macro_f_range_t_initialize_1(0, tests[9].used - 2),
+ macro_f_range_t_initialize_1(0, tests[10].used - 2),
+ macro_f_range_t_initialize_1(1, tests[11].used - 2),
};
f_number_unsigned_t expects[] = {
for (uint8_t i = 0; i < 12; ++i) {
- f_string_range_t range = ranges[i];
+ f_range_t range = ranges[i];
f_fss_seek_to_eol(tests[i], &range, &state_data);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data = f_fss_set_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data = f_fss_set_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_fss_set_quote_t data = f_fss_set_quote_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &data.objects_quote.array, &data.objects_quote.used, &data.objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_fss_set_quote_t data = f_fss_set_quote_t_initialize;
{
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &data.objects.array, &data.objects.used, &data.objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &data.contents.array, &data.contents.used, &data.contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &data.contents.array[0].array, &data.contents.array[0].used, &data.contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &data.objects_quote.array, &data.objects_quote.used, &data.objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_set_quote_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datas.array[0].objects_quote.array, &datas.array[0].objects_quote.used, &datas.array[0].objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_set_quote_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datas.array[0].objects_quote.array, &datas.array[0].objects_quote.used, &datas.array[0].objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
status = f_memory_array_resize(1, sizeof(f_fss_set_quote_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].objects_quote.array, &datass.array[0].array[0].objects_quote.used, &datass.array[0].array[0].objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
uint8_t quote_array[] = { 0 };
f_uint8s_t quotes = { .array = quote_array, .used = 0, .size = 1 };
status = f_memory_array_resize(1, sizeof(f_fss_set_quote_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].objects_quote.array, &datass.array[0].array[0].objects_quote.used, &datass.array[0].array[0].objects_quote.size);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data_array[] = { data };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_set_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data_array[] = { data };
f_status_t status = f_memory_array_resize(length, sizeof(f_fss_set_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].objects.array, &datas.array[0].objects.used, &datas.array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datas.array[0].contents.array, &datas.array[0].contents.used, &datas.array[0].contents.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].contents.array[0].array, &datas.array[0].contents.array[0].used, &datas.array[0].contents.array[0].size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_fss_set_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = f_string_range_t_initialize;
- f_string_range_t base_array[] = { base };
- f_string_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t objects_array[] = { objects };
- f_string_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
+ f_range_t base = f_range_t_initialize;
+ f_range_t base_array[] = { base };
+ f_ranges_t objects = { .array = base_array, .used = 0, .size = 1 };
+ f_ranges_t objects_array[] = { objects };
+ f_rangess_t contents = { .array = objects_array, .used = 0, .size = 1 };
f_fss_set_t data = { .objects = objects, .contents = contents };
f_fss_set_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_fss_set_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].objects.array, &datass.array[0].array[0].objects.used, &datass.array[0].array[0].objects.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
+ status = f_memory_array_resize(1, sizeof(f_ranges_t), (void **) &datass.array[0].array[0].contents.array, &datass.array[0].array[0].contents.used, &datass.array[0].array[0].contents.size);
assert_int_equal(status, F_okay);
}
f_state_t state_data = f_state_t_initialize;
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_skip_past_delimit(f_string_empty_s, &range, &state_data);
}
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_skip_past_delimit(test, &range, &state_data);
}
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, test.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, test.used - 1);
f_fss_skip_past_delimit(f_string_empty_s, &range, &state_data);
}
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(test.used, test.used + 2);
+ f_range_t range = macro_f_range_t_initialize_1(test.used, test.used + 2);
f_fss_skip_past_delimit(test, &range, &state_data);
for (uint8_t i = 0; i < 4; ++i) {
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, tests[i].used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, tests[i].used - 1);
f_fss_skip_past_delimit(tests[i], &range, &state_data);
f_state_t state_data = f_state_t_initialize;
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_skip_past_space(f_string_empty_s, &range, &state_data);
}
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_fss_skip_past_space(test, &range, &state_data);
}
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, test.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, test.used - 1);
f_fss_skip_past_space(f_string_empty_s, &range, &state_data);
}
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(test.used, test.used + 2);
+ f_range_t range = macro_f_range_t_initialize_1(test.used, test.used + 2);
f_fss_skip_past_space(test, &range, &state_data);
for (uint8_t i = 0; i < 7; ++i) {
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, tests[i].used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, tests[i].used - 1);
f_fss_skip_past_space(tests[i], &range, &state_data);
#endif // _di_f_iki_content_is_
#ifndef _di_f_iki_content_partial_is_
- f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote) {
+ f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_range_t range, const f_string_static_t quote) {
#ifndef _di_level_0_parameter_checking_
if (!quote.used) return F_status_set_error(F_parameter);
if (quote.string[0] != f_iki_syntax_quote_single_s.string[0] && quote.string[0] != f_iki_syntax_quote_double_s.string[0] && quote.string[0] != f_iki_syntax_quote_backtick_s.string[0]) return F_status_set_error(F_parameter);
#endif // _di_f_iki_object_is_
#ifndef _di_f_iki_object_partial_is_
- f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range) {
+ f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_range_t range) {
if (!object.used) return F_data_not;
if (range.start > range.stop) return F_data_not_stop;
#endif // _di_f_iki_object_partial_is_
#ifndef _di_f_iki_read_
- void f_iki_read(f_string_static_t * const buffer, f_string_range_t * const range, f_iki_data_t * const data, f_state_t * const state) {
+ void f_iki_read(f_string_static_t * const buffer, f_range_t * const range, f_iki_data_t * const data, f_state_t * const state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return;
width_max = buffer->used - range->start;
}
- f_string_range_t found_vocabulary = f_string_range_t_initialize;
+ f_range_t found_vocabulary = f_range_t_initialize;
f_number_unsigned_t found_content = 0;
f_number_unsigned_t vocabulary_slash_first = 0;
const f_number_unsigned_t delimits_used = data->delimits.used;
}
if (buffer->string[range->start] == quote) {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
if (F_status_is_error(state->status)) break;
data->variable.array[data->variable.used].start = found_vocabulary.start;
if (buffer->string[range->start] == quote) {
f_number_unsigned_t content_slash_delimits = content_slash_total / 2;
- f_string_range_t content_range = f_string_range_t_initialize;
+ f_range_t content_range = f_range_t_initialize;
f_number_unsigned_t i = 0;
if (content_slash_total % 2) {
// Valid content's ending quote is not delimited, save and return.
if (content_slash_total % 2 == 0) {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
if (F_status_is_error(state->status)) break;
data->variable.array[data->variable.used].start = found_vocabulary.start;
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_iki_content_partial_is_
- extern f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote);
+ extern f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_range_t range, const f_string_static_t quote);
#endif // _di_f_iki_content_partial_is_
/**
* Errors (with error bit) from: f_utf_is_word_dash_plus().
*/
#ifndef _di_f_iki_object_partial_is_
- extern f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range);
+ extern f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_range_t range);
#endif // _di_f_iki_object_partial_is_
/**
* @see f_memory_array_increase_by()
*/
#ifndef _di_f_iki_read_
- extern void f_iki_read(f_string_static_t * const buffer, f_string_range_t * const range, f_iki_data_t * const data, f_state_t * const state);
+ extern void f_iki_read(f_string_static_t * const buffer, f_range_t * const range, f_iki_data_t * const data, f_state_t * const state);
#endif // _di_f_iki_read_
#ifdef __cplusplus
*/
#ifndef _di_f_iki_data_t_
typedef struct {
- f_string_ranges_t content;
+ f_ranges_t content;
f_number_unsigneds_t delimits;
- f_string_ranges_t variable;
- f_string_ranges_t vocabulary;
+ f_ranges_t variable;
+ f_ranges_t vocabulary;
} f_iki_data_t;
#define f_iki_data_t_initialize { \
- f_string_ranges_t_initialize, \
+ f_ranges_t_initialize, \
f_number_unsigneds_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_ranges_t_initialize, \
+ f_ranges_t_initialize, \
+ f_ranges_t_initialize, \
}
#define macro_f_iki_data_t_initialize_1(content, delimits, variable, vocabulary) { content, delimits, variable, vocabulary }
#define macro_f_iki_data_t_clear(data) \
- f_string_ranges_t_clear(data.content) \
+ f_ranges_t_clear(data.content) \
f_number_unsigneds_t_clear(data.delimits) \
- f_string_ranges_t_clear(data.variable) \
- f_string_ranges_t_clear(data.vocabulary)
+ f_ranges_t_clear(data.variable) \
+ f_ranges_t_clear(data.vocabulary)
#endif // _di_f_iki_data_t_
/**
f_status_t status = F_okay;
if (data->content.size && data->content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
if (F_status_is_error(status)) return status;
}
}
if (data->variable.size && data->variable.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
if (F_status_is_error(status)) return status;
}
if (data->vocabulary.size && data->vocabulary.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
if (F_status_is_error(status)) return status;
}
}
f_status_t status = F_okay;
if (data->content.size && data->content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &data->content.array, &data->content.used, &data->content.size);
if (F_status_is_error(status)) return status;
}
}
if (data->variable.size && data->variable.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &data->variable.array, &data->variable.used, &data->variable.size);
if (F_status_is_error(status)) return status;
}
if (data->vocabulary.size && data->vocabulary.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &data->vocabulary.array, &data->vocabulary.used, &data->vocabulary.size);
if (F_status_is_error(status)) return status;
}
}
destination->array[destination->used].vocabulary.used = 0;
if (source.content.used) {
- status = f_string_ranges_append_all(source.content, &destination->array[destination->used].content);
+ status = f_ranges_append_all(source.content, &destination->array[destination->used].content);
if (F_status_is_error(status)) return status;
}
}
if (source.variable.used) {
- status = f_string_ranges_append_all(source.variable, &destination->array[destination->used].variable);
+ status = f_ranges_append_all(source.variable, &destination->array[destination->used].variable);
if (F_status_is_error(status)) return status;
}
if (source.vocabulary.used) {
- status = f_string_ranges_append_all(source.vocabulary, &destination->array[destination->used].vocabulary);
+ status = f_ranges_append_all(source.vocabulary, &destination->array[destination->used].vocabulary);
if (F_status_is_error(status)) return status;
}
}
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].content.size && array[i].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
if (F_status_is_error(status)) return status;
}
}
if (array[i].variable.size && array[i].variable.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].variable.array, &array[i].variable.used, &array[i].variable.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].variable.array, &array[i].variable.used, &array[i].variable.size);
if (F_status_is_error(status)) return status;
}
if (array[i].vocabulary.size && array[i].vocabulary.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].vocabulary.array, &array[i].vocabulary.used, &array[i].vocabulary.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].vocabulary.array, &array[i].vocabulary.used, &array[i].vocabulary.size);
if (F_status_is_error(status)) return status;
}
} // for
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].content.size && array[i].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].content.array, &array[i].content.used, &array[i].content.size);
if (F_status_is_error(status)) return status;
}
}
if (array[i].variable.size && array[i].variable.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].variable.array, &array[i].variable.used, &array[i].variable.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].variable.array, &array[i].variable.used, &array[i].variable.size);
if (F_status_is_error(status)) return status;
}
if (array[i].vocabulary.size && array[i].vocabulary.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].vocabulary.array, &array[i].vocabulary.used, &array[i].vocabulary.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].vocabulary.array, &array[i].vocabulary.used, &array[i].vocabulary.size);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].content.size && array[i].array[j].content.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
}
if (array[i].array[j].variable.size && array[i].array[j].variable.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].variable.array, &array[i].array[j].variable.used, &array[i].array[j].variable.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].variable.array, &array[i].array[j].variable.used, &array[i].array[j].variable.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].vocabulary.size && array[i].array[j].vocabulary.array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array[j].vocabulary.array, &array[i].array[j].vocabulary.used, &array[i].array[j].vocabulary.size);
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array[j].vocabulary.array, &array[i].array[j].vocabulary.used, &array[i].array[j].vocabulary.size);
if (F_status_is_error(status)) return status;
}
} // for
for (j = 0; j < array[i].size; ++j) {
if (array[i].array[j].content.size && array[i].array[j].content.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].content.array, &array[i].array[j].content.used, &array[i].array[j].content.size);
if (F_status_is_error(status)) return status;
}
}
if (array[i].array[j].variable.size && array[i].array[j].variable.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].variable.array, &array[i].array[j].variable.used, &array[i].array[j].variable.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].variable.array, &array[i].array[j].variable.used, &array[i].array[j].variable.size);
if (F_status_is_error(status)) return status;
}
if (array[i].array[j].vocabulary.size && array[i].array[j].vocabulary.array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array[j].vocabulary.array, &array[i].array[j].vocabulary.used, &array[i].array[j].vocabulary.size);
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array[j].vocabulary.array, &array[i].array[j].vocabulary.used, &array[i].array[j].vocabulary.size);
if (F_status_is_error(status)) return status;
}
} // for
*
* Errors (with error bit) from: f_memory_array_append().
* Errors (with error bit) from: f_memory_array_increase().
- * Errors (with error bit) from: f_string_ranges_append_all().
+ * Errors (with error bit) from: f_ranges_append_all().
*
* @see f_memory_array_append()
* @see f_memory_array_increase()
- * @see f_string_ranges_append_all()
+ * @see f_ranges_append_all()
*/
#ifndef _di_f_iki_datas_append_
extern f_status_t f_iki_datas_append(const f_iki_data_t source, f_iki_datas_t * const destination);
*
* Errors (with error bit) from: f_memory_array_append().
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_string_ranges_append_all().
+ * Errors (with error bit) from: f_ranges_append_all().
*
* @see f_memory_array_append()
* @see f_memory_array_increase_by()
- * @see f_string_ranges_append_all()
+ * @see f_ranges_append_all()
*/
#ifndef _di_f_iki_datas_append_all_
extern f_status_t f_iki_datas_append_all(const f_iki_datas_t source, f_iki_datas_t * const destination);
destination->array[destination->used].vocabulary.used = 0;
if (source.array[i].content.used) {
- status = f_string_ranges_append_all(source.array[i].content, &destination->array[destination->used].content);
+ status = f_ranges_append_all(source.array[i].content, &destination->array[destination->used].content);
if (F_status_is_error(status)) return status;
}
} // for
if (source.array[i].variable.used) {
- status = f_string_ranges_append_all(source.array[i].variable, &destination->array[destination->used].variable);
+ status = f_ranges_append_all(source.array[i].variable, &destination->array[destination->used].variable);
if (F_status_is_error(status)) return status;
}
if (source.array[i].vocabulary.used) {
- status = f_string_ranges_append_all(source.array[i].vocabulary, &destination->array[destination->used].vocabulary);
+ status = f_ranges_append_all(source.array[i].vocabulary, &destination->array[destination->used].vocabulary);
if (F_status_is_error(status)) return status;
}
} // for
*
* Errors (with error bit) from: f_memory_array_append().
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_string_ranges_append_all().
+ * Errors (with error bit) from: f_ranges_append_all().
*
* @see f_memory_array_append()
* @see f_memory_array_increase_by()
- * @see f_string_ranges_append_all()
+ * @see f_ranges_append_all()
*
* @see f_iki_datass_append()
* @see f_iki_datass_append_all()
macro_f_string_static_t_initialize_1("xxxx\"false\"xxxx", 0, 15),
};
- const f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 5),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 5),
+ const f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 5),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 5),
};
const f_string_static_t quotes[] = {
void test__f_iki_content_partial_is__parameter_checking(void **state) {
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_iki_content_partial_is(f_string_empty_s, range, f_string_empty_s);
void test__f_iki_content_partial_is__returns_data_not(void **state) {
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_iki_content_partial_is(f_string_empty_s, range, f_string_ascii_quote_single_s);
void test__f_iki_content_partial_is__returns_data_not_eos(void **state) {
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
+ const f_range_t range = macro_f_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
const f_status_t status = f_iki_content_partial_is(f_string_ascii_a_s, range, f_string_ascii_quote_single_s);
void test__f_iki_content_partial_is__returns_data_not_stop(void **state) {
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_iki_content_partial_is(f_string_ascii_a_s, range, f_string_ascii_quote_single_s);
macro_f_string_static_t_initialize_1("xxxx\\\"work\\\"s\\\"xxxx", 0, 19),
};
- const f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(4, 8),
- macro_f_string_range_t_initialize_1(4, 13),
- macro_f_string_range_t_initialize_1(4, 12),
- macro_f_string_range_t_initialize_1(4, 13),
- macro_f_string_range_t_initialize_1(4, 14),
- macro_f_string_range_t_initialize_1(4, 12),
- macro_f_string_range_t_initialize_1(4, 13),
- macro_f_string_range_t_initialize_1(4, 14),
+ const f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(4, 8),
+ macro_f_range_t_initialize_1(4, 13),
+ macro_f_range_t_initialize_1(4, 12),
+ macro_f_range_t_initialize_1(4, 13),
+ macro_f_range_t_initialize_1(4, 14),
+ macro_f_range_t_initialize_1(4, 12),
+ macro_f_range_t_initialize_1(4, 13),
+ macro_f_range_t_initialize_1(4, 14),
};
const f_string_static_t quotes[] = {
{
f_number_unsigned_t i = 1;
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.content.array, &source.content.used, &source.content.size);
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.content.array, &source.content.used, &source.content.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.content.size, length);
assert_int_equal(status, F_okay);
assert_int_equal(source.delimits.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.variable.array, &source.variable.used, &source.variable.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.variable.array, &source.variable.used, &source.variable.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.variable.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.vocabulary.array, &source.vocabulary.used, &source.vocabulary.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.vocabulary.array, &source.vocabulary.used, &source.vocabulary.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.vocabulary.size, length);
for (; j < 2; ++j) {
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].content.array, &source.array[j].content.used, &source.array[j].content.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].content.array, &source.array[j].content.used, &source.array[j].content.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].content.size, length);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].delimits.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].variable.array, &source.array[j].variable.used, &source.array[j].variable.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].variable.array, &source.array[j].variable.used, &source.array[j].variable.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].variable.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].vocabulary.array, &source.array[j].vocabulary.used, &source.array[j].vocabulary.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].vocabulary.array, &source.array[j].vocabulary.used, &source.array[j].vocabulary.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].vocabulary.size, length);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t content = bases;
+ f_ranges_t content = bases;
f_number_unsigned_t delimit_array[] = { 0 };
f_number_unsigneds_t delimits = { .array = delimit_array, .used = 0, .size = 1 };
- f_string_ranges_t variable = bases;
- f_string_ranges_t vocabulary = bases;
+ f_ranges_t variable = bases;
+ f_ranges_t vocabulary = bases;
f_iki_data_t data = { .content = content, .delimits = delimits, .variable = variable, .vocabulary = vocabulary };
f_iki_data_t data_array[] = { data };
f_status_t status = f_memory_array_resize(1, sizeof(f_iki_data_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datas.array[0].delimits.array, &datas.array[0].delimits.used, &datas.array[0].delimits.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].variable.array, &datas.array[0].variable.used, &datas.array[0].variable.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].variable.array, &datas.array[0].variable.used, &datas.array[0].variable.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].vocabulary.array, &datas.array[0].vocabulary.used, &datas.array[0].vocabulary.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].vocabulary.array, &datas.array[0].vocabulary.used, &datas.array[0].vocabulary.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t content = bases;
+ f_ranges_t content = bases;
f_number_unsigned_t delimit_array[] = { 0 };
f_number_unsigneds_t delimits = { .array = delimit_array, .used = 0, .size = 1 };
- f_string_ranges_t variable = bases;
- f_string_ranges_t vocabulary = bases;
+ f_ranges_t variable = bases;
+ f_ranges_t vocabulary = bases;
f_iki_data_t data = { .content = content, .delimits = delimits, .variable = variable, .vocabulary = vocabulary };
f_iki_data_t data_array[] = { data };
f_status_t status = f_memory_array_resize(1, sizeof(f_iki_data_t), (void **) &datas.array, &datas.used, &datas.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].content.array, &datas.array[0].content.used, &datas.array[0].content.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datas.array[0].delimits.array, &datas.array[0].delimits.used, &datas.array[0].delimits.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].variable.array, &datas.array[0].variable.used, &datas.array[0].variable.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].variable.array, &datas.array[0].variable.used, &datas.array[0].variable.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datas.array[0].vocabulary.array, &datas.array[0].vocabulary.used, &datas.array[0].vocabulary.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datas.array[0].vocabulary.array, &datas.array[0].vocabulary.used, &datas.array[0].vocabulary.size);
assert_int_equal(status, F_okay);
}
for (f_number_unsigned_t j = 0; j < length_outer; ++j) {
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].content.array, &source.array[j].content.used, &source.array[j].content.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].content.array, &source.array[j].content.used, &source.array[j].content.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].content.size, length);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].delimits.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].variable.array, &source.array[j].variable.used, &source.array[j].variable.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].variable.array, &source.array[j].variable.used, &source.array[j].variable.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].variable.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[j].vocabulary.array, &source.array[j].vocabulary.used, &source.array[j].vocabulary.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[j].vocabulary.array, &source.array[j].vocabulary.used, &source.array[j].vocabulary.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[j].vocabulary.size, length);
for (j = 0; j < length_inner; ++j) {
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[source.used].array[j].content.array, &source.array[source.used].array[j].content.used, &source.array[source.used].array[j].content.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[source.used].array[j].content.array, &source.array[source.used].array[j].content.used, &source.array[source.used].array[j].content.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[source.used].array[j].content.size, length);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[source.used].array[j].delimits.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[source.used].array[j].variable.array, &source.array[source.used].array[j].variable.used, &source.array[source.used].array[j].variable.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[source.used].array[j].variable.array, &source.array[source.used].array[j].variable.used, &source.array[source.used].array[j].variable.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[source.used].array[j].variable.size, length);
- status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array[source.used].array[j].vocabulary.array, &source.array[source.used].array[j].vocabulary.used, &source.array[source.used].array[j].vocabulary.size);
+ status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array[source.used].array[j].vocabulary.array, &source.array[source.used].array[j].vocabulary.used, &source.array[source.used].array[j].vocabulary.size);
assert_int_equal(status, F_okay);
assert_int_equal(source.array[source.used].array[j].vocabulary.size, length);
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t content = bases;
+ f_ranges_t content = bases;
f_number_unsigned_t delimit_array[] = { 0 };
f_number_unsigneds_t delimits = { .array = delimit_array, .used = 0, .size = 1 };
- f_string_ranges_t variable = bases;
- f_string_ranges_t vocabulary = bases;
+ f_ranges_t variable = bases;
+ f_ranges_t vocabulary = bases;
f_iki_data_t data = { .content = content, .delimits = delimits, .variable = variable, .vocabulary = vocabulary };
f_iki_data_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_iki_data_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array[0].delimits.array, &datass.array[0].array[0].delimits.used, &datass.array[0].array[0].delimits.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].variable.array, &datass.array[0].array[0].variable.used, &datass.array[0].array[0].variable.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].variable.array, &datass.array[0].array[0].variable.used, &datass.array[0].array[0].variable.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].vocabulary.array, &datass.array[0].array[0].vocabulary.used, &datass.array[0].array[0].vocabulary.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].vocabulary.array, &datass.array[0].array[0].vocabulary.used, &datass.array[0].array[0].vocabulary.size);
assert_int_equal(status, F_okay);
}
mock_unwrap = 0;
mock_unwrap_f_memory = 0;
- f_string_range_t base = macro_f_string_range_t_initialize_1(1, 0);
- f_string_range_t base_array[] = { base };
- f_string_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
+ f_range_t base = macro_f_range_t_initialize_1(1, 0);
+ f_range_t base_array[] = { base };
+ f_ranges_t bases = { .array = base_array, .used = 0, .size = 1 };
- f_string_ranges_t content = bases;
+ f_ranges_t content = bases;
f_number_unsigned_t delimit_array[] = { 0 };
f_number_unsigneds_t delimits = { .array = delimit_array, .used = 0, .size = 1 };
- f_string_ranges_t variable = bases;
- f_string_ranges_t vocabulary = bases;
+ f_ranges_t variable = bases;
+ f_ranges_t vocabulary = bases;
f_iki_data_t data = { .content = content, .delimits = delimits, .variable = variable, .vocabulary = vocabulary };
f_iki_data_t data_array[] = { data };
status = f_memory_array_resize(1, sizeof(f_iki_data_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].content.array, &datass.array[0].array[0].content.used, &datass.array[0].array[0].content.size);
assert_int_equal(status, F_okay);
status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array[0].delimits.array, &datass.array[0].array[0].delimits.used, &datass.array[0].array[0].delimits.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].variable.array, &datass.array[0].array[0].variable.used, &datass.array[0].array[0].variable.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].variable.array, &datass.array[0].array[0].variable.used, &datass.array[0].array[0].variable.size);
assert_int_equal(status, F_okay);
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array[0].vocabulary.array, &datass.array[0].array[0].vocabulary.used, &datass.array[0].array[0].vocabulary.size);
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array[0].vocabulary.array, &datass.array[0].array[0].vocabulary.used, &datass.array[0].array[0].vocabulary.size);
assert_int_equal(status, F_okay);
}
macro_f_string_static_t_initialize_1("xxxx'false'xxxx", 0, 15),
};
- const f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
+ const f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
};
for (uint8_t i = 0; i < 14; ++i) {
void test__f_iki_object_partial_is__returns_data_not(void **state) {
{
- const f_string_range_t range = f_string_range_t_initialize;
+ const f_range_t range = f_range_t_initialize;
const f_status_t status = f_iki_object_partial_is(f_string_empty_s, range);
void test__f_iki_object_partial_is__returns_data_not_eos(void **state) {
{
- const f_string_range_t range = macro_f_string_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
+ const f_range_t range = macro_f_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
const f_status_t status = f_iki_object_partial_is(f_string_ascii_a_s, range);
void test__f_iki_object_partial_is__returns_data_not_stop(void **state) {
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_iki_object_partial_is(f_string_ascii_a_s, range);
macro_f_string_static_t_initialize_1("xxxxw_-+sxxxx", 0, 13),
};
- const f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(4, 8),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 9),
- macro_f_string_range_t_initialize_1(4, 10),
- macro_f_string_range_t_initialize_1(4, 8),
+ const f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(4, 8),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 9),
+ macro_f_range_t_initialize_1(4, 10),
+ macro_f_range_t_initialize_1(4, 8),
};
for (uint8_t i = 0; i < 5; ++i) {
f_string_static_t empty = macro_f_string_static_t_initialize_1(f_string_empty_s.string, f_string_empty_s.size, f_string_empty_s.used);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_iki_data_t iki = f_iki_data_t_initialize;
f_iki_read(0, &range, &iki, &state_data);
}
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_iki_read(&empty, &range, 0, &state_data);
f_string_static_t empty = macro_f_string_static_t_initialize_1(f_string_empty_s.string, f_string_empty_s.size, f_string_empty_s.used);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_iki_data_t iki = f_iki_data_t_initialize;
f_iki_read(&empty, &range, &iki, &state_data);
f_string_static_t ascii_a = macro_f_string_static_t_initialize_1(f_string_ascii_a_s.string, f_string_ascii_a_s.size, f_string_ascii_a_s.used);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
+ f_range_t range = macro_f_range_t_initialize_1(f_string_ascii_a_s.used, f_string_ascii_a_s.used);
f_iki_data_t iki = f_iki_data_t_initialize;
f_iki_read(&ascii_a, &range, &iki, &state_data);
f_string_static_t ascii_a = macro_f_string_static_t_initialize_1(f_string_ascii_a_s.string, f_string_ascii_a_s.size, f_string_ascii_a_s.used);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_iki_data_t iki = f_iki_data_t_initialize;
f_iki_read(&ascii_a, &range, &iki, &state_data);
F_okay,
};
- const f_string_range_t variables[][22] = {
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 8), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 12), macro_f_string_range_t_initialize_1(14, 33) },
- { macro_f_string_range_t_initialize_1(0, 8), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 12), macro_f_string_range_t_initialize_1(14, 33) },
- { macro_f_string_range_t_initialize_1(24, 36), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(24, 36), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 23), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 23), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 42), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 42), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 43), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 43), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 66), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 66), f_string_range_t_initialize },
+ const f_range_t variables[][22] = {
+ { f_range_t_initialize, f_range_t_initialize },
+ { f_range_t_initialize, f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 8), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 12), macro_f_range_t_initialize_1(14, 33) },
+ { macro_f_range_t_initialize_1(0, 8), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 12), macro_f_range_t_initialize_1(14, 33) },
+ { macro_f_range_t_initialize_1(24, 36), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(24, 36), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 23), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 23), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 42), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 42), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 43), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 43), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 66), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 66), f_range_t_initialize },
};
- const f_string_range_t vocabularys[][22] = {
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 2), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 6), macro_f_string_range_t_initialize_1(14, 16) },
- { macro_f_string_range_t_initialize_1(0, 2), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 6), macro_f_string_range_t_initialize_1(14, 16) },
- { macro_f_string_range_t_initialize_1(24, 27), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(24, 27), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 11), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 9), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 11), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 9), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(4, 10), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 2), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(0, 2), f_string_range_t_initialize },
+ const f_range_t vocabularys[][22] = {
+ { f_range_t_initialize, f_range_t_initialize },
+ { f_range_t_initialize, f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 2), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 6), macro_f_range_t_initialize_1(14, 16) },
+ { macro_f_range_t_initialize_1(0, 2), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 6), macro_f_range_t_initialize_1(14, 16) },
+ { macro_f_range_t_initialize_1(24, 27), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(24, 27), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 11), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 9), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 11), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 9), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(4, 10), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 2), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(0, 2), f_range_t_initialize },
};
- const f_string_range_t contents[][22] = {
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { f_string_range_t_initialize, f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 7), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(9, 11), macro_f_string_range_t_initialize_1(19, 32) },
- { macro_f_string_range_t_initialize_1(5, 7), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(9, 11), macro_f_string_range_t_initialize_1(19, 32) },
- { macro_f_string_range_t_initialize_1(30, 35), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(30, 35), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(14, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(12, 20), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 21), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(14, 22), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(12, 20), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 41), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 41), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 42), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(13, 42), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 65), f_string_range_t_initialize },
- { macro_f_string_range_t_initialize_1(5, 65), f_string_range_t_initialize },
+ const f_range_t contents[][22] = {
+ { f_range_t_initialize, f_range_t_initialize },
+ { f_range_t_initialize, f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 7), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(9, 11), macro_f_range_t_initialize_1(19, 32) },
+ { macro_f_range_t_initialize_1(5, 7), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(9, 11), macro_f_range_t_initialize_1(19, 32) },
+ { macro_f_range_t_initialize_1(30, 35), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(30, 35), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(14, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(12, 20), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 21), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(14, 22), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(12, 20), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 41), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 41), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 42), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(13, 42), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 65), f_range_t_initialize },
+ { macro_f_range_t_initialize_1(5, 65), f_range_t_initialize },
};
for (uint8_t i = 0; i < 22; ++i) {
- f_string_range_t range = macro_f_string_range_t_initialize_2(buffers[i].used);
+ f_range_t range = macro_f_range_t_initialize_2(buffers[i].used);
f_iki_data_t iki = f_iki_data_t_initialize;
f_iki_read(&buffers[i], &range, &iki, &state_data);
#endif // _di_f_network_from_ip_string_
#ifndef _di_f_network_is_ip_address_
- void f_network_is_ip_address(const f_string_static_t address, f_string_range_double_t * const where, f_state_t * const state) {
+ void f_network_is_ip_address(const f_string_static_t address, f_range_double_t * const where, f_state_t * const state) {
if (!state) return;
uint8_t flag = 0x0; // 0x1 == is IPv6.
uint8_t set = 0;
uint8_t count = 0;
- f_string_range_double_t at = f_string_range_double_t_initialize;
+ f_range_double_t at = f_range_double_t_initialize;
for (; i < address.used; ++i) {
* F_interrupt (with or without error bit) if stopping due to an interrupt.
*/
#ifndef _di_f_network_is_ip_address_
- extern void f_network_is_ip_address(const f_string_static_t address, f_string_range_double_t * const where, f_state_t * const state);
+ extern void f_network_is_ip_address(const f_string_static_t address, f_range_double_t * const where, f_state_t * const state);
#endif // _di_f_network_is_ip_address_
/**
#endif
#ifndef _di_f_parse_dynamic_seek_line_to_utf_character_
- f_status_t f_parse_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_parse_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_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_
#endif // _di_f_parse_dynamic_seek_line_to_utf_character_
#ifndef _di_f_parse_dynamic_seek_line_until_graph_
- f_status_t f_parse_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range) {
+ f_status_t f_parse_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_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_
#endif // _di_f_parse_dynamic_seek_line_until_graph_
#ifndef _di_f_parse_dynamic_seek_line_until_graph_non_
- f_status_t f_parse_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range) {
+ f_status_t f_parse_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_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_
#endif // _di_f_parse_dynamic_seek_line_until_graph_non_
#ifndef _di_f_parse_dynamic_seek_to_utf_character_
- f_status_t f_parse_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_parse_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_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_
#endif // _di_f_parse_dynamic_seek_to_utf_character_
#ifndef _di_f_parse_dynamic_partial_fll_identify_
- f_status_t f_parse_dynamic_partial_fll_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_id_t * const id) {
+ f_status_t f_parse_dynamic_partial_fll_identify(const f_string_static_t buffer, f_range_t * const range, f_fll_id_t * const id) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_parse_dynamic_partial_fll_identify_
#ifndef _di_f_parse_seek_line_to_utf_character_
- f_status_t f_parse_seek_line_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_parse_seek_line_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_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_
#endif // _di_f_parse_seek_line_to_utf_character_
#ifndef _di_f_parse_seek_line_until_graph_
- f_status_t f_parse_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range) {
+ f_status_t f_parse_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_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_
#endif // _di_f_parse_seek_line_until_graph_
#ifndef _di_f_parse_seek_line_until_graph_non_
- f_status_t f_parse_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range) {
+ f_status_t f_parse_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_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_
#endif // _di_f_parse_seek_line_until_graph_non_
#ifndef _di_f_parse_seek_to_utf_character_
- f_status_t f_parse_seek_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_parse_seek_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_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_
* @see f_utf_char_to_character()
*/
#ifndef _di_f_parse_dynamic_seek_line_to_utf_character_
- extern f_status_t f_parse_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_parse_dynamic_seek_line_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_range_t * const range);
#endif // _di_f_parse_dynamic_seek_line_to_utf_character_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_f_parse_dynamic_seek_line_until_graph_
- extern f_status_t f_parse_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range);
+ extern f_status_t f_parse_dynamic_seek_line_until_graph(const f_string_static_t buffer, const uint8_t placeholder, f_range_t * const range);
#endif // _di_f_parse_dynamic_seek_line_until_graph_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_f_parse_dynamic_seek_line_until_graph_non_
- extern f_status_t f_parse_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_string_range_t * const range);
+ extern f_status_t f_parse_dynamic_seek_line_until_graph_non(const f_string_static_t buffer, const uint8_t placeholder, f_range_t * const range);
#endif // _di_f_parse_dynamic_seek_line_until_graph_non_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_f_parse_dynamic_seek_to_utf_character_
- extern f_status_t f_parse_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_parse_dynamic_seek_to_utf_character(const f_string_static_t buffer, const f_utf_char_t seek_to_this, f_range_t * const range);
#endif // _di_f_parse_dynamic_seek_to_utf_character_
/**
* @see f_utf_is_word()
*/
#ifndef _di_f_parse_dynamic_partial_fll_identify_
- extern f_status_t f_parse_dynamic_partial_fll_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_id_t * const id);
+ extern f_status_t f_parse_dynamic_partial_fll_identify(const f_string_static_t buffer, f_range_t * const range, f_fll_id_t * const id);
#endif // _di_f_parse_dynamic_partial_fll_identify_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_f_parse_seek_line_to_utf_character_
- extern f_status_t f_parse_seek_line_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_parse_seek_line_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_parse_seek_line_to_utf_character_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_f_parse_seek_line_until_graph_
- extern f_status_t f_parse_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range);
+ extern f_status_t f_parse_seek_line_until_graph(const f_string_t string, const uint8_t placeholder, f_range_t * const range);
#endif // _di_f_parse_seek_line_until_graph_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_parse_seek_line_until_graph_non_
- extern f_status_t f_parse_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_string_range_t * const range);
+ extern f_status_t f_parse_seek_line_until_graph_non(const f_string_t string, const uint8_t placeholder, f_range_t * const range);
#endif // _di_f_parse_seek_line_until_graph_non_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_f_parse_seek_to_utf_character_
- extern f_status_t f_parse_seek_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_parse_seek_to_utf_character(const f_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_parse_seek_to_utf_character_
#ifdef __cplusplus
#endif
#ifndef _di_f_parse_utf_dynamic_seek_line_to_char_
- f_status_t f_parse_utf_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this) {
+ f_status_t f_parse_utf_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_range_t * const range, const f_char_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_f_parse_utf_dynamic_seek_line_to_char_
#ifndef _di_f_parse_utf_dynamic_seek_line_until_graph_
- f_status_t f_parse_utf_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_char_t placeholder) {
+ f_status_t f_parse_utf_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_range_t * const range, const f_utf_char_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_f_parse_utf_dynamic_seek_line_until_graph_
#ifndef _di_f_parse_utf_dynamic_seek_line_until_graph_non_
- f_status_t f_parse_utf_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_char_t placeholder) {
+ f_status_t f_parse_utf_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_range_t * const range, const f_utf_char_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_f_parse_utf_dynamic_seek_line_until_graph_non_
#ifndef _di_f_parse_utf_dynamic_seek_to_char_
- f_status_t f_parse_utf_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this) {
+ f_status_t f_parse_utf_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_range_t * const range, const f_char_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_f_parse_utf_dynamic_seek_to_char_
#ifndef _di_f_parse_utf_seek_line_to_char_
- f_status_t f_parse_utf_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this) {
+ f_status_t f_parse_utf_seek_line_to_char(const f_utf_string_t string, f_range_t * const range, const f_char_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_f_parse_utf_seek_line_to_char_
#ifndef _di_f_parse_utf_seek_line_until_graph_
- f_status_t f_parse_utf_seek_line_until_graph(const f_utf_string_t string, f_string_range_t * const range, const f_utf_char_t placeholder) {
+ f_status_t f_parse_utf_seek_line_until_graph(const f_utf_string_t string, f_range_t * const range, const f_utf_char_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_f_parse_utf_seek_line_until_graph_
#ifndef _di_f_parse_utf_seek_line_until_graph_non_
- f_status_t f_parse_utf_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t * const range, const f_utf_char_t placeholder) {
+ f_status_t f_parse_utf_seek_line_until_graph_non(const f_utf_string_t string, f_range_t * const range, const f_utf_char_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_f_parse_utf_seek_line_until_graph_non_
#ifndef _di_f_parse_utf_seek_to_char_
- f_status_t f_parse_utf_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this) {
+ f_status_t f_parse_utf_seek_to_char(const f_utf_string_t string, f_range_t * const range, const f_char_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_utf_fragment (with error bit) if character is a UTF-8 fragment.
*/
#ifndef _di_f_parse_utf_dynamic_seek_line_to_char_
- extern f_status_t f_parse_utf_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this);
+ extern f_status_t f_parse_utf_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_range_t * const range, const f_char_t seek_to_this);
#endif // _di_f_parse_utf_dynamic_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_f_parse_utf_dynamic_seek_line_until_graph_
- extern f_status_t f_parse_utf_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_char_t placeholder);
+ extern f_status_t f_parse_utf_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_range_t * const range, const f_utf_char_t placeholder);
#endif // _di_f_parse_utf_dynamic_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_f_parse_utf_dynamic_seek_line_until_graph_non_
- extern f_status_t f_parse_utf_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_utf_char_t placeholder);
+ extern f_status_t f_parse_utf_dynamic_seek_line_until_graph_non(const f_utf_string_static_t buffer, f_range_t * const range, const f_utf_char_t placeholder);
#endif // _di_f_parse_utf_dynamic_seek_line_until_graph_non_
/**
* F_utf_fragment (with error bit) if character is a UTF-8 fragment.
*/
#ifndef _di_f_parse_utf_dynamic_seek_to_char_
- extern f_status_t f_parse_utf_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this);
+ extern f_status_t f_parse_utf_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_range_t * const range, const f_char_t seek_to_this);
#endif // _di_f_parse_utf_dynamic_seek_to_char_
/**
* F_utf_fragment (with error bit) if character is a UTF-8 fragment.
*/
#ifndef _di_f_parse_utf_seek_line_to_char_
- extern f_status_t f_parse_utf_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this);
+ extern f_status_t f_parse_utf_seek_line_to_char(const f_utf_string_t string, f_range_t * const range, const f_char_t seek_to_this);
#endif // _di_f_parse_utf_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_f_parse_utf_seek_line_until_graph_
- extern f_status_t f_parse_utf_seek_line_until_graph(const f_utf_string_t string, f_string_range_t * const range, const f_utf_char_t placeholder);
+ extern f_status_t f_parse_utf_seek_line_until_graph(const f_utf_string_t string, f_range_t * const range, const f_utf_char_t placeholder);
#endif // _di_f_parse_utf_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_f_parse_utf_seek_line_until_graph_non_
- extern f_status_t f_parse_utf_seek_line_until_graph_non(const f_utf_string_t string, f_string_range_t * const range, const f_utf_char_t placeholder);
+ extern f_status_t f_parse_utf_seek_line_until_graph_non(const f_utf_string_t string, f_range_t * const range, const f_utf_char_t placeholder);
#endif // _di_f_parse_utf_seek_line_until_graph_non_
/**
* F_utf_fragment (with error bit) if character is a UTF-8 fragment.
*/
#ifndef _di_f_parse_utf_seek_to_character_
- extern f_status_t f_parse_utf_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this);
+ extern f_status_t f_parse_utf_seek_to_char(const f_utf_string_t string, f_range_t * const range, const f_char_t seek_to_this);
#endif // _di_fl_utf_string__seek_to_character_
#ifdef __cplusplus
#endif // _di_f_print_dynamic_
#ifndef _di_f_print_dynamic_partial_
- f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_dynamic_partial_
#ifndef _di_f_print_dynamic_partial_raw_
- f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_dynamic_partial_raw_
#ifndef _di_f_print_dynamic_partial_raw_safely_
- f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_dynamic_partial_raw_safely_
#ifndef _di_f_print_dynamic_partial_safely_
- f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_dynamic_
#ifndef _di_f_print_except_dynamic_partial_
- f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_dynamic_partial_
#ifndef _di_f_print_except_dynamic_partial_raw_
- f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_dynamic_partial_raw_
#ifndef _di_f_print_except_dynamic_partial_raw_safely_
- f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_dynamic_partial_raw_safely_
#ifndef _di_f_print_except_dynamic_partial_safely_
- f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_dynamic_safely_
#ifndef _di_f_print_except_in_
- f_status_t f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_except_in_
#ifndef _di_f_print_except_in_dynamic_
- f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_
#ifndef _di_f_print_except_in_dynamic_partial_
- f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_partial_
#ifndef _di_f_print_except_in_dynamic_partial_raw_
- f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_partial_raw_
#ifndef _di_f_print_except_in_dynamic_partial_raw_safely_
- f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_partial_raw_safely_
#ifndef _di_f_print_except_in_dynamic_partial_safely_
- f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_partial_safely_
#ifndef _di_f_print_except_in_dynamic_raw_
- f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_raw_
#ifndef _di_f_print_except_in_dynamic_raw_safely_
- f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_raw_safely_
#ifndef _di_f_print_except_in_dynamic_safely_
- f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_except_in_dynamic_safely_
#ifndef _di_f_print_except_in_raw_
- f_status_t f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_except_in_raw_
#ifndef _di_f_print_except_in_raw_safely_
- f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_except_in_raw_safely_
#ifndef _di_f_print_except_in_safely_
- f_status_t f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!length || !string) return F_data_not;
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_dynamic_partial_
- extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_dynamic_partial_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_dynamic_partial_raw_
- extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_dynamic_partial_raw_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_dynamic_partial_raw_safely_
- extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_dynamic_partial_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_dynamic_partial_safely_
- extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_dynamic_partial_safely_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_dynamic_partial_
- extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_except_dynamic_partial_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_dynamic_partial_raw_
- extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_except_dynamic_partial_raw_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_dynamic_partial_raw_safely_
- extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_except_dynamic_partial_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_dynamic_partial_safely_
- extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_except_dynamic_partial_safely_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_
- extern f_status_t f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_dynamic_
- extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_dynamic_partial_
- extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_partial_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_dynamic_partial_raw_
- extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_partial_raw_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_dynamic_partial_raw_safely_
- extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_partial_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_dynamic_partial_safely_
- extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_partial_safely_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_dynamic_raw_
- extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_raw_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_dynamic_raw_safely_
- extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_dynamic_safely_
- extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_dynamic_safely_
/**
* @see fwrite_unlocked()
*/
#ifndef _di_f_print_except_in_raw_
- extern f_status_t f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_raw_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_raw_safely_
- extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_except_in_safely_
- extern f_status_t f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_except_in_safely_
/**
* - exponent_either: Use either exponent or decimila for printing double values.
* - exponent_upper: When using exponent, display the exponent 'e' as uppercase 'E'.
* - ignore_index: ";", Ignore characters in the given positions from a f_number_unsigned_t (only applies to static/dynamic string arguments but not character arguments).
- * - ignore_range: ":", Ignore characters in the given ranges from a f_string_range_t (only applies to static/dynamic string arguments but not character arguments).
+ * - ignore_range: ":", Ignore characters in the given ranges from a f_range_t (only applies to static/dynamic string arguments but not character arguments).
* - precision: ".*", Designates that a precision is in use.
* - precision_value: Designates that a precision is specified in the function value (parameter).
- * - range: "/", Print only the given range of a string, specified by f_string_range_t (only applies to static/dynamic string arguments but not character arguments).
+ * - range: "/", Print only the given range of a string, specified by f_range_t (only applies to static/dynamic string arguments but not character arguments).
* - sign_always: "+", Always show the signs (+ or -).
* - sign_pad: " ", Add a space where a sign would be if the sign is not displayed.
* - trim: "=", Trim leading and trailing whitespaces (only applies to static/dynamic string arguments but not character arguments).
#endif // !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_safely_)
#if !defined(_di_f_print_to_except_in_) || !defined(_di_f_print_to_except_in_dynamic_) || !defined(_di_f_print_to_except_in_dynamic_partial_)
- f_status_t private_f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const int id) {
+ f_status_t private_f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const int id) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_to_except_in_) || !defined(_di_f_print_to_except_in_dynamic_) || !defined(_di_f_print_to_except_in_dynamic_partial_)
#if !defined(_di_f_print_to_except_in_raw_) || !defined(_di_f_print_to_except_in_dynamic_raw_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_)
- f_status_t private_f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const int id) {
+ f_status_t private_f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const int id) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_to_except_in_raw_) || !defined(_di_f_print_to_except_in_dynamic_raw_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_)
#if !defined(_di_f_print_to_except_in_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_safely_)
- f_status_t private_f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const int id) {
+ f_status_t private_f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const int id) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_to_except_in_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_safely_)
#if !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
- f_status_t private_f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const int id) {
+ f_status_t private_f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const int id) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
* @see f_print_to_except_in_dynamic_partial()
*/
#if !defined(_di_f_print_to_except_in_) || !defined(_di_f_print_to_except_dynamic_in_) || !defined(_di_f_print_to_except_in_dynamic_partial_)
- extern f_status_t private_f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_to_except_in_) || !defined(_di_f_print_to_except_dynamic_in_) || !defined(_di_f_print_to_except_in_dynamic_partial_)
/**
* @see f_print_to_except_in_dynamic_partial_raw()
*/
#if !defined(_di_f_print_to_except_in_raw_) || !defined(_di_f_print_to_except_dynamic_in_raw_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_)
- extern f_status_t private_f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_to_except_in_raw_) || !defined(_di_f_print_to_except_dynamic_in_raw_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_)
/**
* @see f_utf_is_valid()
*/
#if !defined(_di_f_print_to_except_in_raw_safely_) || !defined(_di_f_print_to_except_dynamic_in_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_safely_)
- extern f_status_t private_f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_to_except_in_raw_safely_) || !defined(_di_f_print_to_except_dynamic_in_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_safely_)
/**
* @see f_utf_is_valid()
*/
#if !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_dynamic_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
- extern f_status_t private_f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const int id) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_dynamic_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
/**
#endif // _di_f_print_to_dynamic_
#ifndef _di_f_print_to_dynamic_partial_
- f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_dynamic_partial_
#ifndef _di_f_print_to_dynamic_partial_raw_
- f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_dynamic_partial_raw_
#ifndef _di_f_print_to_dynamic_partial_raw_safely_
- f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_dynamic_partial_raw_safely_
#ifndef _di_f_print_to_dynamic_partial_safely_
- f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_dynamic_
#ifndef _di_f_print_to_except_dynamic_partial_
- f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_dynamic_partial_
#ifndef _di_f_print_to_except_dynamic_partial_raw_
- f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_dynamic_partial_raw_
#ifndef _di_f_print_to_except_dynamic_partial_raw_safely_
- f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_dynamic_partial_raw_safely_
#ifndef _di_f_print_to_except_dynamic_partial_safely_
- f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_dynamic_safely_
#ifndef _di_f_print_to_except_in_
- f_status_t f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_to_except_in_
#ifndef _di_f_print_to_except_in_dynamic_
- f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.string || !buffer.used) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_
#ifndef _di_f_print_to_except_in_dynamic_partial_
- f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_in_dynamic_partial_
#ifndef _di_f_print_to_except_in_dynamic_partial_raw_
- f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) {
#endif // _di_f_print_to_except_in_dynamic_partial_raw_
#ifndef _di_f_print_to_except_in_dynamic_partial_raw_safely_
- f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_partial_raw_safely_
#ifndef _di_f_print_to_except_in_dynamic_partial_safely_
- f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_partial_safely_
#ifndef _di_f_print_to_except_in_dynamic_raw_
- f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_raw_
#ifndef _di_f_print_to_except_in_dynamic_raw_safely_
- f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_raw_safely_
#ifndef _di_f_print_to_except_in_dynamic_safely_
- f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!buffer.used || !buffer.string) return F_data_not;
#endif // _di_f_print_to_except_in_dynamic_safely_
#ifndef _di_f_print_to_except_in_raw_
- f_status_t f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_to_except_in_raw_
#ifndef _di_f_print_to_except_in_raw_safely_
- f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!length || !string) return F_data_not;
#endif // _di_f_print_to_except_in_raw_safely_
#ifndef _di_f_print_to_except_in_safely_
- f_status_t f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (file.id == -1) return F_file_descriptor_not;
if (!length || !string) return F_data_not;
* @see write()
*/
#ifndef _di_f_print_to_dynamic_partial_
- extern f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_to_dynamic_partial_
/**
* @see write()
*/
#ifndef _di_f_print_to_dynamic_partial_raw_
- extern f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_to_dynamic_partial_raw_
/**
* @see write()
*/
#ifndef _di_f_print_to_dynamic_partial_raw_safely_
- extern f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_to_dynamic_partial_raw_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_dynamic_partial_safely_
- extern f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_f_print_to_dynamic_partial_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_partial_
- extern f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_to_except_dynamic_partial_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_partial_raw_
- extern f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_to_except_dynamic_partial_raw_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_partial_raw_safely_
- extern f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_to_except_dynamic_partial_raw_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_partial_safely_
- extern f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_f_print_to_except_dynamic_partial_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_
- extern f_status_t f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_
- extern f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_partial_
- extern f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_partial_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_partial_raw_
- extern f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_partial_raw_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_partial_raw_safely_
- extern f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_partial_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_to_except_in_dynamic_partial_safely_
- extern f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_partial_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_raw_
- extern f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_raw_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_dynamic_raw_safely_
- extern f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_to_except_in_dynamic_safely_
- extern f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_dynamic_safely_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_raw_
- extern f_status_t f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_raw_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_in_raw_safely_
- extern f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_raw_safely_
/**
* @see f_utf_is_valid()
*/
#ifndef _di_f_print_to_except_in_safely_
- extern f_status_t f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t f_print_to_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_f_print_to_except_in_safely_
/**
#endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_)
#if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_)
- f_status_t private_f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_)
#if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_)
- f_status_t private_f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_)
#if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_)
- f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
#endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_)
#if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_)
- f_status_t private_f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t at = 0;
* @see f_print_except_in_dynamic_partial()
*/
#if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_)
- extern f_status_t private_f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_)
/**
* @see f_print_except_in_dynamic_partial_raw()
*/
#if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_)
- extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_)
/**
* @see f_print_except_in_dynamic_partial_raw_safely()
*/
#if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_)
- extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_)
/**
* @see f_print_except_in_dynamic_partial_safely()
*/
#if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_)
- extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_)
/**
void test__f_print_dynamic_partial__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial__returns_stream_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw__returns_stream_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw_safely__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw_safely__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw_safely__returns_stream_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_safely__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_safely__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_safely__returns_stream_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_except_in_dynamic_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_fwrite_unlocked, false);
will_return(__wrap_fwrite_unlocked, 1);
void test__f_print_to_dynamic_partial__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_dynamic_partial__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial__returns_file_descriptor_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_dynamic_partial_raw__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw__returns_file_descriptor_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw_safely__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_dynamic_partial_raw_safely__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw_safely__returns_file_descriptor_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_safely__fails(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_dynamic_partial_safely__returns_data_not(void **state) {
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_safely__returns_file_descriptor_not(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_dynamic_partial__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_dynamic_partial_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_dynamic_partial_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_dynamic_partial_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_partial__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_in_dynamic_partial__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_partial_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_in_dynamic_partial_raw__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_partial_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_in_dynamic_partial_raw_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
will_return(__wrap_write, false);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_partial_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_ranges_t range = f_ranges_t_initialize;
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
void test__f_print_to_except_in_dynamic_partial_safely__works(void **state) {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(0, 2);
+ const f_range_t partial = macro_f_range_t_initialize_1(0, 2);
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_raw__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_raw_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
void test__f_print_to_except_in_dynamic_safely__returns_data_not(void **state) {
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
int errnos[] = {
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d);
{
const f_string_static_t test = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
const f_file_t output = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d);
{
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
const f_number_unsigneds_t except = f_number_unsigneds_t_initialize;
- const f_string_ranges_t range = f_string_ranges_t_initialize;
+ const f_ranges_t range = f_ranges_t_initialize;
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
{
f_number_unsigned_t lengths[] = { 3 };
- f_string_range_t ranges[] = {
- macro_f_string_range_t_initialize_1(0, 1),
+ f_range_t ranges[] = {
+ macro_f_range_t_initialize_1(0, 1),
};
const f_number_unsigneds_t except = macro_f_number_unsigneds_t_initialize_1(lengths, 0, 1);
- const f_string_ranges_t range = macro_f_string_ranges_t_initialize_1(ranges, 0, 1);
+ const f_ranges_t range = macro_f_ranges_t_initialize_1(ranges, 0, 1);
will_return(__wrap_write, false);
will_return(__wrap_write, test.used);
#endif // _di_f_rip_nulless_
#ifndef _di_f_rip_dynamic_partial_
- f_status_t f_rip_dynamic_partial(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_rip_dynamic_partial(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_rip_dynamic_partial_
#ifndef _di_f_rip_dynamic_partial_nulless_
- f_status_t f_rip_dynamic_partial_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_rip_dynamic_partial_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_rip_dynamic_partial_
- extern f_status_t f_rip_dynamic_partial(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_rip_dynamic_partial(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_rip_dynamic_partial_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_rip_dynamic_partial_nulless_
- extern f_status_t f_rip_dynamic_partial_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_rip_dynamic_partial_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_rip_dynamic_partial_nulless_
#ifdef __cplusplus
#endif // _di_f_rip_utf_
#ifndef _di_f_rip_utf_dynamic_
- f_status_t f_rip_utf_dynamic(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_rip_utf_dynamic(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_f_rip_utf_dynamic_
#ifndef _di_f_rip_utf_dynamic_nulless_
- f_status_t f_rip_utf_dynamic_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_rip_utf_dynamic_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
* @see f_utf_string_append()
*/
#ifndef _di_f_rip_utf_dynamic_
- extern f_status_t f_rip_utf_dynamic(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_rip_utf_dynamic(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_rip_utf_dynamic_
/**
* @see f_utf_string_append_nulless()
*/
#ifndef _di_f_rip_utf_dynamic_nulless_
- extern f_status_t f_rip_utf_dynamic_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_rip_utf_dynamic_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_rip_utf_dynamic_nulless_
/**
#endif
#if !defined(_di_f_serialize_from_simple_get_) || !defined(_di_f_serialize_from_simple_select_)
- f_status_t private_f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_string_range_t * const range) {
+ f_status_t private_f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_range_t * const range) {
f_number_unsigned_t start = 0;
f_number_unsigned_t current = 0;
* F_parameter (with error bit) if a parameter is invalid.
*/
#if !defined(_di_f_serialize_from_simple_get_) || !defined(_di_f_serialize_from_simple_select_)
- extern f_status_t private_f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_string_range_t * const range) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_range_t * const range) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_serialize_from_simple_get_) || !defined(_di_f_serialize_from_simple_select_)
#ifdef __cplusplus
if (!source.used) return F_data_not;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_status_t status = private_f_serialize_from_simple_select(source, index, &range);
if (F_status_is_error(status)) return status;
#endif // _di_f_serialize_from_simple_get_
#ifndef _di_f_serialize_from_simple_range_
- f_status_t f_serialize_from_simple_range(const f_string_static_t source, f_string_ranges_t * const ranges) {
+ f_status_t f_serialize_from_simple_range(const f_string_static_t source, f_ranges_t * const ranges) {
#ifndef _di_level_0_parameter_checking_
if (!ranges) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (i + width > source.used) {
total = i - start;
- status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
if (F_status_is_error(status)) return status;
if (total) {
if (source.string[i] == f_serialize_to_simple_splitter_s.string[0]) {
total = i - start;
- status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
if (F_status_is_error(status)) return status;
if (total) {
// Handle case when splitter as at the end of the string, creating a new empty string.
if (start == source.used) {
- status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
if (F_status_is_error(status)) return status;
ranges->array[ranges->used].start = 1;
if (start < source.used) {
total = source.used - start;
- status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
+ status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_t), (void **) &ranges->array, &ranges->used, &ranges->size);
if (F_status_is_error(status)) return status;
if (total) {
#endif // _di_f_serialize_from_simple_range_
#ifndef _di_f_serialize_from_simple_select_
- f_status_t f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_string_range_t * const range) {
+ f_status_t f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_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_
* @see f_memory_array_increase()
*/
#ifndef _di_f_serialize_from_simple_range_
- extern f_status_t f_serialize_from_simple_range(const f_string_static_t source, f_string_ranges_t * const ranges);
+ extern f_status_t f_serialize_from_simple_range(const f_string_static_t source, f_ranges_t * const ranges);
#endif // _di_f_serialize_from_simple_range_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_from_simple_select_
- extern f_status_t f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_string_range_t * const range);
+ extern f_status_t f_serialize_from_simple_select(const f_string_static_t source, const f_number_unsigned_t index, f_range_t * const range);
#endif // _di_f_serialize_from_simple_select_
/**
const f_string_static_t source = f_string_static_t_initialize;
- f_string_ranges_t ranges = f_string_ranges_t_initialize;
+ f_ranges_t ranges = f_ranges_t_initialize;
{
const f_status_t status = f_serialize_from_simple_range(source, &ranges);
macro_f_string_static_t_initialize_1("им:?", 0, 6),
};
- f_string_range_t expected_array_0[] = { { 0, 0 } };
- f_string_range_t expected_array_1[] = { { 0, 4 } };
- f_string_range_t expected_array_2[] = { { 0, 0 }, { 1, 0 } };
- f_string_range_t expected_array_3[] = { { 1, 0 }, { 1, 2 } };
- f_string_range_t expected_array_4[] = { { 0, 4 }, { 6, 6 }, { 1, 0 }, { 9, 11 } };
- f_string_range_t expected_array_5[] = { { 0, 3 }, { 5, 7 } };
- f_string_range_t expected_array_6[] = { { 0, 3 }, { 5, 5 } };
+ f_range_t expected_array_0[] = { { 0, 0 } };
+ f_range_t expected_array_1[] = { { 0, 4 } };
+ f_range_t expected_array_2[] = { { 0, 0 }, { 1, 0 } };
+ f_range_t expected_array_3[] = { { 1, 0 }, { 1, 2 } };
+ f_range_t expected_array_4[] = { { 0, 4 }, { 6, 6 }, { 1, 0 }, { 9, 11 } };
+ f_range_t expected_array_5[] = { { 0, 3 }, { 5, 7 } };
+ f_range_t expected_array_6[] = { { 0, 3 }, { 5, 5 } };
- f_string_ranges_t expecteds[] = {
+ f_ranges_t expecteds[] = {
macro_f_string_statics_t_initialize_1(expected_array_0, 0, 1),
macro_f_string_statics_t_initialize_1(expected_array_1, 0, 1),
macro_f_string_statics_t_initialize_1(expected_array_2, 0, 2),
macro_f_string_statics_t_initialize_1(expected_array_6, 0, 2),
};
- f_string_ranges_t ranges = f_string_ranges_t_initialize;
+ f_ranges_t ranges = f_ranges_t_initialize;
for (uint8_t i = 0; i < 7; ++i) {
void test__f_serialize_from_simple_select__returns_data_not(void **state) {
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
{
const f_status_t status = f_serialize_from_simple_select(f_string_empty_s, 0, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test:2::other:им:è ‡:м:", 0, 26);
- const f_string_range_t ranges[] = {
+ const f_range_t ranges[] = {
{ 0, 3 },
{ 5, 5 },
{ 1, 0 },
for (uint8_t i = 0; i < 8; ++i) {
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_serialize_from_simple_select(source, i, &range);
#endif // _di_f_string_prepend_nulless_
#ifndef _di_f_string_seek_line_
- f_status_t f_string_seek_line(const f_string_t string, f_string_range_t *range) {
+ f_status_t f_string_seek_line(const f_string_t string, f_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_seek_line_
#ifndef _di_f_string_seek_line_to_
- f_status_t f_string_seek_line_to(const f_string_t string, const f_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_string_seek_line_to(const f_string_t string, const f_char_t seek_to, f_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_
#endif // _di_f_string_seek_line_to_
#ifndef _di_f_string_seek_to_
- f_status_t f_string_seek_to(const f_string_t string, const f_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_string_seek_to(const f_string_t string, const f_char_t seek_to, f_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_
// FLL-0 string includes.
#include <fll/level_0/string/common.h>
-#include <fll/level_0/string/range.h>
-#include <fll/level_0/string/ranges.h>
-#include <fll/level_0/string/rangess.h>
-#include <fll/level_0/string/range_double.h>
-#include <fll/level_0/string/range_doubles.h>
-#include <fll/level_0/string/range_doubless.h>
#include <fll/level_0/string/static.h>
#include <fll/level_0/string/statics.h>
#include <fll/level_0/string/staticss.h>
* @see f_memory_resize()
*/
#ifndef _di_f_string_seek_line_
- extern f_status_t f_string_seek_line(const f_string_t string, f_string_range_t * const range);
+ extern f_status_t f_string_seek_line(const f_string_t string, f_range_t * const range);
#endif // _di_f_string_seek_line_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_seek_line_to_
- extern f_status_t f_string_seek_line_to(const f_string_t string, const f_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_string_seek_line_to(const f_string_t string, const f_char_t seek_to, f_range_t * const range);
#endif // _di_f_string_seek_line_to_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_string_seek_to_
- extern f_status_t f_string_seek_to(const f_string_t string, const f_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_string_seek_to(const f_string_t string, const f_char_t seek_to, f_range_t * const range);
#endif // _di_f_string_seek_to_
#ifdef __cplusplus
#endif // _di_f_string_dynamic_mish_nulless_
#ifndef _di_f_string_dynamic_partial_append_
- f_status_t f_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_append(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_append_
#ifndef _di_f_string_dynamic_partial_append_assure_
- f_status_t f_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_append_assure(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_append_assure_
#ifndef _di_f_string_dynamic_partial_append_assure_nulless_
- f_status_t f_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_append_assure_nulless_
#ifndef _di_f_string_dynamic_partial_append_nulless_
- f_status_t f_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_append_nulless_
#ifndef _di_f_string_dynamic_partial_mash_
- f_status_t f_string_dynamic_partial_mash(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_mash(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_mash_
#ifndef _di_f_string_dynamic_partial_mash_nulless_
- f_status_t f_string_dynamic_partial_mash_nulless(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_mash_nulless(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_mash_nulless_
#ifndef _di_f_string_dynamic_partial_mish_
- f_status_t f_string_dynamic_partial_mish(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_mish(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_mish_
#ifndef _di_f_string_dynamic_partial_mish_nulless_
- f_status_t f_string_dynamic_partial_mish_nulless(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_mish_nulless(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_mish_nulless_
#ifndef _di_f_string_dynamic_partial_prepend_
- f_status_t f_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_prepend(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_prepend_
#ifndef _di_f_string_dynamic_partial_prepend_assure_
- f_status_t f_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_prepend_assure_
#ifndef _di_f_string_dynamic_partial_prepend_assure_nulless_
- f_status_t f_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_partial_prepend_assure_nulless
#ifndef _di_f_string_dynamic_partial_prepend_nulless_
- f_status_t f_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination) {
+ f_status_t f_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_string_dynamic_prepend_nulless_
#ifndef _di_f_string_dynamic_seek_line_
- f_status_t f_string_dynamic_seek_line(const f_string_static_t structure, f_string_range_t * const range) {
+ f_status_t f_string_dynamic_seek_line(const f_string_static_t structure, f_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_
#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 structure, 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_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_
#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 structure, 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_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_
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_append_
- extern f_status_t f_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_append(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_append_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_append_assure_
- extern f_status_t f_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_append_assure(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_append_assure_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_append_assure_nulless_
- extern f_status_t f_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_append_assure_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_append_nulless_
- extern f_status_t f_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_append_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_mash_
- extern f_status_t f_string_dynamic_partial_mash(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_mash(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_mash_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_mash_nulless_
- extern f_status_t f_string_dynamic_partial_mash_nulless(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_mash_nulless(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_mash_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_mish_
- extern f_status_t f_string_dynamic_partial_mish(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_mish(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_mish_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_mish_nulless_
- extern f_status_t f_string_dynamic_partial_mish_nulless(const f_string_static_t glue, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_mish_nulless(const f_string_static_t glue, const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_mish_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_prepend_
- extern f_status_t f_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_prepend(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_prepend_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_prepend_assure_
- extern f_status_t f_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_prepend_assure_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_prepend_assure_nulless_
- extern f_status_t f_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_prepend_assure_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_string_dynamic_partial_prepend_nulless_
- extern f_status_t f_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t * const destination);
+ extern f_status_t f_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_range_t range, f_string_dynamic_t * const destination);
#endif // _di_f_string_dynamic_partial_prepend_nulless_
/**
* 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 structure, f_string_range_t * const range);
+ extern f_status_t f_string_dynamic_seek_line(const f_string_static_t structure, f_range_t * const range);
#endif // _di_f_string_dynamic_seek_line_
/**
* 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 structure, 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_range_t * const range);
#endif // _di_f_string_dynamic_seek_line_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 structure, 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_range_t * const range);
#endif // _di_f_string_dynamic_seek_to_
/**
/**
* Store string quantity.
*
- * Similar to f_string_range_t, except total is relative to start and is not an absolute stop position.
+ * Similar to f_range_t, except total is relative to start and is not an absolute stop position.
*
* Two common uses for when total is 0 is:
* 1) Exactly that, process a total of 0 strings bytes.
+++ /dev/null
-#include "../string.h"
-#include "../private-string.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef _di_f_string_range_empty_c_
- const f_string_range_t f_string_range_empty_c = { 1, 0 };
-#endif // _di_f_string_range_empty_c_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Defines range string data.
- *
- * This is auto-included by string.h and should not need to be explicitly included.
- */
-#ifndef _F_string_range_h
-#define _F_string_range_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * A structure designating a start and stop range for some string.
- *
- * In general, this project uses the start and stop position inclusively, meaning that a range of 0 to 1 would include positions 0 and position 1.
- * Therefore, a range from 0 to 0 would be include position 0.
- * Set start to some value larger than stop to designate that there is no range (such as start = 1, stop = 0).
- *
- * Properties:
- * - start: The start position.
- * - stop: The stop position.
- */
-#ifndef _di_f_string_range_t_
- typedef struct {
- f_number_unsigned_t start;
- f_number_unsigned_t stop;
- } f_string_range_t;
-
- #define f_string_range_t_initialize { 1, 0 }
-
- #define macro_f_string_range_t_initialize_1(start, stop) { start, stop }
- #define macro_f_string_range_t_initialize_2(length) { length ? 0 : 1, length ? length - 1 : 0 }
-
- #define macro_f_string_range_t_clear(range) \
- range.start = 1; \
- range.stop = 0;
-#endif // _di_f_string_range_t_
-
-/**
- * Provide a static empty range.
- *
- * This is intended to represent an empty or disabled range.
- */
-#ifndef _di_f_string_range_empty_c_
- extern const f_string_range_t f_string_range_empty_c;
-#endif // _di_f_string_range_empty_c_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _F_string_range_h
+++ /dev/null
-#include "../string.h"
-#include "../private-string.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef _di_f_string_range_double_empty_c_
- const f_string_range_double_t f_string_range_double_empty_c = { 1, 0 };
-#endif // _di_f_string_range_double_empty_c_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Defines range string data.
- *
- * This is auto-included by string.h and should not need to be explicitly included.
- */
-#ifndef _F_string_range_double_h
-#define _F_string_range_double_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * A structure designating two start and stop ranges for some string(s).
- *
- * In general, this project uses the start and stop position inclusively, meaning that a range of 0 to 1 would include positions 0 and position 1.
- * Therefore, a range from 0 to 0 would be include position 0.
- * Set start to some value larger than stop to designate that there is no range (such as start = 1, stop = 0).
- *
- * Properties:
- * - start_1: The first start position.
- * - stop_1: The first stop position.
- * - start_2: The second start position.
- * - stop_2: The second stop position.
- */
-#ifndef _di_f_string_range_double_t_
- typedef struct {
- f_number_unsigned_t start_1;
- f_number_unsigned_t stop_1;
- f_number_unsigned_t start_2;
- f_number_unsigned_t stop_2;
- } f_string_range_double_t;
-
- #define f_string_range_double_t_initialize { 1, 0, 1, 0 }
-
- #define macro_f_string_range_double_t_initialize_1(start_1, stop_1, start_2, stop_2) { start_1, stop_1, start_2, stop_2 }
- #define macro_f_string_range_double_t_initialize_2(length_1, length_2) { length_1 ? 0 : 1, length_1 ? length_1 - 1 : 0, length_2 ? 0 : 1, length_2 ? length_2 - 1 : 0 }
-
- #define macro_f_string_range_double_t_clear(range_1, range_2) \
- range_1.start = 1; \
- range_1.stop = 0 \
- range_2.start = 1; \
- range_2.stop = 0;
-#endif // _di_f_string_range_double_t_
-
-/**
- * Provide a static empty range.
- *
- * This is intended to represent an empty or disabled range.
- */
-#ifndef _di_f_string_range_double_empty_c_
- extern const f_string_range_double_t f_string_range_double_empty_c;
-#endif // _di_f_string_range_double_empty_c_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _F_string_range_double_h
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Defines range string data.
- *
- * This is auto-included by string.h and should not need to be explicitly included.
- */
-#ifndef _F_string_range_doubles_h
-#define _F_string_range_doubles_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * An array of string ranges.
- *
- * Properties:
- * - array: The array of string ranges.
- * - size: Total amount of allocated space.
- * - used: Total number of allocated spaces used.
- */
-#ifndef _di_f_string_range_doubles_t_
- typedef struct {
- f_string_range_double_t *array;
-
- f_number_unsigned_t size;
- f_number_unsigned_t used;
- } f_string_range_doubles_t;
-
- #define f_string_range_doubles_t_initialize { 0, 0, 0 }
-
- #define macro_f_string_range_doubles_t_initialize_1(array, size, used) { array, size, used }
- #define macro_f_string_range_doubles_t_initialize_2(array, length) { array, length, length }
-
- #define macro_f_string_range_doubles_t_clear(ranges) \
- ranges.array = 0; \
- ranges.size = 0; \
- ranges.used = 0;
-#endif // _di_f_string_range_doubles_t_
-
-/**
- * Append the single source range onto the destination.
- *
- * @param source
- * The source range to append.
- * @param destination
- * The destination ranges the source is appended onto.
- *
- * @return
- * F_okay on success.
- * F_data_not on success, but there is nothing to append (size == 0).
- *
- * F_parameter (with error bit) if a parameter is invalid.
- *
- * Errors (with error bit) from: f_memory_resize().
- */
-#ifndef _di_f_string_range_doubles_append_
- extern f_status_t f_string_range_doubles_append(const f_string_range_double_t source, f_string_range_doubles_t * const destination);
-#endif // _di_f_string_range_doubles_append_
-
-/**
- * Append the source ranges onto the destination.
- *
- * @param source
- * The source ranges to append.
- * @param destination
- * The destination ranges the source is appended onto.
- *
- * @return
- * F_okay on success.
- * F_data_not on success, but there is nothing to append (size == 0).
- *
- * F_parameter (with error bit) if a parameter is invalid.
- *
- * Errors (with error bit) from: f_memory_resize().
- */
-#ifndef _di_f_string_range_doubles_append_all_
- extern f_status_t f_string_range_doubles_append_all(const f_string_range_doubles_t source, f_string_range_doubles_t * const destination);
-#endif // _di_f_string_range_doubles_append_all_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _F_string_range_doubles_h
+++ /dev/null
-#include "../string.h"
-#include "../private-string.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifndef _di_f_string_range_doubless_append_
- f_status_t f_string_range_doubless_append(const f_string_range_doubles_t source, f_string_range_doubless_t * const destination) {
- #ifndef _di_level_0_parameter_checking_
- if (!destination) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (!source.used) return F_data_not;
-
- {
- f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_doubles_t), (void **) &destination->array, &destination->used, &destination->size);
- if (F_status_is_error(status)) return status;
-
- f_string_range_doubles_t * const destination_inner = &destination->array[destination->used];
- destination_inner->used = 0;
-
- if (source.used) {
- status = f_memory_array_increase_by(source.used, sizeof(f_string_range_double_t), (void **) &destination_inner->array, &destination_inner->used, &destination_inner->size);
- if (F_status_is_error(status)) return status;
-
- for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination_inner->used) {
-
- destination_inner->array[destination_inner->used].start_1 = source.array[i].start_1;
- destination_inner->array[destination_inner->used].stop_1 = source.array[i].stop_1;
- destination_inner->array[destination_inner->used].start_2 = source.array[i].start_2;
- destination_inner->array[destination_inner->used].stop_2 = source.array[i].stop_2;
- } // for
- }
- }
-
- ++destination->used;
-
- return F_okay;
- }
-#endif // _di_f_string_range_doubless_append_
-
-#ifndef _di_f_string_range_doubless_append_all_
- f_status_t f_string_range_doubless_append_all(const f_string_range_doubless_t source, f_string_range_doubless_t * const destination) {
- #ifndef _di_level_0_parameter_checking_
- if (!destination) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (!source.used) return F_data_not;
-
- {
- f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_string_range_doubles_t), (void **) &destination->array, &destination->used, &destination->size);
- if (F_status_is_error(status)) return status;
-
- f_string_range_doubles_t * destination_inner = 0;
- f_number_unsigned_t j = 0;
-
- for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination->used) {
-
- destination_inner = &destination->array[destination->used];
- destination_inner->used = 0;
-
- if (source.array[i].used) {
- status = f_memory_array_increase_by(source.array[i].used, sizeof(f_string_range_double_t), (void **) &destination->array[destination->used].array, &destination->array[destination->used].used, &destination->array[destination->used].size);
- if (F_status_is_error(status)) return status;
-
- for (j = 0; j < source.array[i].used; ++j, ++destination_inner->used) {
-
- destination_inner->array[destination_inner->used].start_1 = source.array[i].array[j].start_1;
- destination_inner->array[destination_inner->used].stop_1 = source.array[i].array[j].stop_1;
- destination_inner->array[destination_inner->used].start_2 = source.array[i].array[j].start_2;
- destination_inner->array[destination_inner->used].stop_2 = source.array[i].array[j].stop_2;
- } // for
- }
- } // for
- }
-
- return F_okay;
- }
-#endif // _di_f_string_range_doubless_append_all_
-
-#ifndef _di_f_string_range_doubless_delete_callback_
- f_status_t f_string_range_doubless_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
-
- {
- f_string_range_doubles_t * const array = (f_string_range_doubles_t *) void_array;
- f_status_t status = F_okay;
-
- for (f_number_unsigned_t i = start; i < stop; ++i) {
-
- if (array[i].size && array[i].array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_double_t), (void **) &array[i].array, &array[i].used, &array[i].size);
- if (F_status_is_error(status)) return status;
- }
- } // for
- }
-
- return F_okay;
- }
-#endif // _di_f_string_range_doubless_delete_callback_
-
-#ifndef _di_f_string_range_doubless_destroy_callback_
- f_status_t f_string_range_doubless_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
-
- {
- f_string_range_doubles_t * const array = (f_string_range_doubles_t *) void_array;
- f_status_t status = F_okay;
-
- for (f_number_unsigned_t i = start; i < stop; ++i) {
-
- if (array[i].size && array[i].array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_double_t), (void **) &array[i].array, &array[i].used, &array[i].size);
- if (F_status_is_error(status)) return status;
- }
- } // for
- }
-
- return F_okay;
- }
-#endif // _di_f_string_range_doubless_destroy_callback_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Defines range string data.
- *
- * This is auto-included by string.h and should not need to be explicitly included.
- */
-#ifndef _F_string_ranges_h
-#define _F_string_ranges_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * An array of string ranges.
- *
- * Properties:
- * - array: The array of string ranges.
- * - size: Total amount of allocated space.
- * - used: Total number of allocated spaces used.
- */
-#ifndef _di_f_string_ranges_t_
- typedef struct {
- f_string_range_t *array;
-
- f_number_unsigned_t size;
- f_number_unsigned_t used;
- } f_string_ranges_t;
-
- #define f_string_ranges_t_initialize { 0, 0, 0 }
-
- #define macro_f_string_ranges_t_initialize_1(array, size, used) { array, size, used }
- #define macro_f_string_ranges_t_initialize_2(array, length) { array, length, length }
-
- #define macro_f_string_ranges_t_clear(ranges) \
- ranges.array = 0; \
- ranges.size = 0; \
- ranges.used = 0;
-#endif // _di_f_string_ranges_t_
-
-/**
- * Append the single source range onto the destination.
- *
- * @param source
- * The source range to append.
- * @param destination
- * The destination ranges the source is appended onto.
- *
- * @return
- * F_okay on success.
- * F_data_not on success, but there is nothing to append (size == 0).
- *
- * F_parameter (with error bit) if a parameter is invalid.
- *
- * Errors (with error bit) from: f_memory_resize().
- */
-#ifndef _di_f_string_ranges_append_
- extern f_status_t f_string_ranges_append(const f_string_range_t source, f_string_ranges_t * const destination);
-#endif // _di_f_string_ranges_append_
-
-/**
- * Append the source ranges onto the destination.
- *
- * @param source
- * The source ranges to append.
- * @param destination
- * The destination ranges the source is appended onto.
- *
- * @return
- * F_okay on success.
- * F_data_not on success, but there is nothing to append (size == 0).
- *
- * F_parameter (with error bit) if a parameter is invalid.
- *
- * Errors (with error bit) from: f_memory_resize().
- */
-#ifndef _di_f_string_ranges_append_all_
- extern f_status_t f_string_ranges_append_all(const f_string_ranges_t source, f_string_ranges_t * const destination);
-#endif // _di_f_string_ranges_append_all_
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _F_string_ranges_h
if (!source.used) return F_data_not;
{
- f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
+ f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
f_string_triples_t * const destination_inner = &destination->array[destination->used];
build_sources_library string/map.c string/maps.c string/mapss.c
build_sources_library string/map_multi.c string/map_multis.c string/map_multiss.c
build_sources_library string/quantity.c string/quantitys.c string/quantityss.c
-build_sources_library string/range.c string/ranges.c string/rangess.c
-build_sources_library string/range_double.c string/range_doubles.c string/range_doubless.c
build_sources_library string/static.c string/statics.c string/staticss.c
build_sources_library string/triple.c string/triples.c string/tripless.c
build_sources_headers string/map.h string/maps.h string/mapss.h
build_sources_headers string/map_multi.h string/map_multis.h string/map_multiss.h
build_sources_headers string/quantity.h string/quantitys.h string/quantityss.h
-build_sources_headers string/range.h string/ranges.h string/rangess.h
-build_sources_headers string/range_double.h string/range_double.h string/range_doubless.h
build_sources_headers string/static.h string/statics.h string/staticss.h
build_sources_headers string/triple.h string/triples.h string/tripless.h
build_sources_library string/map.c string/maps.c string/mapss.c
build_sources_library string/map_multi.c string/map_multis.c string/map_multiss.c
build_sources_library string/quantity.c string/quantitys.c string/quantityss.c
-build_sources_library string/range.c string/ranges.c string/rangess.c
-build_sources_library string/range_double.c string/range_doubles.c string/range_doubless.c
build_sources_library string/static.c string/statics.c string/staticss.c
build_sources_library string/triple.c string/triples.c string/tripless.c
build_sources_library ../../tests/unit/c/mock-string.c
build_sources_headers string/map.h string/maps.h string/mapss.h
build_sources_headers string/map_multi.h string/map_multis.h string/map_multiss.h
build_sources_headers string/quantity.h string/quantitys.h string/quantityss.h
-build_sources_headers string/range.h string/ranges.h string/rangess.h
-build_sources_headers string/range_double.h string/range_doubles.h string/range_doubless.h
build_sources_headers string/static.h string/statics.h string/staticss.h
build_sources_headers string/triple.h string/triples.h string/tripless.h
build_sources_program test-string-prepend.c test-string-prepend_assure.c test-string-prepend_assure_nulless.c test-string-prepend_nulless.c
build_sources_program test-string-quantitys_append.c test-string-quantitys_append_all.c test-string-quantityss_append.c test-string-quantityss_append_all.c
build_sources_program test-string-quantityss_delete_callback.c test-string-quantityss_destroy_callback.c
-build_sources_program test-string-ranges_append.c test-string-ranges_append_all.c test-string-rangess_append.c test-string-rangess_append_all.c
-build_sources_program test-string-rangess_delete_callback.c test-string-rangess_destroy_callback.c
-build_sources_program test-string-range_doubles_append.c test-string-range_doubles_append_all.c test-string-range_doubless_append.c test-string-range_doubless_append_all.c
-build_sources_program test-string-range_doubless_delete_callback.c test-string-range_doubless_destroy_callback.c
build_sources_program test-string-seek_line.c test-string-seek_line_to.c test-string-seek_to.c
build_sources_program test-string-triples_append.c test-string-triples_append_all.c test-string-tripless_append.c test-string-tripless_append_all.c
build_sources_program test-string-triples_delete_callback.c test-string-triples_destroy_callback.c
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_append__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_append(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_append_assure__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_append_assure(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_append_assure_nulless__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_append_assure_nulless(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_append_nulless__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_append_nulless(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected1 = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
const f_string_static_t expected2 = macro_f_string_static_t_initialize_1("te\0st:te\0st", 0, 11);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
const f_string_static_t glue = macro_f_string_static_t_initialize_1(":", 0, 1);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_mash(glue, source, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected1 = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_string_static_t expected2 = macro_f_string_static_t_initialize_1("test:test", 0, 9);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
const f_string_static_t glue = macro_f_string_static_t_initialize_1(":", 0, 1);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_mash_nulless(glue, source, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected1 = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
const f_string_static_t expected2 = macro_f_string_static_t_initialize_1("te\0st:te\0st", 0, 11);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
const f_string_static_t glue = macro_f_string_static_t_initialize_1(":", 0, 1);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_mish(glue, source, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected1 = macro_f_string_static_t_initialize_1("test", 0, 4);
const f_string_static_t expected2 = macro_f_string_static_t_initialize_1("test:test", 0, 9);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
const f_string_static_t glue = macro_f_string_static_t_initialize_1(":", 0, 1);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_mish_nulless(glue, source, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_prepend__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_prepend(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("te\0st", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_prepend_assure__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_prepend_assure(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_prepend_assure_nulless__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_prepend_assure_nulless(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("_te\0st_", 0, 7);
const f_string_static_t expected = macro_f_string_static_t_initialize_1("test", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_string_dynamic_t destination = f_string_dynamic_t_initialize;
{
void test__f_string_dynamic_partial_prepend_nulless__parameter_checking(void **state) {
const f_string_dynamic_t data = f_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_string_dynamic_partial_prepend_nulless(data, partial, 0);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_dynamic_seek_line(source, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_line(source, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_string_dynamic_seek_line(source, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_line(source, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\nXst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("teX\nst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\nXst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range);
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubles_append.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubles_append__works(void **state) {
-
- const f_string_range_double_t source = macro_f_string_range_double_t_initialize_1(1, 2);
- f_string_range_doubles_t destination = f_string_range_doubles_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubles_append(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, 1);
- assert_int_equal(destination.array[0].start, source.start);
- assert_int_equal(destination.array[0].stop, source.stop);
- }
-
- free((void *) destination.array);
-}
-
-void test__f_string_range_doubles_append__parameter_checking(void **state) {
-
- const f_string_range_double_t data = f_string_range_double_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubles_append(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_range_doubles_append_h
-#define _TEST__F_string_range_doubles_append_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubles_append()
- */
-extern void test__f_string_range_doubles_append__works(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_range_doubles_append()
- */
-extern void test__f_string_range_doubles_append__parameter_checking(void **state);
-
-#endif // _TEST__F_string_range_doubles_append_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubles_append_all.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubles_append_all__works(void **state) {
-
- const int length_sources = 2;
-
- f_string_range_double_t sources_array[] = {
- macro_f_string_range_double_t_initialize_1(1, 2),
- macro_f_string_range_double_t_initialize_1(3, 4),
- };
-
- const f_string_range_doubles_t source = macro_f_string_range_doubles_t_initialize_1(sources_array, 0, length_sources);
- f_string_range_doubles_t destination = f_string_range_doubles_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubles_append_all(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, source.used);
- assert_int_equal(destination.size, source.used);
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[i].start, source.array[i].start);
- assert_int_equal(destination.array[i].stop, source.array[i].stop);
- } // for
- }
-
- free((void *) destination.array);
-}
-
-void test__f_string_range_doubles_append_all__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_range_doubles_t source = f_string_range_doubles_t_initialize;
- f_string_range_doubles_t destination = f_string_range_doubles_t_initialize;
-
- {
- const f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_double_t), (void **) &source.array, &source.used, &source.size);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_range_doubles_append_all(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_range_doubles_append_all__parameter_checking(void **state) {
-
- const f_string_range_doubles_t data = f_string_range_doubles_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubles_append_all(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_range_doubles_append_all_h
-#define _TEST__F_string_range_doubles_append_all_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubles_append_all()
- */
-extern void test__f_string_range_doubles_append_all__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_range_doubles_append_all()
- */
-extern void test__f_string_range_doubles_append_all__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_range_doubles_append_all()
- */
-extern void test__f_string_range_doubles_append_all__parameter_checking(void **state);
-
-#endif // _TEST__F_string_range_doubles_append_all_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubless_append.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubless_append__works(void **state) {
-
- const int length_sources = 2;
-
- f_string_range_double_t sources_array[] = {
- macro_f_string_range_double_t_initialize_1(1, 2),
- macro_f_string_range_double_t_initialize_1(3, 4),
- };
-
- const f_string_range_doubles_t source = macro_f_string_range_doubles_t_initialize_1(sources_array, 0, length_sources);
- f_string_range_doubless_t destination = f_string_range_doubless_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubless_append(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.array[0].used, length_sources);
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[0].array[i].start, sources_array[i].start);
- assert_int_equal(destination.array[0].array[i].stop, sources_array[i].stop);
- } // for
- }
-
- free((void *) destination.array[0].array);
- free((void *) destination.array);
-}
-
-void test__f_string_range_doubless_append__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_range_doubles_t source = f_string_range_doubless_t_initialize;
- f_string_range_doubless_t destination = f_string_range_doubless_t_initialize;
-
- {
- const f_status_t status = f_memory_arrays_resize(length, sizeof(f_string_range_doubles_t), (void **) &source.array, &source.used, &source.size, &f_string_range_doubless_delete_callback);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_range_doubless_append(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_range_doubless_append__parameter_checking(void **state) {
-
- f_string_range_doubles_t data = f_string_range_doubles_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubless_append(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_range_doubless_append_h
-#define _TEST__F_string_range_doubless_append_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubless_append()
- */
-extern void test__f_string_range_doubless_append__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_range_doubless_append()
- */
-extern void test__f_string_range_doubless_append__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_range_doubless_append()
- */
-extern void test__f_string_range_doubless_append__parameter_checking(void **state);
-
-#endif // _TEST__F_string_range_doubless_append_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubless_append_all.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubless_append_all__works(void **state) {
-
- const int length_sources = 2;
- const int length_sources_set = 2;
-
- f_string_range_double_t sources_array1[] = {
- macro_f_string_range_double_t_initialize_1(1, 2),
- macro_f_string_range_double_t_initialize_1(3, 4),
- };
-
- f_string_range_double_t sources_array2[] = {
- macro_f_string_range_double_t_initialize_1(5, 6),
- macro_f_string_range_double_t_initialize_1(7, 8),
- };
-
- f_string_range_doubles_t sources_set_array[] = {
- macro_f_string_range_doubles_t_initialize_1(sources_array1, 0, length_sources),
- macro_f_string_range_doubles_t_initialize_1(sources_array2, 0, length_sources),
- };
-
- const f_string_range_doubless_t source = macro_f_string_range_doubless_t_initialize_1(sources_set_array, 0, length_sources_set);
- f_string_range_doubless_t destination = f_string_range_doubless_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubless_append_all(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, source.used);
-
- for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) {
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[j].array[i].start, sources_set_array[j].array[i].start);
- assert_int_equal(destination.array[j].array[i].stop, sources_set_array[j].array[i].stop);
- } // for
- } // for
- }
-
- for (f_number_unsigned_t i = 0; i < destination.used; ++i) {
- free((void *) destination.array[i].array);
- } // for
-
- free((void *) destination.array);
-}
-
-void test__f_string_range_doubless_append_all__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_range_doubless_t source = f_string_range_doubless_t_initialize;
- f_string_range_doubless_t destination = f_string_range_doubless_t_initialize;
-
- {
- const f_status_t status = f_memory_arrays_resize(length, sizeof(f_string_range_doubles_t), (void **) &source.array, &source.used, &source.size, &f_string_range_doubless_delete_callback);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_range_doubless_append_all(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_range_doubless_append_all__parameter_checking(void **state) {
-
- const f_string_range_doubless_t data = f_string_range_doubless_t_initialize;
-
- {
- const f_status_t status = f_string_range_doubless_append_all(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_range_doubless_append_all_h
-#define _TEST__F_string_range_doubless_append_all_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubless_append_all()
- */
-extern void test__f_string_range_doubless_append_all__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_range_doubless_append_all()
- */
-extern void test__f_string_range_doubless_append_all__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_range_doubless_append_all()
- */
-extern void test__f_string_range_doubless_append_all__parameter_checking(void **state);
-
-#endif // _TEST__F_string_range_doubless_append_all_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubless_delete_callback.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubless_delete_callback__fails(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 0;
-
- f_string_range_double_t data = f_string_range_double_t_initialize;
- f_string_range_double_t data_array[] = { data };
- f_string_range_doubles_t datas = { .array = data_array, .used = 1, .size = 1 };
- f_string_range_doubles_t datas_array[] = { datas };
-
- {
- will_return(__wrap_f_memory_array_resize, true);
- will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure));
-
- const f_status_t status = f_string_range_doubless_delete_callback(0, 1, (void *) datas_array);
-
- assert_int_equal(status, F_status_set_error(F_failure));
- }
-}
-
-void test__f_string_range_doubless_delete_callback__works(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 1;
-
- const f_number_unsigned_t length = 1;
-
- f_string_range_doubless_t datass = f_string_range_doubless_t_initialize;
-
- {
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_doubles_t), (void **) &datass.array, &datass.used, &datass.size);
- assert_int_equal(status, F_okay);
-
- status = f_memory_array_resize(1, sizeof(f_string_range_double_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
- assert_int_equal(status, F_okay);
- }
-
- {
- const f_status_t status = f_string_range_doubless_delete_callback(0, length, (void *) datass.array);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(datass.array[0].size, 0);
- }
-
- free((void *) datass.array);
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string__range_doubless_delete_callback
-#define _TEST__F_string__range_doubless_delete_callback
-
-/**
- * Test that the function fails.
- *
- * @see f_string_range_doubless_delete_callback()
- */
-extern void test__f_string_range_doubless_delete_callback__fails(void **state);
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubless_delete_callback()
- */
-extern void test__f_string_range_doubless_delete_callback__works(void **state);
-
-#endif // _TEST__F_string__range_doubless_delete_callback
+++ /dev/null
-#include "test-string.h"
-#include "test-string-range_doubless_destroy_callback.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_range_doubless_destroy_callback__fails(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 0;
-
- f_string_range_double_t data = f_string_range_double_t_initialize;
- f_string_range_double_t data_array[] = { data };
- f_string_range_doubles_t datas = { .array = data_array, .used = 1, .size = 1 };
- f_string_range_doubles_t datas_array[] = { datas };
-
- {
- will_return(__wrap_f_memory_array_adjust, true);
- will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure));
-
- const f_status_t status = f_string_range_doubless_destroy_callback(0, 1, (void *) datas_array);
-
- assert_int_equal(status, F_status_set_error(F_failure));
- }
-}
-
-void test__f_string_range_doubless_destroy_callback__works(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 1;
-
- const f_number_unsigned_t length = 1;
-
- f_string_range_doubless_t datass = f_string_range_doubless_t_initialize;
-
- {
- f_status_t status = f_memory_array_adjust(length, sizeof(f_string_range_doubles_t), (void **) &datass.array, &datass.used, &datass.size);
- assert_int_equal(status, F_okay);
-
- status = f_memory_array_adjust(1, sizeof(f_string_range_double_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
- assert_int_equal(status, F_okay);
- }
-
- {
- const f_status_t status = f_string_range_doubless_destroy_callback(0, length, (void *) datass.array);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(datass.array[0].size, 0);
- }
-
- free((void *) datass.array);
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string__range_doubless_destroy_callback
-#define _TEST__F_string__range_doubless_destroy_callback
-
-/**
- * Test that the function fails.
- *
- * @see f_string_range_doubless_destroy_callback()
- */
-extern void test__f_string_range_doubless_destroy_callback__fails(void **state);
-
-/**
- * Test that the function works.
- *
- * @see f_string_range_doubless_destroy_callback()
- */
-extern void test__f_string_range_doubless_destroy_callback__works(void **state);
-
-#endif // _TEST__F_string__range_doubless_destroy_callback
+++ /dev/null
-#include "test-string.h"
-#include "test-string-ranges_append.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_ranges_append__works(void **state) {
-
- const f_string_range_t source = macro_f_string_range_t_initialize_1(1, 2);
- f_string_ranges_t destination = f_string_ranges_t_initialize;
-
- {
- const f_status_t status = f_string_ranges_append(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, 1);
- assert_int_equal(destination.array[0].start, source.start);
- assert_int_equal(destination.array[0].stop, source.stop);
- }
-
- free((void *) destination.array);
-}
-
-void test__f_string_ranges_append__parameter_checking(void **state) {
-
- const f_string_range_t data = f_string_range_t_initialize;
-
- {
- const f_status_t status = f_string_ranges_append(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_ranges_append_h
-#define _TEST__F_string_ranges_append_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_ranges_append()
- */
-extern void test__f_string_ranges_append__works(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_ranges_append()
- */
-extern void test__f_string_ranges_append__parameter_checking(void **state);
-
-#endif // _TEST__F_string_ranges_append_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-ranges_append_all.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_ranges_append_all__works(void **state) {
-
- const int length_sources = 2;
-
- f_string_range_t sources_array[] = {
- macro_f_string_range_t_initialize_1(1, 2),
- macro_f_string_range_t_initialize_1(3, 4),
- };
-
- const f_string_ranges_t source = macro_f_string_ranges_t_initialize_1(sources_array, 0, length_sources);
- f_string_ranges_t destination = f_string_ranges_t_initialize;
-
- {
- const f_status_t status = f_string_ranges_append_all(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, source.used);
- assert_int_equal(destination.size, source.used);
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[i].start, source.array[i].start);
- assert_int_equal(destination.array[i].stop, source.array[i].stop);
- } // for
- }
-
- free((void *) destination.array);
-}
-
-void test__f_string_ranges_append_all__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_ranges_t source = f_string_ranges_t_initialize;
- f_string_ranges_t destination = f_string_ranges_t_initialize;
-
- {
- const f_status_t status = f_memory_array_resize(length, sizeof(f_string_range_t), (void **) &source.array, &source.used, &source.size);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_ranges_append_all(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_ranges_append_all__parameter_checking(void **state) {
-
- const f_string_ranges_t data = f_string_ranges_t_initialize;
-
- {
- const f_status_t status = f_string_ranges_append_all(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_ranges_append_all_h
-#define _TEST__F_string_ranges_append_all_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_ranges_append_all()
- */
-extern void test__f_string_ranges_append_all__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_ranges_append_all()
- */
-extern void test__f_string_ranges_append_all__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_ranges_append_all()
- */
-extern void test__f_string_ranges_append_all__parameter_checking(void **state);
-
-#endif // _TEST__F_string_ranges_append_all_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-rangess_append.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_rangess_append__works(void **state) {
-
- const int length_sources = 2;
-
- f_string_range_t sources_array[] = {
- macro_f_string_range_t_initialize_1(1, 2),
- macro_f_string_range_t_initialize_1(3, 4),
- };
-
- const f_string_ranges_t source = macro_f_string_ranges_t_initialize_1(sources_array, 0, length_sources);
- f_string_rangess_t destination = f_string_rangess_t_initialize;
-
- {
- const f_status_t status = f_string_rangess_append(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.array[0].used, length_sources);
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[0].array[i].start, sources_array[i].start);
- assert_int_equal(destination.array[0].array[i].stop, sources_array[i].stop);
- } // for
- }
-
- free((void *) destination.array[0].array);
- free((void *) destination.array);
-}
-
-void test__f_string_rangess_append__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_ranges_t source = f_string_rangess_t_initialize;
- f_string_rangess_t destination = f_string_rangess_t_initialize;
-
- {
- const f_status_t status = f_memory_arrays_resize(length, sizeof(f_string_ranges_t), (void **) &source.array, &source.used, &source.size, &f_string_rangess_delete_callback);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_rangess_append(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_rangess_append__parameter_checking(void **state) {
-
- f_string_ranges_t data = f_string_ranges_t_initialize;
-
- {
- const f_status_t status = f_string_rangess_append(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_rangess_append_h
-#define _TEST__F_string_rangess_append_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_rangess_append()
- */
-extern void test__f_string_rangess_append__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_rangess_append()
- */
-extern void test__f_string_rangess_append__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_rangess_append()
- */
-extern void test__f_string_rangess_append__parameter_checking(void **state);
-
-#endif // _TEST__F_string_rangess_append_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-rangess_append_all.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_rangess_append_all__works(void **state) {
-
- const int length_sources = 2;
- const int length_sources_set = 2;
-
- f_string_range_t sources_array1[] = {
- macro_f_string_range_t_initialize_1(1, 2),
- macro_f_string_range_t_initialize_1(3, 4),
- };
-
- f_string_range_t sources_array2[] = {
- macro_f_string_range_t_initialize_1(5, 6),
- macro_f_string_range_t_initialize_1(7, 8),
- };
-
- f_string_ranges_t sources_set_array[] = {
- macro_f_string_ranges_t_initialize_1(sources_array1, 0, length_sources),
- macro_f_string_ranges_t_initialize_1(sources_array2, 0, length_sources),
- };
-
- const f_string_rangess_t source = macro_f_string_rangess_t_initialize_1(sources_set_array, 0, length_sources_set);
- f_string_rangess_t destination = f_string_rangess_t_initialize;
-
- {
- const f_status_t status = f_string_rangess_append_all(source, &destination);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(destination.used, source.used);
-
- for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) {
-
- for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
-
- assert_int_equal(destination.array[j].array[i].start, sources_set_array[j].array[i].start);
- assert_int_equal(destination.array[j].array[i].stop, sources_set_array[j].array[i].stop);
- } // for
- } // for
- }
-
- for (f_number_unsigned_t i = 0; i < destination.used; ++i) {
- free((void *) destination.array[i].array);
- } // for
-
- free((void *) destination.array);
-}
-
-void test__f_string_rangess_append_all__returns_data_not(void **state) {
-
- const int length = 5;
- f_string_rangess_t source = f_string_rangess_t_initialize;
- f_string_rangess_t destination = f_string_rangess_t_initialize;
-
- {
- const f_status_t status = f_memory_arrays_resize(length, sizeof(f_string_ranges_t), (void **) &source.array, &source.used, &source.size, &f_string_rangess_delete_callback);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(source.used, 0);
- assert_int_equal(source.size, length);
- }
-
- {
- const f_status_t status = f_string_rangess_append_all(source, &destination);
-
- assert_int_equal(status, F_data_not);
- assert_int_equal(destination.used, 0);
- assert_int_equal(destination.size, 0);
- assert_null(destination.array);
- }
-
- free((void *) source.array);
-}
-
-void test__f_string_rangess_append_all__parameter_checking(void **state) {
-
- const f_string_rangess_t data = f_string_rangess_t_initialize;
-
- {
- const f_status_t status = f_string_rangess_append_all(data, 0);
-
- assert_int_equal(status, F_status_set_error(F_parameter));
- }
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string_rangess_append_all_h
-#define _TEST__F_string_rangess_append_all_h
-
-/**
- * Test that the function works.
- *
- * @see f_string_rangess_append_all()
- */
-extern void test__f_string_rangess_append_all__works(void **state);
-
-/**
- * Test that the function returns F_data_not when asked to copy an empty structure.
- *
- * @see f_string_rangess_append_all()
- */
-extern void test__f_string_rangess_append_all__returns_data_not(void **state);
-
-/**
- * Test that the function correctly fails on invalid parameter.
- *
- * @see f_string_rangess_append_all()
- */
-extern void test__f_string_rangess_append_all__parameter_checking(void **state);
-
-#endif // _TEST__F_string_rangess_append_all_h
+++ /dev/null
-#include "test-string.h"
-#include "test-string-rangess_delete_callback.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_rangess_delete_callback__fails(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 0;
-
- f_string_range_t data = f_string_range_t_initialize;
- f_string_range_t data_array[] = { data };
- f_string_ranges_t datas = { .array = data_array, .used = 1, .size = 1 };
- f_string_ranges_t datas_array[] = { datas };
-
- {
- will_return(__wrap_f_memory_array_resize, true);
- will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure));
-
- const f_status_t status = f_string_rangess_delete_callback(0, 1, (void *) datas_array);
-
- assert_int_equal(status, F_status_set_error(F_failure));
- }
-}
-
-void test__f_string_rangess_delete_callback__works(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 1;
-
- const f_number_unsigned_t length = 1;
-
- f_string_rangess_t datass = f_string_rangess_t_initialize;
-
- {
- f_status_t status = f_memory_array_resize(length, sizeof(f_string_ranges_t), (void **) &datass.array, &datass.used, &datass.size);
- assert_int_equal(status, F_okay);
-
- status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
- assert_int_equal(status, F_okay);
- }
-
- {
- const f_status_t status = f_string_rangess_delete_callback(0, length, (void *) datass.array);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(datass.array[0].size, 0);
- }
-
- free((void *) datass.array);
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string__rangess_delete_callback
-#define _TEST__F_string__rangess_delete_callback
-
-/**
- * Test that the function fails.
- *
- * @see f_string_rangess_delete_callback()
- */
-extern void test__f_string_rangess_delete_callback__fails(void **state);
-
-/**
- * Test that the function works.
- *
- * @see f_string_rangess_delete_callback()
- */
-extern void test__f_string_rangess_delete_callback__works(void **state);
-
-#endif // _TEST__F_string__rangess_delete_callback
+++ /dev/null
-#include "test-string.h"
-#include "test-string-rangess_destroy_callback.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void test__f_string_rangess_destroy_callback__fails(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 0;
-
- f_string_range_t data = f_string_range_t_initialize;
- f_string_range_t data_array[] = { data };
- f_string_ranges_t datas = { .array = data_array, .used = 1, .size = 1 };
- f_string_ranges_t datas_array[] = { datas };
-
- {
- will_return(__wrap_f_memory_array_adjust, true);
- will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure));
-
- const f_status_t status = f_string_rangess_destroy_callback(0, 1, (void *) datas_array);
-
- assert_int_equal(status, F_status_set_error(F_failure));
- }
-}
-
-void test__f_string_rangess_destroy_callback__works(void **state) {
-
- mock_unwrap = 0;
- mock_unwrap_f_memory = 1;
-
- const f_number_unsigned_t length = 1;
-
- f_string_rangess_t datass = f_string_rangess_t_initialize;
-
- {
- f_status_t status = f_memory_array_adjust(length, sizeof(f_string_ranges_t), (void **) &datass.array, &datass.used, &datass.size);
- assert_int_equal(status, F_okay);
-
- status = f_memory_array_adjust(1, sizeof(f_string_range_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
- assert_int_equal(status, F_okay);
- }
-
- {
- const f_status_t status = f_string_rangess_destroy_callback(0, length, (void *) datass.array);
-
- assert_int_equal(status, F_okay);
- assert_int_equal(datass.array[0].size, 0);
- }
-
- free((void *) datass.array);
-}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: String
- * API Version: 0.7
- * Licenses: lgpl-2.1-or-later
- *
- * Test the array types in the type project.
- */
-#ifndef _TEST__F_string__rangess_destroy_callback
-#define _TEST__F_string__rangess_destroy_callback
-
-/**
- * Test that the function fails.
- *
- * @see f_string_rangess_destroy_callback()
- */
-extern void test__f_string_rangess_destroy_callback__fails(void **state);
-
-/**
- * Test that the function works.
- *
- * @see f_string_rangess_destroy_callback()
- */
-extern void test__f_string_rangess_destroy_callback__works(void **state);
-
-#endif // _TEST__F_string__rangess_destroy_callback
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_seek_line(source.string, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_line(source.string, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_line(source.string, &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\nXst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("teX\nst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_string_seek_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("test\nafter", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_to(source.string, to.string[0], &range);
const f_string_static_t source = macro_f_string_static_t_initialize_1("te\nXst", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_string_seek_to(source.string, to.string[0], &range);
cmocka_unit_test(test__f_string_quantityss_append_all__works),
cmocka_unit_test(test__f_string_quantityss_append_all__returns_data_not),
- cmocka_unit_test(test__f_string_ranges_append__works),
- cmocka_unit_test(test__f_string_ranges_append_all__works),
- cmocka_unit_test(test__f_string_ranges_append_all__returns_data_not),
-
- cmocka_unit_test(test__f_string_rangess_append__works),
- cmocka_unit_test(test__f_string_rangess_append__returns_data_not),
- cmocka_unit_test(test__f_string_rangess_append_all__works),
- cmocka_unit_test(test__f_string_rangess_append_all__returns_data_not),
-
cmocka_unit_test(test__f_string_triples_append__works),
cmocka_unit_test(test__f_string_triples_append_all__works),
cmocka_unit_test(test__f_string_triples_append_all__returns_data_not),
cmocka_unit_test(test__f_string_quantityss_delete_callback__works),
cmocka_unit_test(test__f_string_quantityss_destroy_callback__works),
- cmocka_unit_test(test__f_string_rangess_delete_callback__fails),
- cmocka_unit_test(test__f_string_rangess_destroy_callback__fails),
- cmocka_unit_test(test__f_string_rangess_delete_callback__works),
- cmocka_unit_test(test__f_string_rangess_destroy_callback__works),
-
cmocka_unit_test(test__f_string_triples_delete_callback__fails),
cmocka_unit_test(test__f_string_triples_destroy_callback__fails),
cmocka_unit_test(test__f_string_triples_delete_callback__works),
cmocka_unit_test(test__f_string_quantityss_append__parameter_checking),
cmocka_unit_test(test__f_string_quantityss_append_all__parameter_checking),
- cmocka_unit_test(test__f_string_ranges_append__parameter_checking),
- cmocka_unit_test(test__f_string_ranges_append_all__parameter_checking),
- cmocka_unit_test(test__f_string_rangess_append__parameter_checking),
- cmocka_unit_test(test__f_string_rangess_append_all__parameter_checking),
-
cmocka_unit_test(test__f_string_triples_append__parameter_checking),
cmocka_unit_test(test__f_string_triples_append_all__parameter_checking),
cmocka_unit_test(test__f_string_tripless_append__parameter_checking),
// f_string_quantityss_delete_callback() doesn't use parameter checking.
// f_string_quantityss_destroy_callback() doesn't use parameter checking.
- // f_string_rangess_delete_callback() doesn't use parameter checking.
- // f_string_rangess_destroy_callback() doesn't use parameter checking.
-
// f_string_triples_delete_callback() doesn't use parameter checking.
// f_string_triples_destroy_callback() doesn't use parameter checking.
#include "test-string-quantityss_append_all.h"
#include "test-string-quantityss_delete_callback.h"
#include "test-string-quantityss_destroy_callback.h"
-#include "test-string-ranges_append.h"
-#include "test-string-ranges_append_all.h"
-#include "test-string-rangess_append.h"
-#include "test-string-rangess_append_all.h"
-#include "test-string-rangess_delete_callback.h"
-#include "test-string-rangess_destroy_callback.h"
#include "test-string-seek_line.h"
#include "test-string-seek_line_to.h"
#include "test-string-seek_to.h"
// FLL-0 type includes.
#include <fll/level_0/type/number.h>
#include <fll/level_0/type/status.h>
-#include <fll/level_0/type/mode.h>
#include <fll/level_0/type/cell.h>
#include <fll/level_0/type/fll.h>
-#include <fll/level_0/type/time.h>
+#include <fll/level_0/type/mode.h>
+#include <fll/level_0/type/range.h>
+#include <fll/level_0/type/range_double.h>
#include <fll/level_0/type/state.h>
+#include <fll/level_0/type/time.h>
#ifdef __cplusplus
extern "C" {
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines range type data.
+ *
+ * This is auto-included by type.h and should not need to be explicitly included.
+ */
+#ifndef _F_range_h
+#define _F_range_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A structure designating a start and stop range for some string.
+ *
+ * In general, this project uses the start and stop position inclusively, meaning that a range of 0 to 1 would include positions 0 and position 1.
+ * Therefore, a range from 0 to 0 would be include position 0.
+ * Set start to some value larger than stop to designate that there is no range (such as start = 1, stop = 0).
+ *
+ * Properties:
+ * - start: The start position.
+ * - stop: The stop position.
+ */
+#ifndef _di_f_range_t_
+ typedef struct {
+ f_number_unsigned_t start;
+ f_number_unsigned_t stop;
+ } f_range_t;
+
+ #define f_range_t_initialize { 1, 0 }
+
+ #define macro_f_range_t_initialize_1(start, stop) { start, stop }
+ #define macro_f_range_t_initialize_2(length) { length ? 0 : 1, length ? length - 1 : 0 }
+
+ #define macro_f_range_t_clear(range) \
+ range.start = 1; \
+ range.stop = 0;
+#endif // _di_f_range_t_
+
+/**
+ * An array of ranges.
+ *
+ * Properties:
+ * - array: The array of ranges.
+ * - size: Total amount of allocated space.
+ * - used: Total number of allocated spaces used.
+ */
+#ifndef _di_f_ranges_t_
+ typedef struct {
+ f_range_t *array;
+
+ f_number_unsigned_t size;
+ f_number_unsigned_t used;
+ } f_ranges_t;
+
+ #define f_ranges_t_initialize { 0, 0, 0 }
+
+ #define macro_f_ranges_t_initialize_1(array, size, used) { array, size, used }
+ #define macro_f_ranges_t_initialize_2(array, length) { array, length, length }
+
+ #define macro_f_ranges_t_clear(ranges) \
+ ranges.array = 0; \
+ ranges.size = 0; \
+ ranges.used = 0;
+#endif // _di_f_ranges_t_
+
+/**
+ * This holds an array of f_ranges_t.
+ *
+ * Properties:
+ * - array: The array of ranges arrays.
+ * - size: Total amount of allocated space.
+ * - used: Total number of allocated spaces used.
+ */
+#ifndef _di_f_rangess_t_
+ typedef struct {
+ f_ranges_t *array;
+
+ f_number_unsigned_t size;
+ f_number_unsigned_t used;
+ } f_rangess_t;
+
+ #define f_rangess_t_initialize { 0, 0, 0 }
+
+ #define macro_f_rangess_t_initialize_1(array, size, used) { array, size, used }
+ #define macro_f_rangess_t_initialize_2(array, length) { array, length, length }
+
+ #define macro_f_rangess_t_clear(rangess) \
+ rangess.array = 0; \
+ rangess.size = 0; \
+ rangess.used = 0;
+#endif // _di_f_rangess_t_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_range_h
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines data to be used for/by type (array) related functionality.
+ *
+ * This is auto-included by type_array.h and should not need to be explicitly included.
+ */
+#ifndef _F_range_double_h
+#define _F_range_double_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A structure designating two start and stop ranges for some string(s).
+ *
+ * In general, this project uses the start and stop position inclusively, meaning that a range of 0 to 1 would include positions 0 and position 1.
+ * Therefore, a range from 0 to 0 would be include position 0.
+ * Set start to some value larger than stop to designate that there is no range (such as start = 1, stop = 0).
+ *
+ * Properties:
+ * - start_1: The first start position.
+ * - stop_1: The first stop position.
+ * - start_2: The second start position.
+ * - stop_2: The second stop position.
+ */
+#ifndef _di_f_range_double_t_
+ typedef struct {
+ f_number_unsigned_t start_1;
+ f_number_unsigned_t stop_1;
+ f_number_unsigned_t start_2;
+ f_number_unsigned_t stop_2;
+ } f_range_double_t;
+
+ #define f_range_double_t_initialize { 1, 0, 1, 0 }
+
+ #define macro_f_range_double_t_initialize_1(start_1, stop_1, start_2, stop_2) { start_1, stop_1, start_2, stop_2 }
+ #define macro_f_range_double_t_initialize_2(length_1, length_2) { length_1 ? 0 : 1, length_1 ? length_1 - 1 : 0, length_2 ? 0 : 1, length_2 ? length_2 - 1 : 0 }
+
+ #define macro_f_range_double_t_clear(range_1, range_2) \
+ range_1.start = 1; \
+ range_1.stop = 0 \
+ range_2.start = 1; \
+ range_2.stop = 0;
+#endif // _di_f_range_double_t_
+
+/**
+ * An array of ranges.
+ *
+ * Properties:
+ * - array: The array of ranges.
+ * - size: Total amount of allocated space.
+ * - used: Total number of allocated spaces used.
+ */
+#ifndef _di_f_range_doubles_t_
+ typedef struct {
+ f_range_double_t *array;
+
+ f_number_unsigned_t size;
+ f_number_unsigned_t used;
+ } f_range_doubles_t;
+
+ #define f_range_doubles_t_initialize { 0, 0, 0 }
+
+ #define macro_f_range_doubles_t_initialize_1(array, size, used) { array, size, used }
+ #define macro_f_range_doubles_t_initialize_2(array, length) { array, length, length }
+
+ #define macro_f_range_doubles_t_clear(ranges) \
+ ranges.array = 0; \
+ ranges.size = 0; \
+ ranges.used = 0;
+#endif // _di_f_range_doubles_t_
+
+/**
+ * This holds an array of f_range_doubles_t.
+ *
+ * Properties:
+ * - array: The array of ranges arrays.
+ * - size: Total amount of allocated space.
+ * - used: Total number of allocated spaces used.
+ */
+#ifndef _di_f_range_doubless_t_
+ typedef struct {
+ f_range_doubles_t *array;
+
+ f_number_unsigned_t size;
+ f_number_unsigned_t used;
+ } f_range_doubless_t;
+
+ #define f_range_doubless_t_initialize { 0, 0, 0 }
+
+ #define macro_f_range_doubless_t_initialize_1(array, size, used) { array, size, used }
+ #define macro_f_range_doubless_t_initialize_2(array, length) { array, length, length }
+
+ #define macro_f_range_doubless_t_clear(rangess) \
+ rangess.array = 0; \
+ rangess.size = 0; \
+ rangess.used = 0;
+#endif // _di_f_range_doubless_t_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_range_double_h
build_libraries -lc
-build_sources_headers type.h type/cell.h type/file.h type/fll.h type/mode.h type/number.h type/state.h type/status.h type/time.h
+build_sources_headers type.h type/cell.h type/file.h type/fll.h type/mode.h type/number.h type/range.h type/range_double.h type/state.h type/status.h type/time.h
build_script yes
build_shared yes
#include <fll/level_0/type_array/int128.h>
#include <fll/level_0/type_array/number_signed.h>
#include <fll/level_0/type_array/number_unsigned.h>
+#include <fll/level_0/type_array/range.h>
+#include <fll/level_0/type_array/ranges.h>
+#include <fll/level_0/type_array/rangess.h>
+#include <fll/level_0/type_array/range_double.h>
+#include <fll/level_0/type_array/range_doubles.h>
+#include <fll/level_0/type_array/range_doubless.h>
#include <fll/level_0/type_array/state.h>
#include <fll/level_0/type_array/status.h>
#include <fll/level_0/type_array/uint8.h>
--- /dev/null
+#include "../type_array.h"
+#include "range.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_f_range_empty_c_
+ const f_range_t f_range_empty_c = { 1, 0 };
+#endif // _di_f_range_empty_c_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines data to be used for/by type (array) related functionality.
+ *
+ * This is auto-included by type_array.h and should not need to be explicitly included.
+ */
+#ifndef _F_type_array_range_h
+#define _F_type_array_range_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Provide a static empty range.
+ *
+ * This is intended to represent an empty or disabled range.
+ */
+#ifndef _di_f_range_empty_c_
+ extern const f_range_t f_range_empty_c;
+#endif // _di_f_range_empty_c_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_type_array_range_h
--- /dev/null
+#include "../type_array.h"
+#include "range_double.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_f_range_double_empty_c_
+ const f_range_double_t f_range_double_empty_c = { 1, 0 };
+#endif // _di_f_range_double_empty_c_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines data to be used for/by type (array) related functionality.
+ *
+ * This is auto-included by type_array.h and should not need to be explicitly included.
+ */
+#ifndef _F_type_array_range_double_h
+#define _F_type_array_range_double_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Provide a static empty range.
+ *
+ * This is intended to represent an empty or disabled range.
+ */
+#ifndef _di_f_range_double_empty_c_
+ extern const f_range_double_t f_range_double_empty_c;
+#endif // _di_f_range_double_empty_c_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_type_array_range_double_h
-#include "../string.h"
-#include "../private-string.h"
+#include "../type_array.h"
+#include "range_doubles.h"
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _di_f_string_range_doubles_append_
- f_status_t f_string_range_doubles_append(const f_string_range_double_t source, f_string_range_doubles_t * const destination) {
+#ifndef _di_f_range_doubles_append_
+ f_status_t f_range_doubles_append(const f_range_double_t source, f_range_doubles_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
{
- const f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_double_t), (void **) &destination->array, &destination->used, &destination->size);
+ const f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_double_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
}
return F_okay;
}
-#endif // _di_f_string_range_doubles_append_
+#endif // _di_f_range_doubles_append_
-#ifndef _di_f_string_range_doubles_append_all_
- f_status_t f_string_range_doubles_append_all(const f_string_range_doubles_t source, f_string_range_doubles_t * const destination) {
+#ifndef _di_f_range_doubles_append_all_
+ f_status_t f_range_doubles_append_all(const f_range_doubles_t source, f_range_doubles_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!source.used) return F_data_not;
{
- const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_string_range_double_t), (void **) &destination->array, &destination->used, &destination->size);
+ const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_range_double_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
}
return F_okay;
}
-#endif // _di_f_string_range_doubles_append_all_
+#endif // _di_f_range_doubles_append_all_
#ifdef __cplusplus
} // extern "C"
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines data to be used for/by type (array) related functionality.
+ *
+ * This is auto-included by type_array.h and should not need to be explicitly included.
+ */
+#ifndef _F_type_array_range_doubles_h
+#define _F_type_array_range_doubles_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Append the single source range onto the destination.
+ *
+ * @param source
+ * The source range to append.
+ * @param destination
+ * The destination ranges the source is appended onto.
+ *
+ * @return
+ * F_okay on success.
+ * F_data_not on success, but there is nothing to append (size == 0).
+ *
+ * F_parameter (with error bit) if a parameter is invalid.
+ *
+ * Errors (with error bit) from: f_memory_resize().
+ */
+#ifndef _di_f_range_doubles_append_
+ extern f_status_t f_range_doubles_append(const f_range_double_t source, f_range_doubles_t * const destination);
+#endif // _di_f_range_doubles_append_
+
+/**
+ * Append the source ranges onto the destination.
+ *
+ * @param source
+ * The source ranges to append.
+ * @param destination
+ * The destination ranges the source is appended onto.
+ *
+ * @return
+ * F_okay on success.
+ * F_data_not on success, but there is nothing to append (size == 0).
+ *
+ * F_parameter (with error bit) if a parameter is invalid.
+ *
+ * Errors (with error bit) from: f_memory_resize().
+ */
+#ifndef _di_f_range_doubles_append_all_
+ extern f_status_t f_range_doubles_append_all(const f_range_doubles_t source, f_range_doubles_t * const destination);
+#endif // _di_f_range_doubles_append_all_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_type_array_range_doubles_h
-#include "../string.h"
-#include "../private-string.h"
+#include "../type_array.h"
+#include "range_doubless.h"
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _di_f_string_rangess_append_
- f_status_t f_string_rangess_append(const f_string_ranges_t source, f_string_rangess_t * const destination) {
+#ifndef _di_f_range_doubless_append_
+ f_status_t f_range_doubless_append(const f_range_doubles_t source, f_range_doubless_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!source.used) return F_data_not;
{
- f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
+ f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_doubles_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
- f_string_ranges_t * const destination_inner = &destination->array[destination->used];
+ f_range_doubles_t * const destination_inner = &destination->array[destination->used];
destination_inner->used = 0;
if (source.used) {
- status = f_memory_array_increase_by(source.used, sizeof(f_string_range_t), (void **) &destination_inner->array, &destination_inner->used, &destination_inner->size);
+ status = f_memory_array_increase_by(source.used, sizeof(f_range_double_t), (void **) &destination_inner->array, &destination_inner->used, &destination_inner->size);
if (F_status_is_error(status)) return status;
for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination_inner->used) {
- destination_inner->array[destination_inner->used].start = source.array[i].start;
- destination_inner->array[destination_inner->used].stop = source.array[i].stop;
+ destination_inner->array[destination_inner->used].start_1 = source.array[i].start_1;
+ destination_inner->array[destination_inner->used].stop_1 = source.array[i].stop_1;
+ destination_inner->array[destination_inner->used].start_2 = source.array[i].start_2;
+ destination_inner->array[destination_inner->used].stop_2 = source.array[i].stop_2;
} // for
}
}
return F_okay;
}
-#endif // _di_f_string_rangess_append_
+#endif // _di_f_range_doubless_append_
-#ifndef _di_f_string_rangess_append_all_
- f_status_t f_string_rangess_append_all(const f_string_rangess_t source, f_string_rangess_t * const destination) {
+#ifndef _di_f_range_doubless_append_all_
+ f_status_t f_range_doubless_append_all(const f_range_doubless_t source, f_range_doubless_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!source.used) return F_data_not;
{
- f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_string_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
+ f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_range_doubles_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
- f_string_ranges_t * destination_inner = 0;
+ f_range_doubles_t * destination_inner = 0;
f_number_unsigned_t j = 0;
for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination->used) {
destination_inner->used = 0;
if (source.array[i].used) {
- status = f_memory_array_increase_by(source.array[i].used, sizeof(f_string_range_t), (void **) &destination->array[destination->used].array, &destination->array[destination->used].used, &destination->array[destination->used].size);
+ status = f_memory_array_increase_by(source.array[i].used, sizeof(f_range_double_t), (void **) &destination->array[destination->used].array, &destination->array[destination->used].used, &destination->array[destination->used].size);
if (F_status_is_error(status)) return status;
for (j = 0; j < source.array[i].used; ++j, ++destination_inner->used) {
- destination_inner->array[destination_inner->used].start = source.array[i].array[j].start;
- destination_inner->array[destination_inner->used].stop = source.array[i].array[j].stop;
+ destination_inner->array[destination_inner->used].start_1 = source.array[i].array[j].start_1;
+ destination_inner->array[destination_inner->used].stop_1 = source.array[i].array[j].stop_1;
+ destination_inner->array[destination_inner->used].start_2 = source.array[i].array[j].start_2;
+ destination_inner->array[destination_inner->used].stop_2 = source.array[i].array[j].stop_2;
} // for
}
} // for
return F_okay;
}
-#endif // _di_f_string_rangess_append_all_
+#endif // _di_f_range_doubless_append_all_
-#ifndef _di_f_string_rangess_delete_callback_
- f_status_t f_string_rangess_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
+#ifndef _di_f_range_doubless_delete_callback_
+ f_status_t f_range_doubless_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
{
- f_string_ranges_t * const array = (f_string_ranges_t *) void_array;
+ f_range_doubles_t * const array = (f_range_doubles_t *) void_array;
f_status_t status = F_okay;
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].size && array[i].array) {
- status = f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &array[i].array, &array[i].used, &array[i].size);
+ status = f_memory_array_resize(0, sizeof(f_range_double_t), (void **) &array[i].array, &array[i].used, &array[i].size);
if (F_status_is_error(status)) return status;
}
} // for
return F_okay;
}
-#endif // _di_f_string_rangess_delete_callback_
+#endif // _di_f_range_doubless_delete_callback_
-#ifndef _di_f_string_rangess_destroy_callback_
- f_status_t f_string_rangess_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
+#ifndef _di_f_range_doubless_destroy_callback_
+ f_status_t f_range_doubless_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
{
- f_string_ranges_t * const array = (f_string_ranges_t *) void_array;
+ f_range_doubles_t * const array = (f_range_doubles_t *) void_array;
f_status_t status = F_okay;
for (f_number_unsigned_t i = start; i < stop; ++i) {
if (array[i].size && array[i].array) {
- status = f_memory_array_adjust(0, sizeof(f_string_range_t), (void **) &array[i].array, &array[i].used, &array[i].size);
+ status = f_memory_array_adjust(0, sizeof(f_range_double_t), (void **) &array[i].array, &array[i].used, &array[i].size);
if (F_status_is_error(status)) return status;
}
} // for
return F_okay;
}
-#endif // _di_f_string_rangess_destroy_callback_
+#endif // _di_f_range_doubless_destroy_callback_
#ifdef __cplusplus
} // extern "C"
/**
* FLL - Level 0
*
- * Project: String
+ * Project: Type
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines range string data.
+ * Defines data to be used for/by type (array) related functionality.
*
- * This is auto-included by string.h and should not need to be explicitly included.
+ * This is auto-included by type_array.h and should not need to be explicitly included.
*/
-#ifndef _F_string_rangess_h
-#define _F_string_rangess_h
+#ifndef _F_type_array_range_doubless_h
+#define _F_type_array_range_doubless_h
#ifdef __cplusplus
extern "C" {
#endif
/**
- * This holds an array of f_string_ranges_t.
- *
- * Properties:
- * - array: The array of ranges arrays.
- * - size: Total amount of allocated space.
- * - used: Total number of allocated spaces used.
- */
-#ifndef _di_f_string_rangess_t_
- typedef struct {
- f_string_ranges_t *array;
-
- f_number_unsigned_t size;
- f_number_unsigned_t used;
- } f_string_rangess_t;
-
- #define f_string_rangess_t_initialize { 0, 0, 0 }
-
- #define macro_f_string_rangess_t_initialize_1(array, size, used) { array, size, used }
- #define macro_f_string_rangess_t_initialize_2(array, length) { array, length, length }
-
- #define macro_f_string_rangess_t_clear(rangess) \
- rangess.array = 0; \
- rangess.size = 0; \
- rangess.used = 0;
-#endif // _di_f_string_rangess_t_
-
-/**
* Append the single source ranges onto the destination.
*
* @param source
*
* Errors (with error bit) from: f_memory_resize().
*/
-#ifndef _di_f_string_rangess_append_
- extern f_status_t f_string_rangess_append(const f_string_ranges_t source, f_string_rangess_t * const destination);
-#endif // _di_f_string_rangess_append_
+#ifndef _di_f_range_doubless_append_
+ extern f_status_t f_range_doubless_append(const f_range_doubles_t source, f_range_doubless_t * const destination);
+#endif // _di_f_range_doubless_append_
/**
* Append the source rangess onto the destination.
*
* Errors (with error bit) from: f_memory_resize().
*/
-#ifndef _di_f_string_rangess_append_all_
- extern f_status_t f_string_rangess_append_all(const f_string_rangess_t source, f_string_rangess_t * const destination);
-#endif // _di_f_string_rangess_append_all_
+#ifndef _di_f_range_doubless_append_all_
+ extern f_status_t f_range_doubless_append_all(const f_range_doubless_t source, f_range_doubless_t * const destination);
+#endif // _di_f_range_doubless_append_all_
/**
- * A callback intended to be passed to f_memory_arrayss_resize() for an f_string_rangess_t structure.
+ * A callback intended to be passed to f_memory_arrayss_resize() for an f_range_doubless_t structure.
*
* This is only called when shrinking the array and generally should perform deallocations.
*
*
* @see f_memory_array_resize()
*/
-#ifndef _di_f_string_rangess_delete_callback_
- extern f_status_t f_string_rangess_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
-#endif // _di_f_string_rangess_delete_callback_
+#ifndef _di_f_range_doubless_delete_callback_
+ extern f_status_t f_range_doubless_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
+#endif // _di_f_range_doubless_delete_callback_
/**
- * A callback intended to be passed to f_memory_arrayss_adjust() for an f_string_rangess_t structure.
+ * A callback intended to be passed to f_memory_arrayss_adjust() for an f_range_doubless_t structure.
*
* This is only called when shrinking the array and generally should perform deallocations.
*
*
* @see f_memory_array_adjust()
*/
-#ifndef _di_f_string_rangess_destroy_callback_
- extern f_status_t f_string_rangess_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
-#endif // _di_f_string_rangess_destroy_callback_
+#ifndef _di_f_range_doubless_destroy_callback_
+ extern f_status_t f_range_doubless_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
+#endif // _di_f_range_doubless_destroy_callback_
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _F_string_rangess_h
+#endif // _F_type_array_range_doubless_h
-#include "../string.h"
-#include "../private-string.h"
+#include "../type_array.h"
+#include "ranges.h"
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _di_f_string_ranges_append_
- f_status_t f_string_ranges_append(const f_string_range_t source, f_string_ranges_t * const destination) {
+#ifndef _di_f_ranges_append_
+ f_status_t f_ranges_append(const f_range_t source, f_ranges_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
{
- const f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_string_range_t), (void **) &destination->array, &destination->used, &destination->size);
+ const f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_range_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
}
return F_okay;
}
-#endif // _di_f_string_ranges_append_
+#endif // _di_f_ranges_append_
-#ifndef _di_f_string_ranges_append_all_
- f_status_t f_string_ranges_append_all(const f_string_ranges_t source, f_string_ranges_t * const destination) {
+#ifndef _di_f_ranges_append_all_
+ f_status_t f_ranges_append_all(const f_ranges_t source, f_ranges_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
if (!source.used) return F_data_not;
{
- const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_string_range_t), (void **) &destination->array, &destination->used, &destination->size);
+ const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_range_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
}
return F_okay;
}
-#endif // _di_f_string_ranges_append_all_
+#endif // _di_f_ranges_append_all_
#ifdef __cplusplus
} // extern "C"
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Defines data to be used for/by type (array) related functionality.
+ *
+ * This is auto-included by type_array.h and should not need to be explicitly included.
+ */
+#ifndef _F_type_array_ranges_h
+#define _F_type_array_ranges_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Append the single source range onto the destination.
+ *
+ * @param source
+ * The source range to append.
+ * @param destination
+ * The destination ranges the source is appended onto.
+ *
+ * @return
+ * F_okay on success.
+ * F_data_not on success, but there is nothing to append (size == 0).
+ *
+ * F_parameter (with error bit) if a parameter is invalid.
+ *
+ * Errors (with error bit) from: f_memory_resize().
+ */
+#ifndef _di_f_ranges_append_
+ extern f_status_t f_ranges_append(const f_range_t source, f_ranges_t * const destination);
+#endif // _di_f_ranges_append_
+
+/**
+ * Append the source ranges onto the destination.
+ *
+ * @param source
+ * The source ranges to append.
+ * @param destination
+ * The destination ranges the source is appended onto.
+ *
+ * @return
+ * F_okay on success.
+ * F_data_not on success, but there is nothing to append (size == 0).
+ *
+ * F_parameter (with error bit) if a parameter is invalid.
+ *
+ * Errors (with error bit) from: f_memory_resize().
+ */
+#ifndef _di_f_ranges_append_all_
+ extern f_status_t f_ranges_append_all(const f_ranges_t source, f_ranges_t * const destination);
+#endif // _di_f_ranges_append_all_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_type_array_ranges_h
--- /dev/null
+#include "../type_array.h"
+#include "rangess.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_f_rangess_append_
+ f_status_t f_rangess_append(const f_ranges_t source, f_rangess_t * const destination) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!destination) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (!source.used) return F_data_not;
+
+ {
+ f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
+
+ f_ranges_t * const destination_inner = &destination->array[destination->used];
+ destination_inner->used = 0;
+
+ if (source.used) {
+ status = f_memory_array_increase_by(source.used, sizeof(f_range_t), (void **) &destination_inner->array, &destination_inner->used, &destination_inner->size);
+ if (F_status_is_error(status)) return status;
+
+ for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination_inner->used) {
+
+ destination_inner->array[destination_inner->used].start = source.array[i].start;
+ destination_inner->array[destination_inner->used].stop = source.array[i].stop;
+ } // for
+ }
+ }
+
+ ++destination->used;
+
+ return F_okay;
+ }
+#endif // _di_f_rangess_append_
+
+#ifndef _di_f_rangess_append_all_
+ f_status_t f_rangess_append_all(const f_rangess_t source, f_rangess_t * const destination) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!destination) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (!source.used) return F_data_not;
+
+ {
+ f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_ranges_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
+
+ f_ranges_t * destination_inner = 0;
+ f_number_unsigned_t j = 0;
+
+ for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination->used) {
+
+ destination_inner = &destination->array[destination->used];
+ destination_inner->used = 0;
+
+ if (source.array[i].used) {
+ status = f_memory_array_increase_by(source.array[i].used, sizeof(f_range_t), (void **) &destination->array[destination->used].array, &destination->array[destination->used].used, &destination->array[destination->used].size);
+ if (F_status_is_error(status)) return status;
+
+ for (j = 0; j < source.array[i].used; ++j, ++destination_inner->used) {
+
+ destination_inner->array[destination_inner->used].start = source.array[i].array[j].start;
+ destination_inner->array[destination_inner->used].stop = source.array[i].array[j].stop;
+ } // for
+ }
+ } // for
+ }
+
+ return F_okay;
+ }
+#endif // _di_f_rangess_append_all_
+
+#ifndef _di_f_rangess_delete_callback_
+ f_status_t f_rangess_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
+
+ {
+ f_ranges_t * const array = (f_ranges_t *) void_array;
+ f_status_t status = F_okay;
+
+ for (f_number_unsigned_t i = start; i < stop; ++i) {
+
+ if (array[i].size && array[i].array) {
+ status = f_memory_array_resize(0, sizeof(f_range_t), (void **) &array[i].array, &array[i].used, &array[i].size);
+ if (F_status_is_error(status)) return status;
+ }
+ } // for
+ }
+
+ return F_okay;
+ }
+#endif // _di_f_rangess_delete_callback_
+
+#ifndef _di_f_rangess_destroy_callback_
+ f_status_t f_rangess_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const void_array) {
+
+ {
+ f_ranges_t * const array = (f_ranges_t *) void_array;
+ f_status_t status = F_okay;
+
+ for (f_number_unsigned_t i = start; i < stop; ++i) {
+
+ if (array[i].size && array[i].array) {
+ status = f_memory_array_adjust(0, sizeof(f_range_t), (void **) &array[i].array, &array[i].used, &array[i].size);
+ if (F_status_is_error(status)) return status;
+ }
+ } // for
+ }
+
+ return F_okay;
+ }
+#endif // _di_f_rangess_destroy_callback_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
/**
* FLL - Level 0
*
- * Project: String
+ * Project: Type
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
- * Defines range string data.
+ * Defines data to be used for/by type (array) related functionality.
*
- * This is auto-included by string.h and should not need to be explicitly included.
+ * This is auto-included by type_array.h and should not need to be explicitly included.
*/
-#ifndef _F_string_range_doubless_h
-#define _F_string_range_doubless_h
+#ifndef _F_type_array_rangess_h
+#define _F_type_array_rangess_h
#ifdef __cplusplus
extern "C" {
#endif
/**
- * This holds an array of f_string_range_doubles_t.
- *
- * Properties:
- * - array: The array of ranges arrays.
- * - size: Total amount of allocated space.
- * - used: Total number of allocated spaces used.
- */
-#ifndef _di_f_string_range_doubless_t_
- typedef struct {
- f_string_range_doubles_t *array;
-
- f_number_unsigned_t size;
- f_number_unsigned_t used;
- } f_string_range_doubless_t;
-
- #define f_string_range_doubless_t_initialize { 0, 0, 0 }
-
- #define macro_f_string_range_doubless_t_initialize_1(array, size, used) { array, size, used }
- #define macro_f_string_range_doubless_t_initialize_2(array, length) { array, length, length }
-
- #define macro_f_string_range_doubless_t_clear(rangess) \
- rangess.array = 0; \
- rangess.size = 0; \
- rangess.used = 0;
-#endif // _di_f_string_range_doubless_t_
-
-/**
* Append the single source ranges onto the destination.
*
* @param source
*
* Errors (with error bit) from: f_memory_resize().
*/
-#ifndef _di_f_string_range_doubless_append_
- extern f_status_t f_string_range_doubless_append(const f_string_range_doubles_t source, f_string_range_doubless_t * const destination);
-#endif // _di_f_string_range_doubless_append_
+#ifndef _di_f_rangess_append_
+ extern f_status_t f_rangess_append(const f_ranges_t source, f_rangess_t * const destination);
+#endif // _di_f_rangess_append_
/**
* Append the source rangess onto the destination.
*
* Errors (with error bit) from: f_memory_resize().
*/
-#ifndef _di_f_string_range_doubless_append_all_
- extern f_status_t f_string_range_doubless_append_all(const f_string_range_doubless_t source, f_string_range_doubless_t * const destination);
-#endif // _di_f_string_range_doubless_append_all_
+#ifndef _di_f_rangess_append_all_
+ extern f_status_t f_rangess_append_all(const f_rangess_t source, f_rangess_t * const destination);
+#endif // _di_f_rangess_append_all_
/**
- * A callback intended to be passed to f_memory_arrayss_resize() for an f_string_range_doubless_t structure.
+ * A callback intended to be passed to f_memory_arrayss_resize() for an f_rangess_t structure.
*
* This is only called when shrinking the array and generally should perform deallocations.
*
*
* @see f_memory_array_resize()
*/
-#ifndef _di_f_string_range_doubless_delete_callback_
- extern f_status_t f_string_range_doubless_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
-#endif // _di_f_string_range_doubless_delete_callback_
+#ifndef _di_f_rangess_delete_callback_
+ extern f_status_t f_rangess_delete_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
+#endif // _di_f_rangess_delete_callback_
/**
- * A callback intended to be passed to f_memory_arrayss_adjust() for an f_string_range_doubless_t structure.
+ * A callback intended to be passed to f_memory_arrayss_adjust() for an f_rangess_t structure.
*
* This is only called when shrinking the array and generally should perform deallocations.
*
*
* @see f_memory_array_adjust()
*/
-#ifndef _di_f_string_range_doubless_destroy_callback_
- extern f_status_t f_string_range_doubless_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
-#endif // _di_f_string_range_doubless_destroy_callback_
+#ifndef _di_f_rangess_destroy_callback_
+ extern f_status_t f_rangess_destroy_callback(const f_number_unsigned_t start, const f_number_unsigned_t stop, void * const array);
+#endif // _di_f_rangess_destroy_callback_
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _F_string_range_doubless_h
+#endif // _F_type_array_rangess_h
build_libraries -lc
build_libraries-individual -lf_memory
-build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
+build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/range.c type_array/ranges.c type_array/rangess.c type_array/range_double.c type_array/range_doubles.c type_array/range_doubless.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
-build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
+build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/range.h type_array/ranges.h type_array/rangess.h type_array/range_double.h type_array/range_doubles.h type_array/range_doubless.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
build_script yes
build_shared yes
build_libraries -lc
build_libraries-individual -lf_memory
-build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
+build_sources_library type_array/cell.c type_array/file.c type_array/fll_id.c type_array/int8.c type_array/int16.c type_array/int32.c type_array/int64.c type_array/int128.c type_array/number_signed.c type_array/number_unsigned.c type_array/poll.c type_array/range.c type_array/ranges.c type_array/rangess.c type_array/range_double.c type_array/range_doubles.c type_array/range_doubless.c type_array/state.c type_array/status.c type_array/uint8.c type_array/uint16.c type_array/uint32.c type_array/uint64.c type_array/uint128.c
build_sources_library ../../tests/unit/c/mock-type_array.c
-build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
+build_sources_headers type_array.h type_array_file.h type_array/common.h type_array/cell.h type_array/file.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/number_signed.h type_array/number_unsigned.h type_array/poll.h type_array/range.h type_array/ranges.h type_array/rangess.h type_array/range_double.h type_array/range_doubles.h type_array/range_doubless.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h
build_script yes
build_shared yes
build_sources_program test-type_array-number_signedss_delete_callback.c test-type_array-number_signedss_destroy_callback.c
build_sources_program test-type_array-number_unsignedss_delete_callback.c test-type_array-number_unsignedss_destroy_callback.c
build_sources_program test-type_array-pollss_delete_callback.c test-type_array-pollss_destroy_callback.c
+build_sources_program test-type_array-ranges_append.c test-type_array-ranges_append_all.c test-type_array-rangess_append.c test-type_array-rangess_append_all.c
+build_sources_program test-type_array-rangess_delete_callback.c test-type_array-rangess_destroy_callback.c
+build_sources_program test-type_array-range_doubles_append.c test-type_array-range_doubles_append_all.c test-type_array-range_doubless_append.c test-type_array-range_doubless_append_all.c
+build_sources_program test-type_array-range_doubless_delete_callback.c test-type_array-range_doubless_destroy_callback.c
build_sources_program test-type_array-statess_delete_callback.c test-type_array-statess_destroy_callback.c
build_sources_program test-type_array-statusss_delete_callback.c test-type_array-statusss_destroy_callback.c
build_sources_program test-type_array-uint8ss_delete_callback.c test-type_array-uint8ss_destroy_callback.c
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubles_append.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubles_append__works(void **state) {
+
+ const f_range_double_t source = macro_f_range_double_t_initialize_1(1, 2, 3, 4);
+ f_range_doubles_t destination = f_range_doubles_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubles_append(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, 1);
+ assert_int_equal(destination.array[0].start_1, source.start_1);
+ assert_int_equal(destination.array[0].start_2, source.start_2);
+ assert_int_equal(destination.array[0].stop_1, source.stop_1);
+ assert_int_equal(destination.array[0].stop_2, source.stop_2);
+ }
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_range_doubles_append__parameter_checking(void **state) {
+
+ const f_range_double_t data = f_range_double_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubles_append(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__range_doubles_append_h
+#define _TEST__F_type_array__range_doubles_append_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubles_append()
+ */
+extern void test__f_type_array_range_doubles_append__works(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_range_doubles_append()
+ */
+extern void test__f_type_array_range_doubles_append__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__range_doubles_append_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubles_append_all.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubles_append_all__works(void **state) {
+
+ const int length_sources = 2;
+
+ f_range_double_t sources_array[] = {
+ macro_f_range_double_t_initialize_1(1, 2, 3, 4),
+ macro_f_range_double_t_initialize_1(5, 6, 7, 8),
+ };
+
+ const f_range_doubles_t source = macro_f_range_doubles_t_initialize_1(sources_array, 0, length_sources);
+ f_range_doubles_t destination = f_range_doubles_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubles_append_all(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, source.used);
+ assert_int_equal(destination.size, source.used);
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[i].start_1, source.array[i].start_1);
+ assert_int_equal(destination.array[i].start_2, source.array[i].start_2);
+ assert_int_equal(destination.array[i].stop_1, source.array[i].stop_1);
+ assert_int_equal(destination.array[i].stop_2, source.array[i].stop_2);
+ } // for
+ }
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_range_doubles_append_all__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_range_doubles_t source = f_range_doubles_t_initialize;
+ f_range_doubles_t destination = f_range_doubles_t_initialize;
+
+ {
+ const f_status_t status = f_memory_array_resize(length, sizeof(f_range_double_t), (void **) &source.array, &source.used, &source.size);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_range_doubles_append_all(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_range_doubles_append_all__parameter_checking(void **state) {
+
+ const f_range_doubles_t data = f_range_doubles_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubles_append_all(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__range_doubles_append_all_h
+#define _TEST__F_type_array__range_doubles_append_all_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubles_append_all()
+ */
+extern void test__f_type_array_range_doubles_append_all__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_range_doubles_append_all()
+ */
+extern void test__f_type_array_range_doubles_append_all__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_range_doubles_append_all()
+ */
+extern void test__f_type_array_range_doubles_append_all__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__range_doubles_append_all_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubless_append.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubless_append__works(void **state) {
+
+ const int length_sources = 2;
+
+ f_range_double_t sources_array[] = {
+ macro_f_range_double_t_initialize_1(1, 2, 3, 4),
+ macro_f_range_double_t_initialize_1(5, 6, 7, 8),
+ };
+
+ const f_range_doubles_t source = macro_f_range_doubles_t_initialize_1(sources_array, 0, length_sources);
+ f_range_doubless_t destination = f_range_doubless_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubless_append(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.array[0].used, length_sources);
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[0].array[i].start_1, sources_array[i].start_1);
+ assert_int_equal(destination.array[0].array[i].start_2, sources_array[i].start_2);
+ assert_int_equal(destination.array[0].array[i].stop_1, sources_array[i].stop_1);
+ assert_int_equal(destination.array[0].array[i].stop_2, sources_array[i].stop_2);
+ } // for
+ }
+
+ free((void *) destination.array[0].array);
+ free((void *) destination.array);
+}
+
+void test__f_type_array_range_doubless_append__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_range_doubles_t source = f_range_doubless_t_initialize;
+ f_range_doubless_t destination = f_range_doubless_t_initialize;
+
+ {
+ const f_status_t status = f_memory_arrays_resize(length, sizeof(f_range_doubles_t), (void **) &source.array, &source.used, &source.size, &f_range_doubless_delete_callback);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_range_doubless_append(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_range_doubless_append__parameter_checking(void **state) {
+
+ f_range_doubles_t data = f_range_doubles_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubless_append(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__range_doubless_append_h
+#define _TEST__F_type_array__range_doubless_append_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubless_append()
+ */
+extern void test__f_type_array_range_doubless_append__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_range_doubless_append()
+ */
+extern void test__f_type_array_range_doubless_append__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_range_doubless_append()
+ */
+extern void test__f_type_array_range_doubless_append__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__range_doubless_append_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubless_append_all.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubless_append_all__works(void **state) {
+
+ const int length_sources = 2;
+ const int length_sources_set = 2;
+
+ f_range_double_t sources_array1[] = {
+ macro_f_range_double_t_initialize_1(1, 2, 3, 4),
+ macro_f_range_double_t_initialize_1(5, 6, 7, 8),
+ };
+
+ f_range_double_t sources_array2[] = {
+ macro_f_range_double_t_initialize_1(9, 10, 11, 12),
+ macro_f_range_double_t_initialize_1(13, 14, 15, 16),
+ };
+
+ f_range_doubles_t sources_set_array[] = {
+ macro_f_range_doubles_t_initialize_1(sources_array1, 0, length_sources),
+ macro_f_range_doubles_t_initialize_1(sources_array2, 0, length_sources),
+ };
+
+ const f_range_doubless_t source = macro_f_range_doubless_t_initialize_1(sources_set_array, 0, length_sources_set);
+ f_range_doubless_t destination = f_range_doubless_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubless_append_all(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, source.used);
+
+ for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) {
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[j].array[i].start_1, sources_set_array[j].array[i].start_1);
+ assert_int_equal(destination.array[j].array[i].start_2, sources_set_array[j].array[i].start_2);
+ assert_int_equal(destination.array[j].array[i].stop_1, sources_set_array[j].array[i].stop_1);
+ assert_int_equal(destination.array[j].array[i].stop_2, sources_set_array[j].array[i].stop_2);
+ } // for
+ } // for
+ }
+
+ for (f_number_unsigned_t i = 0; i < destination.used; ++i) {
+ free((void *) destination.array[i].array);
+ } // for
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_range_doubless_append_all__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_range_doubless_t source = f_range_doubless_t_initialize;
+ f_range_doubless_t destination = f_range_doubless_t_initialize;
+
+ {
+ const f_status_t status = f_memory_arrays_resize(length, sizeof(f_range_doubles_t), (void **) &source.array, &source.used, &source.size, &f_range_doubless_delete_callback);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_range_doubless_append_all(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_range_doubless_append_all__parameter_checking(void **state) {
+
+ const f_range_doubless_t data = f_range_doubless_t_initialize;
+
+ {
+ const f_status_t status = f_range_doubless_append_all(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__range_doubless_append_all_h
+#define _TEST__F_type_array__range_doubless_append_all_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubless_append_all()
+ */
+extern void test__f_type_array_range_doubless_append_all__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_range_doubless_append_all()
+ */
+extern void test__f_type_array_range_doubless_append_all__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_range_doubless_append_all()
+ */
+extern void test__f_type_array_range_doubless_append_all__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__range_doubless_append_all_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubless_delete_callback.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubless_delete_callback__fails(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 0;
+
+ f_range_double_t data = f_range_double_t_initialize;
+ f_range_double_t data_array[] = { data };
+ f_range_doubles_t datas = { .array = data_array, .used = 1, .size = 1 };
+ f_range_doubles_t datas_array[] = { datas };
+
+ {
+ will_return(__wrap_f_memory_array_resize, true);
+ will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure));
+
+ const f_status_t status = f_range_doubless_delete_callback(0, 1, (void *) datas_array);
+
+ assert_int_equal(status, F_status_set_error(F_failure));
+ }
+}
+
+void test__f_type_array_range_doubless_delete_callback__works(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 1;
+
+ const f_number_unsigned_t length = 1;
+
+ f_range_doubless_t datass = f_range_doubless_t_initialize;
+
+ {
+ f_status_t status = f_memory_array_resize(length, sizeof(f_range_doubles_t), (void **) &datass.array, &datass.used, &datass.size);
+ assert_int_equal(status, F_okay);
+
+ status = f_memory_array_resize(1, sizeof(f_range_double_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
+ assert_int_equal(status, F_okay);
+ }
+
+ {
+ const f_status_t status = f_range_doubless_delete_callback(0, length, (void *) datass.array);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(datass.array[0].size, 0);
+ }
+
+ free((void *) datass.array);
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type__range_doubless_delete_callback
+#define _TEST__F_type__range_doubless_delete_callback
+
+/**
+ * Test that the function fails.
+ *
+ * @see f_range_doubless_delete_callback()
+ */
+extern void test__f_type_array_range_doubless_delete_callback__fails(void **state);
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubless_delete_callback()
+ */
+extern void test__f_type_array_range_doubless_delete_callback__works(void **state);
+
+#endif // _TEST__F_type__range_doubless_delete_callback
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-range_doubless_destroy_callback.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_range_doubless_destroy_callback__fails(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 0;
+
+ f_range_double_t data = f_range_double_t_initialize;
+ f_range_double_t data_array[] = { data };
+ f_range_doubles_t datas = { .array = data_array, .used = 1, .size = 1 };
+ f_range_doubles_t datas_array[] = { datas };
+
+ {
+ will_return(__wrap_f_memory_array_adjust, true);
+ will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure));
+
+ const f_status_t status = f_range_doubless_destroy_callback(0, 1, (void *) datas_array);
+
+ assert_int_equal(status, F_status_set_error(F_failure));
+ }
+}
+
+void test__f_type_array_range_doubless_destroy_callback__works(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 1;
+
+ const f_number_unsigned_t length = 1;
+
+ f_range_doubless_t datass = f_range_doubless_t_initialize;
+
+ {
+ f_status_t status = f_memory_array_adjust(length, sizeof(f_range_doubles_t), (void **) &datass.array, &datass.used, &datass.size);
+ assert_int_equal(status, F_okay);
+
+ status = f_memory_array_adjust(1, sizeof(f_range_double_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
+ assert_int_equal(status, F_okay);
+ }
+
+ {
+ const f_status_t status = f_range_doubless_destroy_callback(0, length, (void *) datass.array);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(datass.array[0].size, 0);
+ }
+
+ free((void *) datass.array);
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__range_doubless_destroy_callback
+#define _TEST__F_type_array__range_doubless_destroy_callback
+
+/**
+ * Test that the function fails.
+ *
+ * @see f_range_doubless_destroy_callback()
+ */
+extern void test__f_type_array_range_doubless_destroy_callback__fails(void **state);
+
+/**
+ * Test that the function works.
+ *
+ * @see f_range_doubless_destroy_callback()
+ */
+extern void test__f_type_array_range_doubless_destroy_callback__works(void **state);
+
+#endif // _TEST__F_type_array__range_doubless_destroy_callback
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-ranges_append.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_ranges_append__works(void **state) {
+
+ const f_range_t source = macro_f_range_t_initialize_1(1, 2);
+ f_ranges_t destination = f_ranges_t_initialize;
+
+ {
+ const f_status_t status = f_ranges_append(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, 1);
+ assert_int_equal(destination.array[0].start, source.start);
+ assert_int_equal(destination.array[0].stop, source.stop);
+ }
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_ranges_append__parameter_checking(void **state) {
+
+ const f_range_t data = f_range_t_initialize;
+
+ {
+ const f_status_t status = f_ranges_append(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__ranges_append_h
+#define _TEST__F_type_array__ranges_append_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_ranges_append()
+ */
+extern void test__f_type_array_ranges_append__works(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_ranges_append()
+ */
+extern void test__f_type_array_ranges_append__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__ranges_append_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-ranges_append_all.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_ranges_append_all__works(void **state) {
+
+ const int length_sources = 2;
+
+ f_range_t sources_array[] = {
+ macro_f_range_t_initialize_1(1, 2),
+ macro_f_range_t_initialize_1(3, 4),
+ };
+
+ const f_ranges_t source = macro_f_ranges_t_initialize_1(sources_array, 0, length_sources);
+ f_ranges_t destination = f_ranges_t_initialize;
+
+ {
+ const f_status_t status = f_ranges_append_all(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, source.used);
+ assert_int_equal(destination.size, source.used);
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[i].start, source.array[i].start);
+ assert_int_equal(destination.array[i].stop, source.array[i].stop);
+ } // for
+ }
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_ranges_append_all__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_ranges_t source = f_ranges_t_initialize;
+ f_ranges_t destination = f_ranges_t_initialize;
+
+ {
+ const f_status_t status = f_memory_array_resize(length, sizeof(f_range_t), (void **) &source.array, &source.used, &source.size);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_ranges_append_all(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_ranges_append_all__parameter_checking(void **state) {
+
+ const f_ranges_t data = f_ranges_t_initialize;
+
+ {
+ const f_status_t status = f_ranges_append_all(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__ranges_append_all_h
+#define _TEST__F_type_array__ranges_append_all_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_ranges_append_all()
+ */
+extern void test__f_type_array_ranges_append_all__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_ranges_append_all()
+ */
+extern void test__f_type_array_ranges_append_all__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_ranges_append_all()
+ */
+extern void test__f_type_array_ranges_append_all__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__ranges_append_all_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-rangess_append.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_rangess_append__works(void **state) {
+
+ const int length_sources = 2;
+
+ f_range_t sources_array[] = {
+ macro_f_range_t_initialize_1(1, 2),
+ macro_f_range_t_initialize_1(3, 4),
+ };
+
+ const f_ranges_t source = macro_f_ranges_t_initialize_1(sources_array, 0, length_sources);
+ f_rangess_t destination = f_rangess_t_initialize;
+
+ {
+ const f_status_t status = f_rangess_append(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.array[0].used, length_sources);
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[0].array[i].start, sources_array[i].start);
+ assert_int_equal(destination.array[0].array[i].stop, sources_array[i].stop);
+ } // for
+ }
+
+ free((void *) destination.array[0].array);
+ free((void *) destination.array);
+}
+
+void test__f_type_array_rangess_append__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_ranges_t source = f_rangess_t_initialize;
+ f_rangess_t destination = f_rangess_t_initialize;
+
+ {
+ const f_status_t status = f_memory_arrays_resize(length, sizeof(f_ranges_t), (void **) &source.array, &source.used, &source.size, &f_rangess_delete_callback);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_rangess_append(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_rangess_append__parameter_checking(void **state) {
+
+ f_ranges_t data = f_ranges_t_initialize;
+
+ {
+ const f_status_t status = f_rangess_append(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__rangess_append_h
+#define _TEST__F_type_array__rangess_append_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_rangess_append()
+ */
+extern void test__f_type_array_rangess_append__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_rangess_append()
+ */
+extern void test__f_type_array_rangess_append__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_rangess_append()
+ */
+extern void test__f_type_array_rangess_append__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__rangess_append_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-rangess_append_all.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_rangess_append_all__works(void **state) {
+
+ const int length_sources = 2;
+ const int length_sources_set = 2;
+
+ f_range_t sources_array1[] = {
+ macro_f_range_t_initialize_1(1, 2),
+ macro_f_range_t_initialize_1(3, 4),
+ };
+
+ f_range_t sources_array2[] = {
+ macro_f_range_t_initialize_1(5, 6),
+ macro_f_range_t_initialize_1(7, 8),
+ };
+
+ f_ranges_t sources_set_array[] = {
+ macro_f_ranges_t_initialize_1(sources_array1, 0, length_sources),
+ macro_f_ranges_t_initialize_1(sources_array2, 0, length_sources),
+ };
+
+ const f_rangess_t source = macro_f_rangess_t_initialize_1(sources_set_array, 0, length_sources_set);
+ f_rangess_t destination = f_rangess_t_initialize;
+
+ {
+ const f_status_t status = f_rangess_append_all(source, &destination);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(destination.used, source.used);
+
+ for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) {
+
+ for (f_number_unsigned_t i = 0; i < length_sources; ++i) {
+
+ assert_int_equal(destination.array[j].array[i].start, sources_set_array[j].array[i].start);
+ assert_int_equal(destination.array[j].array[i].stop, sources_set_array[j].array[i].stop);
+ } // for
+ } // for
+ }
+
+ for (f_number_unsigned_t i = 0; i < destination.used; ++i) {
+ free((void *) destination.array[i].array);
+ } // for
+
+ free((void *) destination.array);
+}
+
+void test__f_type_array_rangess_append_all__returns_data_not(void **state) {
+
+ const int length = 5;
+ f_rangess_t source = f_rangess_t_initialize;
+ f_rangess_t destination = f_rangess_t_initialize;
+
+ {
+ const f_status_t status = f_memory_arrays_resize(length, sizeof(f_ranges_t), (void **) &source.array, &source.used, &source.size, &f_rangess_delete_callback);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(source.used, 0);
+ assert_int_equal(source.size, length);
+ }
+
+ {
+ const f_status_t status = f_rangess_append_all(source, &destination);
+
+ assert_int_equal(status, F_data_not);
+ assert_int_equal(destination.used, 0);
+ assert_int_equal(destination.size, 0);
+ assert_null(destination.array);
+ }
+
+ free((void *) source.array);
+}
+
+void test__f_type_array_rangess_append_all__parameter_checking(void **state) {
+
+ const f_rangess_t data = f_rangess_t_initialize;
+
+ {
+ const f_status_t status = f_rangess_append_all(data, 0);
+
+ assert_int_equal(status, F_status_set_error(F_parameter));
+ }
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__rangess_append_all_h
+#define _TEST__F_type_array__rangess_append_all_h
+
+/**
+ * Test that the function works.
+ *
+ * @see f_rangess_append_all()
+ */
+extern void test__f_type_array_rangess_append_all__works(void **state);
+
+/**
+ * Test that the function returns F_data_not when asked to copy an empty structure.
+ *
+ * @see f_rangess_append_all()
+ */
+extern void test__f_type_array_rangess_append_all__returns_data_not(void **state);
+
+/**
+ * Test that the function correctly fails on invalid parameter.
+ *
+ * @see f_rangess_append_all()
+ */
+extern void test__f_type_array_rangess_append_all__parameter_checking(void **state);
+
+#endif // _TEST__F_type_array__rangess_append_all_h
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-rangess_delete_callback.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_rangess_delete_callback__fails(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 0;
+
+ f_range_t data = f_range_t_initialize;
+ f_range_t data_array[] = { data };
+ f_ranges_t datas = { .array = data_array, .used = 1, .size = 1 };
+ f_ranges_t datas_array[] = { datas };
+
+ {
+ will_return(__wrap_f_memory_array_resize, true);
+ will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure));
+
+ const f_status_t status = f_rangess_delete_callback(0, 1, (void *) datas_array);
+
+ assert_int_equal(status, F_status_set_error(F_failure));
+ }
+}
+
+void test__f_type_array_rangess_delete_callback__works(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 1;
+
+ const f_number_unsigned_t length = 1;
+
+ f_rangess_t datass = f_rangess_t_initialize;
+
+ {
+ f_status_t status = f_memory_array_resize(length, sizeof(f_ranges_t), (void **) &datass.array, &datass.used, &datass.size);
+ assert_int_equal(status, F_okay);
+
+ status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
+ assert_int_equal(status, F_okay);
+ }
+
+ {
+ const f_status_t status = f_rangess_delete_callback(0, length, (void *) datass.array);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(datass.array[0].size, 0);
+ }
+
+ free((void *) datass.array);
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__rangess_delete_callback
+#define _TEST__F_type_array__rangess_delete_callback
+
+/**
+ * Test that the function fails.
+ *
+ * @see f_rangess_delete_callback()
+ */
+extern void test__f_type_array_rangess_delete_callback__fails(void **state);
+
+/**
+ * Test that the function works.
+ *
+ * @see f_rangess_delete_callback()
+ */
+extern void test__f_type_array_rangess_delete_callback__works(void **state);
+
+#endif // _TEST__F_type_array__rangess_delete_callback
--- /dev/null
+#include "test-type_array.h"
+#include "test-type_array-rangess_destroy_callback.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void test__f_type_array_rangess_destroy_callback__fails(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 0;
+
+ f_range_t data = f_range_t_initialize;
+ f_range_t data_array[] = { data };
+ f_ranges_t datas = { .array = data_array, .used = 1, .size = 1 };
+ f_ranges_t datas_array[] = { datas };
+
+ {
+ will_return(__wrap_f_memory_array_adjust, true);
+ will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure));
+
+ const f_status_t status = f_rangess_destroy_callback(0, 1, (void *) datas_array);
+
+ assert_int_equal(status, F_status_set_error(F_failure));
+ }
+}
+
+void test__f_type_array_rangess_destroy_callback__works(void **state) {
+
+ mock_unwrap = 0;
+ mock_unwrap_f_memory = 1;
+
+ const f_number_unsigned_t length = 1;
+
+ f_rangess_t datass = f_rangess_t_initialize;
+
+ {
+ f_status_t status = f_memory_array_adjust(length, sizeof(f_ranges_t), (void **) &datass.array, &datass.used, &datass.size);
+ assert_int_equal(status, F_okay);
+
+ status = f_memory_array_adjust(1, sizeof(f_range_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size);
+ assert_int_equal(status, F_okay);
+ }
+
+ {
+ const f_status_t status = f_rangess_destroy_callback(0, length, (void *) datass.array);
+
+ assert_int_equal(status, F_okay);
+ assert_int_equal(datass.array[0].size, 0);
+ }
+
+ free((void *) datass.array);
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Type
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Test the array types in the type project.
+ */
+#ifndef _TEST__F_type_array__rangess_destroy_callback
+#define _TEST__F_type_array__rangess_destroy_callback
+
+/**
+ * Test that the function fails.
+ *
+ * @see f_rangess_destroy_callback()
+ */
+extern void test__f_type_array_rangess_destroy_callback__fails(void **state);
+
+/**
+ * Test that the function works.
+ *
+ * @see f_rangess_destroy_callback()
+ */
+extern void test__f_type_array_rangess_destroy_callback__works(void **state);
+
+#endif // _TEST__F_type_array__rangess_destroy_callback
cmocka_unit_test(test__f_type_array_pollss_destroy_callback__fails),
cmocka_unit_test(test__f_type_array_pollss_destroy_callback__works),
+ cmocka_unit_test(test__f_type_array_ranges_append__works),
+ cmocka_unit_test(test__f_type_array_ranges_append_all__works),
+ cmocka_unit_test(test__f_type_array_ranges_append_all__returns_data_not),
+
+ cmocka_unit_test(test__f_type_array_rangess_append__works),
+ cmocka_unit_test(test__f_type_array_rangess_append__returns_data_not),
+ cmocka_unit_test(test__f_type_array_rangess_append_all__works),
+ cmocka_unit_test(test__f_type_array_rangess_append_all__returns_data_not),
+
+ cmocka_unit_test(test__f_type_array_rangess_delete_callback__fails),
+ cmocka_unit_test(test__f_type_array_rangess_destroy_callback__fails),
+ cmocka_unit_test(test__f_type_array_rangess_delete_callback__works),
+ cmocka_unit_test(test__f_type_array_rangess_destroy_callback__works),
+
cmocka_unit_test(test__f_type_array_statess_delete_callback__fails),
cmocka_unit_test(test__f_type_array_statess_delete_callback__works),
// f_pollss_destroy_callback() doesn't use parameter checking.
// f_pollss_delete_callback() doesn't use parameter checking.
+ cmocka_unit_test(test__f_type_array_ranges_append__parameter_checking),
+ cmocka_unit_test(test__f_type_array_ranges_append_all__parameter_checking),
+ cmocka_unit_test(test__f_type_array_rangess_append__parameter_checking),
+ cmocka_unit_test(test__f_type_array_rangess_append_all__parameter_checking),
+
+ // f_rangess_delete_callback() doesn't use parameter checking.
+ // f_rangess_destroy_callback() doesn't use parameter checking.
+
// f_statess_destroy_callback() doesn't use parameter checking.
// f_statess_delete_callback() doesn't use parameter checking.
#include "test-type_array-number_unsignedss_destroy_callback.h"
#include "test-type_array-pollss_delete_callback.h"
#include "test-type_array-pollss_destroy_callback.h"
+#include "test-type_array-ranges_append.h"
+#include "test-type_array-ranges_append_all.h"
+#include "test-type_array-rangess_append.h"
+#include "test-type_array-rangess_append_all.h"
+#include "test-type_array-rangess_delete_callback.h"
+#include "test-type_array-rangess_destroy_callback.h"
#include "test-type_array-statess_delete_callback.h"
#include "test-type_array-statess_destroy_callback.h"
#include "test-type_array-statusss_delete_callback.h"
#endif
#ifndef _di_f_utf_buffer_decrement_
- f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_number_unsigned_t step) {
+ f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_range_t *range, const f_number_unsigned_t step) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (step < 1) return F_status_set_error(F_parameter);
#endif // _di_f_utf_buffer_decrement_
#ifndef _di_f_utf_buffer_increment_
- f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_number_unsigned_t step) {
+ f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_range_t *range, const f_number_unsigned_t step) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (step < 1) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_buffer_decrement_
- extern f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_number_unsigned_t step);
+ extern f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_range_t *range, const f_number_unsigned_t step);
#endif // _di_f_utf_buffer_decrement_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_buffer_increment_
- extern f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_number_unsigned_t step);
+ extern f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_range_t *range, const f_number_unsigned_t step);
#endif // _di_f_utf_buffer_increment_
#ifdef __cplusplus
#endif // _di_f_utf_string_dynamic_mish_nulless_
#ifndef _di_f_utf_string_dynamic_partial_append_
- f_status_t f_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_append_
#ifndef _di_f_utf_string_dynamic_partial_append_assure_
- f_status_t f_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_append_assure_
#ifndef _di_f_utf_string_dynamic_partial_append_assure_nulless_
- f_status_t f_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_append_assure_nulless_
#ifndef _di_f_utf_string_dynamic_partial_append_nulless_
- f_status_t f_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_append_nulless_
#ifndef _di_f_utf_string_dynamic_partial_mash_
- f_status_t f_utf_string_dynamic_partial_mash(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_mash(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_mash_
#ifndef _di_f_utf_string_dynamic_partial_mash_nulless_
- f_status_t f_utf_string_dynamic_partial_mash_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_mash_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_mash_nulless_
#ifndef _di_f_utf_string_dynamic_partial_mish_
- f_status_t f_utf_string_dynamic_partial_mish(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_mish(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_mish_
#ifndef _di_f_utf_string_dynamic_partial_mish_nulless_
- f_status_t f_utf_string_dynamic_partial_mish_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_mish_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_mish_nulless_
#ifndef _di_f_utf_string_dynamic_partial_prepend_
- f_status_t f_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_prepend_
#ifndef _di_f_utf_string_dynamic_partial_prepend_assure_
- f_status_t f_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_prepend_assure_
#ifndef _di_f_utf_string_dynamic_partial_prepend_assure_nulless_
- f_status_t f_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_partial_prepend_assure_nulless
#ifndef _di_f_utf_string_dynamic_partial_prepend_nulless_
- f_status_t f_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination) {
+ f_status_t f_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_dynamic_prepend_nulless_
#ifndef _di_f_utf_string_dynamic_seek_line_
- f_status_t f_utf_string_dynamic_seek_line(const f_utf_string_static_t buffer, f_string_range_t * const range) {
+ f_status_t f_utf_string_dynamic_seek_line(const f_utf_string_static_t buffer, f_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_
#endif // _di_f_utf_string_dynamic_seek_line_
#ifndef _di_f_utf_string_dynamic_seek_line_to_
- f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_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_
#endif // _di_f_utf_string_dynamic_seek_line_to_
#ifndef _di_f_utf_string_dynamic_seek_to_
- f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range) {
+ f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_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_
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_append_
- extern f_status_t f_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_append_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_append_assure_
- extern f_status_t f_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_append_assure_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_append_assure_nulless_
- extern f_status_t f_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_append_assure_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_append_nulless_
- extern f_status_t f_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_append_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_mash_
- extern f_status_t f_utf_string_dynamic_partial_mash(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_mash(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_mash_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_mash_nulless_
- extern f_status_t f_utf_string_dynamic_partial_mash_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_mash_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_mash_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_mish_
- extern f_status_t f_utf_string_dynamic_partial_mish(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_mish(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_mish_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_mish_nulless_
- extern f_status_t f_utf_string_dynamic_partial_mish_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_mish_nulless(const f_utf_string_static_t glue, const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_mish_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_prepend_
- extern f_status_t f_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_prepend_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_prepend_assure_
- extern f_status_t f_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_prepend_assure_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_prepend_assure_nulless_
- extern f_status_t f_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_prepend_assure_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_partial_prepend_nulless_
- extern f_status_t f_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_string_range_t range, f_utf_string_dynamic_t * const destination);
+ extern f_status_t f_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_range_t range, f_utf_string_dynamic_t * const destination);
#endif // _di_f_utf_string_dynamic_partial_prepend_nulless_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_seek_line_
- extern f_status_t f_utf_string_dynamic_seek_line(const f_utf_string_static_t buffer, f_string_range_t * const range);
+ extern f_status_t f_utf_string_dynamic_seek_line(const f_utf_string_static_t buffer, f_range_t * const range);
#endif // _di_f_utf_string_dynamic_seek_line_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_seek_line_to_
- extern f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_range_t * const range);
#endif // _di_f_utf_string_dynamic_seek_line_to_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_dynamic_seek_to_
- extern f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_string_range_t * const range);
+ extern f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_utf_char_t seek_to_this, f_range_t * const range);
#endif // _di_f_utf_string_dynamic_seek_to_
/**
#endif // _di_f_utf_string_prepend_nulless_
#ifndef _di_f_utf_string_seek_line_
- f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t *range) {
+ f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_seek_line_
#ifndef _di_f_utf_string_seek_line_to_
- f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
#endif // _di_f_utf_string_seek_line_to_
#ifndef _di_f_utf_string_seek_to_
- f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_seek_line_
- extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_string_seek_line_to_
- extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_to_
/**
* F_utf_not (with error bit) if unicode is an invalid Unicode character.
*/
#ifndef _di_f_utf_string_seek_to_
- extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_to_
#ifdef __cplusplus
#endif // _di_f_utf_string_prepend_nulless_
#ifndef _di_f_utf_string_seek_line_
- f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t *range) {
+ f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_seek_line_
#ifndef _di_f_utf_string_seek_line_to_
- f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
#endif // _di_f_utf_string_seek_line_to_
#ifndef _di_f_utf_string_seek_to_
- f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_seek_line_
- extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_string_seek_line_to_
- extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_to_
/**
* F_utf_not (with error bit) if unicode is an invalid Unicode character.
*/
#ifndef _di_f_utf_string_seek_to_
- extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_to_
#ifdef __cplusplus
#endif // _di_f_utf_string_prepend_nulless_
#ifndef _di_f_utf_string_seek_line_
- f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t *range) {
+ f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_string_seek_line_
#ifndef _di_f_utf_string_seek_line_to_
- f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
#endif // _di_f_utf_string_seek_line_to_
#ifndef _di_f_utf_string_seek_to_
- f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range) {
+ f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_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_
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_f_utf_string_seek_line_
- extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line(const f_utf_string_t string, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_string_seek_line_to_
- extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_line_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_line_to_
/**
* F_utf_not (with error bit) if unicode is an invalid Unicode character.
*/
#ifndef _di_f_utf_string_seek_to_
- extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_string_range_t * const range);
+ extern f_status_t f_utf_string_seek_to(const f_utf_string_t string, const f_utf_char_t seek_to, f_range_t * const range);
#endif // _di_f_utf_string_seek_to_
#ifdef __cplusplus
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_append__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_append(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_append_assure__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_append_assure(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_append_assure_nulless__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_append_assure_nulless(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_append_nulless__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_append_nulless(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected1 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
const f_utf_string_static_t expected2 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0:\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 11);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
const f_utf_string_static_t glue = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0:", 0, 1);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_mash(glue, source, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected1 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
const f_utf_string_static_t expected2 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0:\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 9);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
const f_utf_string_static_t glue = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0:", 0, 1);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_mash_nulless(glue, source, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected1 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
const f_utf_string_static_t expected2 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0:\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 11);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
const f_utf_string_static_t glue = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0:", 0, 1);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_mish(glue, source, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected1 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
const f_utf_string_static_t expected2 = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0:\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 9);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
const f_utf_string_static_t glue = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0:", 0, 1);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_mish_nulless(glue, source, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_prepend__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_prepend(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t", 0, 5);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_prepend_assure__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_prepend_assure(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_prepend_assure_nulless__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_prepend_assure_nulless(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0_\0\0\0t\0\0\0e\0\0\0\0\0\0\0s\0\0\0t\0\0\0_", 0, 7);
const f_utf_string_static_t expected = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
- const f_string_range_t partial = macro_f_string_range_t_initialize_1(1, 5);
+ const f_range_t partial = macro_f_range_t_initialize_1(1, 5);
f_utf_string_dynamic_t destination = f_utf_string_dynamic_t_initialize;
{
void test__f_utf_string_dynamic_partial_prepend_nulless__parameter_checking(void **state) {
const f_utf_string_dynamic_t data = f_utf_string_dynamic_t_initialize;
- const f_string_range_t partial = f_string_range_t_initialize;
+ const f_range_t partial = f_range_t_initialize;
{
const f_status_t status = f_utf_string_dynamic_partial_prepend_nulless(data, partial, 0);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_dynamic_seek_line(source, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_line(source, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_utf_string_dynamic_seek_line(source, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_line(source, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\n\0\0\0X\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0X\0\0\0\n\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\n\0\0\0X\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0X\0\0\0\n\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 2);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 2);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
// Test where newline is before "X".
{
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\n\0\0\0X\0\0\0s\0\0\0t", 0, 6);
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
// Test where newline is after "X".
{
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0X\0\0\0\n\0\0\0s\0\0\0t", 0, 6);
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_seek_line(source.string, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_line(source.string, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_line(source.string, &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\n\0\0\0X\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0X\0\0\0\n\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t", 0, 4);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0\n\0\0\0X\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0X\0\0\0\n\0\0\0s\0\0\0t", 0, 6);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range);
const f_utf_string_static_t source = macro_f_utf_string_static_t_initialize_1((f_utf_string_t) "\0\0\0t\0\0\0e\0\0\0s\0\0\0t\0\0\0\n\0\0\0a\0\0\0f\0\0\0t\0\0\0e\0\0\0r", 0, 10);
{
- f_string_range_t range = macro_f_string_range_t_initialize_1(0, source.used - 1);
+ f_range_t range = macro_f_range_t_initialize_1(0, source.used - 1);
const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range);
#endif
#ifndef _di_fl_conversion_dynamic_partial_to_signed_
- f_status_t fl_conversion_dynamic_partial_to_signed(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_signed(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_conversion_dynamic_partial_to_signed_
#ifndef _di_fl_conversion_dynamic_partial_to_unsigned_
- f_status_t fl_conversion_dynamic_partial_to_unsigned(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_unsigned(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_conversion_dynamic_partial_to_unsigned_
#ifndef _di_fl_conversion_dynamic_partial_to_signed_detect_
- f_status_t fl_conversion_dynamic_partial_to_signed_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_signed_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_signed_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_conversion_dynamic_partial_to_signed_detect_
#ifndef _di_fl_conversion_dynamic_partial_to_unsigned_detect_
- f_status_t fl_conversion_dynamic_partial_to_unsigned_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number) {
+ f_status_t fl_conversion_dynamic_partial_to_unsigned_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const number) {
#ifndef _di_level_1_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_signed_
- extern f_status_t fl_conversion_dynamic_partial_to_signed(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_signed(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_signed_
/**
* @see strtoll()
*/
#ifndef _di_fl_conversion_dynamic_partial_to_signed_detect_
- extern f_status_t fl_conversion_dynamic_partial_to_signed_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_signed_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_signed_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_signed_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_signed_detect_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_dynamic_partial_to_unsigned_
- extern f_status_t fl_conversion_dynamic_partial_to_unsigned(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_unsigned(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_unsigned_
/**
* @see strtoull()
*/
#ifndef _di_fl_conversion_dynamic_partial_to_unsigned_detect_
- extern f_status_t fl_conversion_dynamic_partial_to_unsigned_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const number);
+ extern f_status_t fl_conversion_dynamic_partial_to_unsigned_detect(const fl_conversion_data_t data, const f_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const number);
#endif // _di_fl_conversion_dynamic_partial_to_unsigned_detect_
/**
#endif
#ifndef _di_fl_fss_basic_content_read_
- void fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_basic_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
return;
}
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &found->array, &found->used, &found->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &found->array, &found->used, &found->size);
if (F_status_is_error(state->status)) return;
found->array[found->used].start = range->start;
#endif // _di_fl_fss_basic_content_read_
#ifndef _di_fl_fss_basic_content_write_
- void fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_basic_content_write_
#ifndef _di_fl_fss_basic_object_read_
- void fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_basic_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_basic_object_read_
#ifndef _di_fl_fss_basic_object_write_
- void fl_fss_basic_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_basic_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_content_read_
- extern void fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_basic_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_basic_content_read_
/**
* @see f_memory_array_increase_by()
*/
#ifndef _di_fl_fss_basic_content_write_
- extern void fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_basic_content_write(const f_string_static_t content, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_basic_content_write_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_object_read_
- extern void fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_basic_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_basic_object_read_
/**
* @see f_memory_array_increase_by()
*/
#ifndef _di_fl_fss_basic_object_write_
- extern void fl_fss_basic_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_basic_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_basic_object_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_list_content_read_
- void fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fl_fss_basic_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
return;
}
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &found->array, &found->used, &found->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &found->array, &found->used, &found->size);
if (F_status_is_error(state->status)) return;
found->array[found->used].start = range->start;
f_fss_seek_to_eol(buffer, range, state);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &comments->array, &comments->used, &comments->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &comments->array, &comments->used, &comments->size);
if (F_status_is_error(state->status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
#endif // _di_fl_fss_basic_list_content_read_
#ifndef _di_fl_fss_basic_list_content_write_
- void fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, f_string_range_t *range, f_string_dynamic_t *destination, f_state_t * const state) {
+ void fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, f_range_t *range, f_string_dynamic_t *destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_basic_list_content_write_
#ifndef _di_fl_fss_basic_list_object_read_
- void fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_basic_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_basic_list_object_read_
#ifndef _di_fl_fss_basic_list_object_write_
- void fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_list_content_read_
- extern void fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fl_fss_basic_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fl_fss_basic_list_content_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_list_content_write_
- extern void fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_basic_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_basic_list_content_write_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_list_object_read_
- extern void fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_basic_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_basic_list_object_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_basic_list_object_write_
- extern void fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_basic_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_basic_list_object_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_embedded_list_content_read_
- void fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_fss_nest_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_fss_nest_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
if (F_status_is_error(state->status)) return;
- f_string_ranges_t objects = f_string_ranges_t_initialize;
+ f_ranges_t objects = f_ranges_t_initialize;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
if (F_status_is_error(state->status)) {
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
if (F_status_is_error(state->status)) {
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
return;
}
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
else {
if (range->start >= buffer.used || range->start > range->stop) {
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
if (F_status_is_error(state->status)) break;
state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
if (F_status_is_error(state->status)) break;
state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
position = found->depth[depth].used;
if (found->depth[depth].array[position].content.size != 1) {
- state->status = f_memory_array_resize(1, sizeof(f_string_range_t), (void **) &found->depth[depth].array[position].content.array, &found->depth[depth].array[position].content.used, &found->depth[depth].array[position].content.size);
+ state->status = f_memory_array_resize(1, sizeof(f_range_t), (void **) &found->depth[depth].array[position].content.array, &found->depth[depth].array[position].content.used, &found->depth[depth].array[position].content.size);
if (F_status_is_error(state->status)) break;
}
if (F_status_is_error(state->status)) break;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
if (range->start >= buffer.used) {
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_end_not_nest_eos : F_end_not_nest_stop;
comments->used = comments_used;
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop;
f_fss_seek_to_eol(buffer, range, state);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &comments->array, &comments->used, &comments->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &comments->array, &comments->used, &comments->size);
if (F_status_is_error(state->status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
} // while
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &positions_start.array, &positions_start.used, &positions_start.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size);
delimits->used = delimits_used;
#endif // _di_fl_fss_embedded_list_content_read_
#ifndef _di_fl_fss_embedded_list_content_write_
- void fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_ranges_t * const ignore, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_embedded_list_content_write_
#ifndef _di_fl_fss_embedded_list_object_read_
- void fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_embedded_list_object_read_
#ifndef _di_fl_fss_embedded_list_object_write_
- void fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_embedded_list_content_read_
- extern void fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_fss_nest_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_fss_nest_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fl_fss_embedded_list_content_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_embedded_list_content_write_
- extern void fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_embedded_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_ranges_t * const ignore, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_embedded_list_content_write_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_embedded_list_object_read_
- extern void fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_embedded_list_object_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_embedded_list_object_write_
- extern void fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_embedded_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_embedded_list_object_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_content_read_
- void fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_uint8s_t * const quotes, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_extended_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_uint8s_t * const quotes, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
while (range->start <= range->stop && range->start < buffer.used) {
- f_string_range_t content_partial = f_string_range_t_initialize;
+ f_range_t content_partial = f_range_t_initialize;
private_fl_fss_basic_read(buffer, F_false, range, &content_partial, "e, delimits, state);
if (state->status == F_fss_found_object || F_status_set_fine(state->status) == F_fss_found_object_content_not) {
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &found->array, &found->used, &found->size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &found->array, &found->used, &found->size);
// The private function sets the error bit on unterminated quoted Object.
if (state->status == F_status_set_error(F_fss_found_object_content_not)) {
#endif // _di_fl_fss_extended_content_read_
#ifndef _di_fl_fss_extended_content_write_
- void fl_fss_extended_content_write(const f_string_static_t content, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_extended_content_write(const f_string_static_t content, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_extended_content_write_
#ifndef _di_fl_fss_extended_object_read_
- void fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_extended_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_extended_object_read_
#ifndef _di_fl_fss_extended_object_write_
-void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see fl_fss_extended_content_read()
*/
#ifndef _di_fl_fss_extended_content_read_
- extern void fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_uint8s_t * const quotes, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_extended_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_uint8s_t * const quotes, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_extended_content_read_
/**
* @see fl_fss_extended_content_write()
*/
#ifndef _di_fl_fss_extended_content_write_
- extern void fl_fss_extended_content_write(const f_string_static_t content, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_extended_content_write(const f_string_static_t content, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_extended_content_write_
/**
* @see fl_fss_extended_content_read()
*/
#ifndef _di_fl_fss_extended_object_read_
- extern void fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_extended_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_extended_object_read_
/**
* @see f_memory_array_increase_by()
*/
#ifndef _di_fl_fss_extended_object_write_
- extern void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t quote, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_extended_object_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_list_content_read_
- void fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fl_fss_extended_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
return;
}
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &found->array, &found->used, &found->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &found->array, &found->used, &found->size);
if (F_status_is_error(state->status)) return;
found->array[found->used].start = range->start;
f_fss_seek_to_eol(buffer, range, state);
if (F_status_is_error(state->status)) break;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &comments->array, &comments->used, &comments->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &comments->array, &comments->used, &comments->size);
if (F_status_is_error(state->status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
#endif // _di_fl_fss_extended_list_content_read_
#ifndef _di_fl_fss_extended_list_content_write_
- void fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_ranges_t * const ignore, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_extended_list_content_write_
#ifndef _di_fl_fss_extended_list_object_read_
- void fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void fl_fss_extended_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
#endif // _di_fl_fss_extended_list_object_read_
#ifndef _di_fl_fss_extended_list_object_write_
- void fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_extended_list_content_read_
- extern void fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const found, f_number_unsigneds_t * const delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fl_fss_extended_list_content_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const found, f_number_unsigneds_t * const delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fl_fss_extended_list_content_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_extended_list_content_write_
- extern void fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_string_ranges_t * const ignore, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_extended_list_content_write(const f_string_static_t content, const uint8_t complete, const f_string_static_t * const prepend, const f_ranges_t * const ignore, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_extended_list_content_write_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_extended_list_object_read_
- extern void fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
+ extern void fl_fss_extended_list_object_read(const f_string_static_t buffer, f_range_t * const range, f_range_t * const found, f_number_unsigneds_t * const delimits, f_state_t * const state);
#endif // _di_fl_fss_extended_list_object_read_
/**
* @see f_utf_buffer_increment()
*/
#ifndef _di_fl_fss_extended_list_object_write_
- extern void fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fl_fss_extended_list_object_write(const f_string_static_t object, const uint8_t complete, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fl_fss_extended_list_object_write_
#ifdef __cplusplus
* - i: A counter used for the "headers" outer arrays.
* - j: A counter used for the inner loop or for pre-allocation counting.
* - k: A number used for converting values but also made available for use as a counter if need be.
+ * - l: @todo
+ * - range: @todo
* - conversion: The conversion data.
* - destinations: The destinations map being appended to.
* - original: The original destination used length.
f_number_unsigned_t j;
f_number_unsigned_t k;
f_number_unsigned_t l;
- f_string_range_t range;
+ f_range_t range;
f_conversion_data_t conversion;
f_string_maps_t * const destinations;
0, \
0, \
0, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
f_conversion_data_base_10_c, \
0, \
0, \
0, \
0, \
0, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
f_conversion_data_base_10_c, \
destinations, \
original, \
#endif
#if !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
- void private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) {
state->status = F_okay;
#if !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
void private_fl_fss_basic_list_write_object_trim(const f_number_unsigned_t used_start, f_string_dynamic_t * const destination, f_state_t * const state) {
- f_string_range_t destination_range = macro_f_string_range_t_initialize_2(destination->used);
+ f_range_t destination_range = macro_f_range_t_initialize_2(destination->used);
f_number_unsigned_t i = 0;
uint8_t width = 0;
#endif // !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_)
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- void private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
+ void private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) {
f_fss_skip_past_space(buffer, range, state);
if (F_status_is_error(state->status)) return;
#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_)
#if !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_) || !defined(_di_fl_fss_extended_content_write_)
- void private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const uint8_t quote, f_string_range_t *range, f_string_dynamic_t *destination, f_state_t * const state, void * const internal) {
+ void private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const uint8_t quote, f_range_t *range, f_string_dynamic_t *destination, f_state_t * const state, void * const internal) {
f_fss_skip_past_space(object, range, state);
if (F_status_is_error(state->status)) return;
// Only when followed by a space must the start quote be delimited.
if (i <= range->stop && i < object.used) {
- f_string_range_t range_i = *range;
+ f_range_t range_i = *range;
range_i.start = i;
#if !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_)
void private_fl_fss_basic_write_object_trim(const uint8_t quote, const f_number_unsigned_t used_start, f_string_dynamic_t * const destination, f_state_t * const state) {
- f_string_range_t destination_range = macro_f_string_range_t_initialize_2(destination->used);
+ f_range_t destination_range = macro_f_range_t_initialize_2(destination->used);
f_number_unsigned_t i = 0;
uint8_t width = 0;
* @see fl_fss_extended_list_content_write()
*/
#if !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
- extern void private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) F_attribute_visibility_internal_d;
+ extern void private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_)
/**
* @see fl_fss_extended_content_read()
*/
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- extern void private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t * const range, f_string_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) F_attribute_visibility_internal_d;
+ extern void private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_range_t * const range, f_range_t * const found, uint8_t * const quote, f_number_unsigneds_t * const delimits, f_state_t * const state) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
/**
* @see fl_fss_extended_content_write()
*/
#if !defined(fl_fss_basic_object_write) || !defined(fl_fss_extended_object_write) || !defined(_di_fl_fss_extended_content_write_)
- extern void private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const uint8_t quote, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state, void * const internal) F_attribute_visibility_internal_d;
+ extern void private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const uint8_t quote, f_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state, void * const internal) F_attribute_visibility_internal_d;
#endif // !defined(fl_fss_basic_object_write) || !defined(fl_fss_extended_object_write) || !defined(_di_fl_fss_extended_content_write_)
/**
#endif
#ifndef _di_fl_iki_read_
- void fl_iki_read(f_string_static_t * const buffer, f_string_range_t * const range, f_iki_data_t * const data, f_state_t * const state) {
+ void fl_iki_read(f_string_static_t * const buffer, f_range_t * const range, f_iki_data_t * const data, f_state_t * const state) {
#ifndef _di_level_1_parameter_checking_
if (!state) return;
* @see f_iki_read()
*/
#ifndef _di_fl_iki_read_
- extern void fl_iki_read(f_string_static_t * const buffer, f_string_range_t * const range, f_iki_data_t * const data, f_state_t * const state);
+ extern void fl_iki_read(f_string_static_t * const buffer, f_range_t * const range, f_iki_data_t * const data, f_state_t * const state);
#endif // _di_fl_iki_read_
#ifdef __cplusplus
#endif // _di_fl_print_trim_dynamic_safely_
#ifndef _di_fl_print_trim_dynamic_partial_
- f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_dynamic_partial_
#ifndef _di_fl_print_trim_dynamic_partial_raw_
- f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_dynamic_partial_raw_
#ifndef _di_fl_print_trim_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_dynamic_partial_safely_
- f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) {
+ f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in(string, offset, offset + length, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw(string, offset, offset + length, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw_safely(string, offset, offset + length, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_safely(string, offset, offset + length, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in(buffer.string, 0, buffer.used, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, file);
}
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, file);
}
#endif // _di_fl_print_trim_except_dynamic_safely_
#ifndef _di_fl_print_trim_except_in_
- f_status_t fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
#endif // _di_fl_print_trim_except_in_
#ifndef _di_fl_print_trim_except_in_raw_
- f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
#endif // _di_fl_print_trim_except_in_raw_
#ifndef _di_fl_print_trim_except_in_raw_safely_
- f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
#endif // _di_fl_print_trim_except_in_raw_safely_
#ifndef _di_fl_print_trim_except_in_safely_
- f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!string || !length) return F_data_not;
#endif // _di_fl_print_trim_except_in_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_
- f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_
#ifndef _di_fl_print_trim_except_in_dynamic_raw_
- f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_raw_
#ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_
- f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_raw_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_safely_
- f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_
- f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_partial_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_
- f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_
- f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
#endif // _di_fl_print_trim_except_in_dynamic_partial_safely_
#ifndef _di_fl_print_trim_except_dynamic_partial_
- f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
length = buffer.used - range.start;
}
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in(buffer.string, range.start, range.start + length, except, except_in, file);
}
#endif // _di_fl_print_trim_except_dynamic_partial_
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_
- f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
length = buffer.used - range.start;
}
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw(buffer.string, range.start, range.start + length, except, except_in, file);
}
#endif // _di_fl_print_trim_except_dynamic_partial_raw_
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_
- f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
length = buffer.used - range.start;
}
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_raw_safely(buffer.string, range.start, range.start + length, except, except_in, file);
}
#endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_
#ifndef _di_fl_print_trim_except_dynamic_partial_safely_
- f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
+ f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file) {
if (!file.stream) return F_stream_not;
if (!buffer.used || range.start > range.stop || range.start >= buffer.used) return F_data_not;
length = buffer.used - range.start;
}
- const f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ const f_ranges_t except_in = f_ranges_t_initialize;
return private_fl_print_trim_except_in_safely(buffer.string, range.start, range.start + length, except, except_in, file);
}
* - "-": Use left-justification.
* - "#": Use alternate form conversion (prefixing 0b/0B, 0o/0O, 0t/0T, 0d/0D, 0x/0X).
* - ";": Ignore characters in the given positions from a f_number_unsigned_t (only applies to static/dynamic string arguments but not character arguments).
- * - ":": Ignore characters in the given ranges from a f_string_range_t (only applies to static/dynamic string arguments but not character arguments).
- * - "/", Print only the given range of a string, specified by f_string_range_t (only applies to static/dynamic string arguments but not character arguments).
+ * - ":": Ignore characters in the given ranges from a f_range_t (only applies to static/dynamic string arguments but not character arguments).
+ * - "/", Print only the given range of a string, specified by f_range_t (only applies to static/dynamic string arguments but not character arguments).
* - "+", Always show the signs (+ or -).
* - " ", Add a space where a sign would be if the sign is not displayed (this is the space character).
* - "=", Trim leading and trailing whitespaces (only applies to static/dynamic string arguments but not character arguments).
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_dynamic_partial_
- extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_fl_print_trim_dynamic_partial_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_dynamic_partial_raw_
- extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_fl_print_trim_dynamic_partial_raw_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_fl_print_trim_dynamic_partial_raw_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_dynamic_partial_safely_
- extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file);
+ extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_file_t file);
#endif // _di_fl_print_trim_dynamic_partial_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_
- extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_raw_
- extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_raw_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_raw_safely_
- extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_raw_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_safely_
- extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_
- extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_raw_
- extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_raw_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_raw_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_
- extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_partial_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_
- extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file);
+ extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file);
#endif // _di_fl_print_trim_except_in_dynamic_partial_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_
- extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_fl_print_trim_except_dynamic_partial_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_
- extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_fl_print_trim_except_dynamic_partial_raw_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_
- extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_safely_
- extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, const f_file_t file);
+ extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, const f_file_t file);
#endif // _di_fl_print_trim_except_dynamic_partial_safely_
#ifdef __cplusplus
const f_string_static_t value = va_arg(apl, f_string_static_t);
if (flag & F_print_format_flag_range_d) {
- const f_string_range_t partial = va_arg(apl, f_string_range_t);
+ const f_range_t partial = va_arg(apl, f_range_t);
if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (partial.start > partial.stop || partial.start >= value.used) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (partial.start > partial.stop || partial.start >= value.used) {
*status = F_data_not;
}
else if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (flag & F_print_format_flag_trim_d) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (flag & F_print_format_flag_trim_d) {
*status = private_fl_print_trim_except_in_safely(value.string, 0, value.used, except_at, except_in, file);
const f_string_static_t value = va_arg(apl, f_string_static_t);
if (flag & F_print_format_flag_range_d) {
- const f_string_range_t partial = va_arg(apl, f_string_range_t);
+ const f_range_t partial = va_arg(apl, f_range_t);
if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (partial.start > partial.stop || partial.start >= value.used) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (partial.start > partial.stop || partial.start >= value.used) {
*status = F_data_not;
}
else if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (flag & F_print_format_flag_trim_d) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (flag & F_print_format_flag_trim_d) {
*status = private_fl_print_trim_except_in_raw_safely(value.string, 0, value.used, except_at, except_in, file);
const f_string_static_t value = va_arg(apl, f_string_static_t);
if (flag & F_print_format_flag_range_d) {
- const f_string_range_t partial = va_arg(apl, f_string_range_t);
+ const f_range_t partial = va_arg(apl, f_range_t);
if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (partial.start > partial.stop || partial.start >= value.used) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (partial.start > partial.stop || partial.start >= value.used) {
*status = F_data_not;
}
else if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (flag & F_print_format_flag_trim_d) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (flag & F_print_format_flag_trim_d) {
*status = private_fl_print_trim_except_in(value.string, 0, value.used, except_at, except_in, file);
const f_string_static_t value = va_arg(apl, f_string_static_t);
if (flag & F_print_format_flag_range_d) {
- const f_string_range_t partial = va_arg(apl, f_string_range_t);
+ const f_range_t partial = va_arg(apl, f_range_t);
if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (partial.start > partial.stop || partial.start >= value.used) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (partial.start > partial.stop || partial.start >= value.used) {
*status = F_data_not;
}
else if (flag & F_print_format_flag_ignore_index_d) {
const f_number_unsigneds_t except_at = va_arg(apl, f_number_unsigneds_t);
- f_string_ranges_t except_in = f_string_ranges_t_initialize;
+ f_ranges_t except_in = f_ranges_t_initialize;
if (flag & F_print_format_flag_ignore_range_d) {
- except_in = va_arg(apl, f_string_ranges_t);
+ except_in = va_arg(apl, f_ranges_t);
}
if (flag & F_print_format_flag_trim_d) {
}
else if (flag & F_print_format_flag_ignore_range_d) {
const f_number_unsigneds_t except_at = f_number_unsigneds_t_initialize;
- const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t);
+ const f_ranges_t except_in = va_arg(apl, f_ranges_t);
if (flag & F_print_format_flag_trim_d) {
*status = private_fl_print_trim_except_in_raw(value.string, 0, value.used, except_at, except_in, file);
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_)
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
- f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t j = 0;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
- f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t j = 0;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
- f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t j = 0;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_)
- f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) {
+ f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) {
f_number_unsigned_t i = offset;
f_number_unsigned_t j = 0;
* @see fl_print_trim_except_in_dynamic_partial()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
- extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_)
/**
* @see fl_print_trim_except_in_dynamic_partial_raw()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
- extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_)
/**
* @see fl_print_trim_except_in_dynamic_partial_raw_safely()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
- extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_)
/**
* @see fl_print_trim_except_safely()
*/
#if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_)
- extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
+ extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t stop, const f_number_unsigneds_t except_at, const f_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d;
#endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_)
/**
#endif // _di_fl_utf_file_write_until_
#ifndef _di_fl_utf_file_write_range_
- f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t destination, const f_string_range_t range, f_number_unsigned_t * const written) {
+ f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t destination, const f_range_t range, f_number_unsigned_t * const written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (range.start >= destination.used) return F_status_set_error(F_parameter);
* @see write()
*/
#ifndef _di_fl_utf_file_write_range_
- extern f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_string_range_t range, f_number_unsigned_t * const written);
+ extern f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_range_t range, f_number_unsigned_t * const written);
#endif // _di_fl_utf_file_write_range_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_identify_
- f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_ids_t * const ids) {
+ f_status_t fll_fss_identify(const f_string_static_t buffer, f_range_t * const range, f_fll_ids_t * const ids) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_fss_identify_
#ifndef _di_fll_fss_snatch_
- f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
+ f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_
#ifndef _di_fll_fss_snatch_apart_
- f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
if (!contents.used) return F_data_not;
f_status_t status = F_okay;
- f_string_ranges_t *content = 0;
+ f_ranges_t *content = 0;
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
#endif // _di_fll_fss_snatch_apart_
#ifndef _di_fll_fss_snatch_map_
- f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_
#ifndef _di_fll_fss_snatch_map_apart_
- f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_apart_
#ifndef _di_fll_fss_snatch_map_mash_
- f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_
#ifndef _di_fll_fss_snatch_map_mash_apart_
- f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_apart_
#ifndef _di_fll_fss_snatch_map_together_
- f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_together_
#ifndef _di_fll_fss_snatch_mash_
- f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
+ f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_
#ifndef _di_fll_fss_snatch_mash_apart_
- f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
+ f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_apart_
#ifndef _di_fll_fss_snatch_together_
- f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
+ f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
* @see f_parse_dynamic_partial_fll_identify()
*/
#ifndef _di_fll_fss_identify_
- extern f_status_t fll_fss_identify(const f_string_static_t buffer, f_string_range_t * const range, f_fll_ids_t * const ids);
+ extern f_status_t fll_fss_identify(const f_string_static_t buffer, f_range_t * const range, f_fll_ids_t * const ids);
#endif // _di_fll_fss_identify_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_
- extern f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
+ extern f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
#endif // _di_fll_fss_snatch_
/**
* @see f_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_apart_
- extern f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_apart_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_
- extern f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_apart_
- extern f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_apart_
/**
* Errors (with error bit) from: f_compare_dynamic_partial_trim_string().
*/
#ifndef _di_fll_fss_snatch_map_mash_
- extern f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_mash_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_mash_apart_
- extern f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_map_multis_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_mash_apart_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_map_together_
- extern f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_maps_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_map_together_
/**
* Errors (with error bit) from: f_compare_dynamic_partial_trim_string().
*/
#ifndef _di_fll_fss_snatch_mash_
- extern f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
#endif // _di_fll_fss_snatch_mash_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_mash_apart_
- extern f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamics_t * const values[], bool matches[], f_number_unsigneds_t * const indexs[]);
#endif // _di_fll_fss_snatch_mash_apart_
/**
* @see f_compare_trim()
*/
#ifndef _di_fll_fss_snatch_together_
- extern f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
+ extern f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, const f_string_static_t names[], const f_number_unsigned_t size, const f_string_static_t glue, f_string_dynamic_t * const values[], bool matches[], f_number_unsigned_t * const indexs[]);
#endif // _di_fll_fss_snatch_together_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_read_
- void fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state) {
+ void fll_fss_basic_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
uint8_t *quoted_object = 0;
do {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects->array, &objects->used, &objects->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects->array, &objects->used, &objects->size);
if (F_status_is_error(state->status)) return;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
if (F_status_is_error(state->status)) return;
contents->array[contents->used].used = 0;
++objects_quoted->used;
}
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
if (state->status == F_fss_found_object_content_not) {
found_data = F_true;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
}
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_basic_object_write(object, quote, f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_basic_object_read()
*/
#ifndef _di_fll_fss_basic_read_
- extern void fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state);
+ extern void fll_fss_basic_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state);
#endif // _di_fll_fss_basic_read_
/**
#endif
#ifndef _di_fll_fss_basic_list_read_
- void fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fll_fss_basic_list_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
bool found_data = F_false;
do {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects->array, &objects->used, &objects->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects->array, &objects->used, &objects->size);
if (F_status_is_error(state->status)) return;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
if (F_status_is_error(state->status)) return;
contents->array[contents->used].used = 0;
if (state->status == F_fss_found_object || state->status == F_fss_found_object_content_not) {
++objects->used;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
if (state->status == F_fss_found_object_content_not) {
found_data = F_true;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
if (!state) return;
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_basic_list_object_write(object, f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_basic_list_object_read()
*/
#ifndef _di_fll_fss_basic_list_read_
- extern void fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fll_fss_basic_list_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fll_fss_basic_list_read_
/**
#endif
#ifndef _di_fll_fss_embedded_list_read_
- void fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_fss_nest_t * const nest, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fll_fss_embedded_list_read(const f_string_static_t buffer, f_range_t * const range, f_fss_nest_t * const nest, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
#endif // _di_fll_fss_embedded_list_read_
#ifndef _di_fll_fss_embedded_list_write_
- void fll_fss_embedded_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fll_fss_embedded_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_embedded_list_object_write(object, f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_embedded_list_object_read()
*/
#ifndef _di_fll_fss_embedded_list_read_
- extern void fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_fss_nest_t * const nest, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fll_fss_embedded_list_read(const f_string_static_t buffer, f_range_t * const range, f_fss_nest_t * const nest, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fll_fss_embedded_list_read_
/**
* @see fl_fss_embedded_list_object_write()
*/
#ifndef _di_fll_fss_embedded_list_write_
- extern void fll_fss_embedded_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fll_fss_embedded_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fll_fss_embedded_list_write_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_read_
- void fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_uint8ss_t * const contents_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state) {
+ void fll_fss_extended_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_uint8ss_t * const contents_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
f_uint8s_t *quoted_content = 0;
do {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects->array, &objects->used, &objects->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects->array, &objects->used, &objects->size);
if (F_status_is_error(state->status)) return;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
if (F_status_is_error(state->status)) return;
contents->array[contents->used].used = 0;
++objects_quoted->used;
}
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) return;
contents->array[contents->used++].used = 0;
if (!state) return;
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_extended_object_write(object, quote, f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_extended_object_read()
*/
#ifndef _di_fll_fss_extended_read_
- extern void fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_uint8ss_t * const contents_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state);
+ extern void fll_fss_extended_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_uint8s_t * const objects_quoted, f_uint8ss_t * const contents_quoted, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_state_t * const state);
#endif // _di_fll_fss_extended_read_
/**
#endif
#ifndef _di_fll_fss_extended_list_read_
- void fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fll_fss_extended_list_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
bool found_data = F_false;
do {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects->array, &objects->used, &objects->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects->array, &objects->used, &objects->size);
if (F_status_is_error(state->status)) return;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
if (F_status_is_error(state->status)) return;
contents->array[contents->used].used = 0;
if (state->status == F_fss_found_object || state->status == F_fss_found_object_content_not) {
++objects->used;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(state->status)) {
state->status = status;
if (state->status == F_fss_found_object_content_not) {
found_data = F_true;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
#endif // _di_fll_fss_extended_list_read_
#ifndef _di_fll_fss_extended_list_write_
- void fll_fss_extended_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state) {
+ void fll_fss_extended_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_extended_list_object_write(object, f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_extended_list_object_read()
*/
#ifndef _di_fll_fss_extended_list_read_
- extern void fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fll_fss_extended_list_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fll_fss_extended_list_read_
/**
* @see fl_fss_extended_list_object_write()
*/
#ifndef _di_fll_fss_extended_list_write_
- extern void fll_fss_extended_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state);
+ extern void fll_fss_extended_list_write(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_ranges_t *ignore, f_string_dynamic_t * const destination, f_state_t * const state);
#endif // _di_fll_fss_extended_list_write_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_payload_read_
- void fll_fss_payload_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state) {
+ void fll_fss_payload_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state) {
#ifndef _di_level_2_parameter_checking_
if (!state) return;
bool found_data = F_false;
do {
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &objects->array, &objects->used, &objects->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &objects->array, &objects->used, &objects->size);
if (F_status_is_error(state->status)) return;
- state->status = f_memory_array_increase(state->step_small, sizeof(f_string_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
+ state->status = f_memory_array_increase(state->step_small, sizeof(f_ranges_t), (void **) &contents->array, &contents->used, &contents->size);
if (F_status_is_error(state->status)) return;
contents->array[contents->used].used = 0;
++objects->used;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
contents->array[contents->used].used = 0;
if (f_compare_dynamic_partial_string(f_fss_payload_s.string, buffer, f_fss_payload_s.used, objects->array[objects->used]) == F_equal_to) {
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
if (state->status == F_fss_found_object_content_not) {
found_data = F_true;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
if (f_compare_dynamic_partial_string(f_fss_payload_s.string, buffer, f_fss_payload_s.used, objects->array[objects->used]) == F_equal_to) {
++objects->used;
- status = f_memory_array_increase(state->step_small, sizeof(f_string_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
+ status = f_memory_array_increase(state->step_small, sizeof(f_range_t), (void **) &contents->array[contents->used].array, &contents->array[contents->used].used, &contents->array[contents->used].size);
if (F_status_is_error(status)) {
state->status = status;
}
#endif // _di_level_2_parameter_checking_
- f_string_range_t range = macro_f_string_range_t_initialize_2(object.used);
+ f_range_t range = macro_f_range_t_initialize_2(object.used);
fl_fss_basic_list_object_write(object, trim ? f_fss_complete_full_trim_e : f_fss_complete_full_e, &range, destination, state);
* @see fl_fss_basic_list_object_read()
*/
#ifndef _di_fll_fss_payload_read_
- extern void fll_fss_payload_read(const f_string_static_t buffer, f_string_range_t * const range, f_string_ranges_t * const objects, f_string_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_string_ranges_t * const comments, f_state_t * const state);
+ extern void fll_fss_payload_read(const f_string_static_t buffer, f_range_t * const range, f_ranges_t * const objects, f_rangess_t * const contents, f_number_unsigneds_t * const objects_delimits, f_number_unsigneds_t * const contents_delimits, f_ranges_t * const comments, f_state_t * const state);
#endif // _di_fll_fss_payload_read_
/**
if (escaped->used > escaped->size) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
- const f_string_range_t range = macro_f_string_range_t_initialize_2(content.used);
+ const f_range_t range = macro_f_range_t_initialize_2(content.used);
return private_fll_iki_content_partial_escape(content, range, quote.string[0], escaped);
}
#endif // _di_fll_iki_content_escape_
#ifndef _di_fll_iki_content_partial_escape_
- f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped) {
+ f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped) {
#ifndef _di_level_2_parameter_checking_
if (range.start > range.stop) return F_status_set_error(F_parameter);
if (range.start >= content.used) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_partial_escape_
#ifndef _di_fll_iki_content_partial_unescape_
- f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped) {
+ f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped) {
#ifndef _di_level_2_parameter_checking_
if (range.start > range.stop) return F_status_set_error(F_parameter);
if (range.start >= content.used) return F_status_set_error(F_parameter);
if (unescaped->used > unescaped->size) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
- const f_string_range_t range = macro_f_string_range_t_initialize_2(content.used);
+ const f_range_t range = macro_f_range_t_initialize_2(content.used);
return private_fll_iki_content_partial_unescape(content, range, quote.string[0], unescaped);
}
* @see f_memory_array_resize()
*/
#ifndef _di_fll_iki_content_partial_escape_
- extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped);
+ extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped);
#endif // _di_fll_iki_content_partial_escape_
/**
* @see f_memory_array_resize()
*/
#ifndef _di_fll_iki_content_partial_unescape_
- extern f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
+ extern f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
#endif // _di_fll_iki_content_partial_unescape_
/**
#endif
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) {
+ f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) {
f_status_t status = F_okay;
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
#if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
- f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) {
+ f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) {
f_status_t status = F_okay;
* @see f_memory_array_resize()
*/
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
/**
* @see f_memory_array_resize()
*/
#if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
- extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) F_attribute_visibility_internal_d;
+ extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) F_attribute_visibility_internal_d;
#endif // !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
#ifdef __cplusplus
#endif // _di_fll_print_dynamic_
#ifndef _di_fll_print_dynamic_partial_
- f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_dynamic_partial_
#ifndef _di_fll_print_dynamic_partial_raw_
- f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_dynamic_partial_raw_
#ifndef _di_fll_print_dynamic_partial_raw_safely_
- f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_dynamic_partial_raw_safely_
#ifndef _di_fll_print_dynamic_partial_safely_
- f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_dynamic_
#ifndef _di_fll_print_except_dynamic_partial_
- f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_dynamic_partial_
#ifndef _di_fll_print_except_dynamic_partial_raw_
- f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_dynamic_partial_raw_
#ifndef _di_fll_print_except_dynamic_partial_raw_safely_
- f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_dynamic_partial_raw_safely_
#ifndef _di_fll_print_except_dynamic_partial_safely_
- f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_safely_
#ifndef _di_fll_print_except_in_
- f_status_t fll_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_
#ifndef _di_fll_print_except_in_dynamic_
- f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_
#ifndef _di_fll_print_except_in_dynamic_partial_
- f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_partial_
#ifndef _di_fll_print_except_in_dynamic_partial_raw_
- f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_partial_raw_
#ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_
- f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_partial_raw_safely_
#ifndef _di_fll_print_except_in_dynamic_partial_safely_
- f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_partial_safely_
#ifndef _di_fll_print_except_in_dynamic_raw_
- f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_raw_
#ifndef _di_fll_print_except_in_dynamic_raw_safely_
- f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_raw_safely_
#ifndef _di_fll_print_except_in_dynamic_safely_
- f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_dynamic_safely_
#ifndef _di_fll_print_except_in_raw_
- f_status_t fll_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_raw_
#ifndef _di_fll_print_except_in_raw_safely_
- f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_except_in_raw_safely_
#ifndef _di_fll_print_except_in_safely_
- f_status_t fll_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_dynamic_safely_
#ifndef _di_fll_print_trim_dynamic_partial_
- f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_dynamic_partial_
#ifndef _di_fll_print_trim_dynamic_partial_raw_
- f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_dynamic_partial_raw_
#ifndef _di_fll_print_trim_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_dynamic_partial_safely_
- f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) {
+ f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_dynamic_safely_
#ifndef _di_fll_print_trim_except_in_
- f_status_t fll_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_
#ifndef _di_fll_print_trim_except_in_raw_
- f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_raw_
#ifndef _di_fll_print_trim_except_in_raw_safely_
- f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_raw_safely_
#ifndef _di_fll_print_trim_except_in_safely_
- f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_
- f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_
#ifndef _di_fll_print_trim_except_in_dynamic_raw_
- f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_raw_
#ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_
- f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_raw_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_safely_
- f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_
- f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_partial_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_
- f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_
- f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file) {
+ f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_in_dynamic_partial_safely_
#ifndef _di_fll_print_trim_except_dynamic_partial_
- f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_dynamic_partial_
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_
- f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_dynamic_partial_raw_
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_
- f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
#endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_
#ifndef _di_fll_print_trim_except_dynamic_partial_safely_
- f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file) {
+ f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file) {
if (!file.stream) return F_stream_not;
* @see f_print_dynamic_partial()
*/
#ifndef _di_fll_print_dynamic_partial_
- extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_dynamic_partial_
/**
* @see f_print_dynamic_partial_raw()
*/
#ifndef _di_fll_print_dynamic_partial_raw_
- extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_dynamic_partial_raw_
/**
* @see f_print_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_dynamic_partial_raw_safely_
- extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_dynamic_partial_raw_safely_
/**
* @see f_print_dynamic_partial_safely()
*/
#ifndef _di_fll_print_dynamic_partial_safely_
- extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_dynamic_partial_safely_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_except_dynamic_partial_
- extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_except_dynamic_partial_
/**
* @see f_print_except_dynamic_partial_raw()
*/
#ifndef _di_fll_print_except_dynamic_partial_raw_
- extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_except_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_except_dynamic_partial_raw_safely_
- extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_except_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial_safely()
*/
#ifndef _di_fll_print_except_dynamic_partial_safely_
- extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_except_dynamic_partial_safely_
/**
* @see f_print_except_in()
*/
#ifndef _di_fll_print_except_in_
- extern f_status_t fll_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_
/**
* @see f_print_except_in_raw()
*/
#ifndef _di_fll_print_except_in_raw_
- extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_raw_
/**
* @see f_print_except_in_raw_safely()
*/
#ifndef _di_fll_print_except_in_raw_safely_
- extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_raw_safely_
/**
* @see f_print_except_in_safely()
*/
#ifndef _di_fll_print_except_in_safely_
- extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_safely_
/**
* @see f_print_except_in_dynamic()
*/
#ifndef _di_fll_print_except_in_dynamic_
- extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_
/**
* @see f_print_except_in_dynamic_partial()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_
- extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_partial_
/**
* @see f_print_except_in_dynamic_partial_raw()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_raw_
- extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_partial_raw_
/**
* @see f_print_except_in_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_
- extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_partial_raw_safely_
/**
* @see f_print_except_in_dynamic_partial_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_partial_safely_
- extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_partial_safely_
/**
* @see f_print_except_in_dynamic_raw()
*/
#ifndef _di_fll_print_except_in_dynamic_raw_
- extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_raw_
/**
* @see f_print_except_in_dynamic_raw_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_raw_safely_
- extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_raw_safely_
/**
* @see f_print_except_in_dynamic_safely()
*/
#ifndef _di_fll_print_except_in_dynamic_safely_
- extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_except_in_dynamic_safely_
/**
* @see fl_print_trim_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_
- extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_trim_dynamic_partial_
/**
* @see fl_print_trim_dynamic_partial_raw()
*/
#ifndef _di_fll_print_trim_dynamic_partial_raw_
- extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_trim_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_trim_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_dynamic_partial_safely_
- extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file);
+ extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, f_file_t file);
#endif // _di_fll_print_trim_dynamic_partial_safely_
/**
* @see fl_print_trim_except_in()
*/
#ifndef _di_fll_print_trim_except_in_
- extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_
/**
* @see fl_print_trim_except_in_raw()
*/
#ifndef _di_fll_print_trim_except_in_raw_
- extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_raw_
/**
* @see fl_print_trim_except_in_raw_safely()
*/
#ifndef _di_fll_print_trim_except_in_raw_safely_
- extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_raw_safely_
/**
* @see fl_print_trim_except_in_safely()
*/
#ifndef _di_fll_print_trim_except_in_safely_
- extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_number_unsigned_t offset, const f_number_unsigned_t length, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_safely_
/**
* @see fl_print_trim_except_in_dynamic()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_
- extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_
/**
* @see fl_print_trim_except_in_dynamic_raw()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_raw_
- extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_raw_
/**
* @see fl_print_trim_except_in_dynamic_raw_safely()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_raw_safely_
/**
* @see fl_print_trim_except_in_dynamic_safely()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_safely_
/**
* @see fl_print_trim_except_in_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_
- extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_partial_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_
/**
* @see f_print_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_
- extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except_at, const f_string_ranges_t except_in, f_file_t file);
+ extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except_at, const f_ranges_t except_in, f_file_t file);
#endif // _di_fll_print_trim_except_in_dynamic_partial_safely_
/**
* @see fl_print_trim_except_dynamic_partial()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_
- extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_trim_except_dynamic_partial_
/**
* @see fl_print_trim_except_dynamic_partial_raw()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_
- extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_
/**
* @see fl_print_trim_except_dynamic_partial_raw_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_
- extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_
/**
* @see fl_print_trim_except_dynamic_partial_safely()
*/
#ifndef _di_fll_print_trim_except_dynamic_partial_safely_
- extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_number_unsigneds_t except, f_file_t file);
+ extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_range_t range, const f_number_unsigneds_t except, f_file_t file);
#endif // _di_fll_print_trim_except_dynamic_partial_safely_
#ifdef __cplusplus
return;
}
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &main->cache.objects.array, &main->cache.objects.used, &main->cache.objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &main->cache.contents.array, &main->cache.contents.used, &main->cache.contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &main->cache.objects.array, &main->cache.objects.used, &main->cache.objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &main->cache.contents.array, &main->cache.contents.used, &main->cache.contents.size, &f_rangess_delete_callback);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &main->cache.delimits.array, &main->cache.delimits.used, &main->cache.delimits.size);
{
f_memory_array_resize(0, sizeof(f_char_t), (void **) &main->cache.small.string, &main->cache.small.used, &main->cache.small.size);
f_memory_array_resize(0, sizeof(f_char_t), (void **) &main->cache.packet.string, &main->cache.packet.used, &main->cache.packet.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &main->cache.objects.array, &main->cache.objects.used, &main->cache.objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &main->cache.contents.array, &main->cache.contents.used, &main->cache.contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &main->cache.objects.array, &main->cache.objects.used, &main->cache.objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &main->cache.contents.array, &main->cache.contents.used, &main->cache.contents.size, &f_rangess_delete_callback);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &main->cache.packet_objects.array, &main->cache.packet_objects.used, &main->cache.packet_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &main->cache.packet_contents.array, &main->cache.packet_contents.used, &main->cache.packet_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &main->cache.packet_objects.array, &main->cache.packet_objects.used, &main->cache.packet_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &main->cache.packet_contents.array, &main->cache.packet_contents.used, &main->cache.packet_contents.size, &f_rangess_delete_callback);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &main->cache.header_objects.array, &main->cache.header_objects.used, &main->cache.header_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &main->cache.header_contents.array, &main->cache.header_contents.used, &main->cache.header_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &main->cache.header_objects.array, &main->cache.header_objects.used, &main->cache.header_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &main->cache.header_contents.array, &main->cache.header_contents.used, &main->cache.header_contents.size, &f_rangess_delete_callback);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &main->cache.delimits.array, &main->cache.delimits.used, &main->cache.delimits.size);
}
f_string_dynamic_t small;
f_string_dynamic_t packet;
- f_string_ranges_t objects;
- f_string_rangess_t contents;
+ f_ranges_t objects;
+ f_rangess_t contents;
f_number_unsigneds_t delimits;
- f_string_ranges_t packet_objects;
- f_string_rangess_t packet_contents;
+ f_ranges_t packet_objects;
+ f_rangess_t packet_contents;
- f_string_ranges_t header_objects;
- f_string_rangess_t header_contents;
+ f_ranges_t header_objects;
+ f_rangess_t header_contents;
} control_cache_t;
#define control_cache_t_initialize \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
f_number_unsigneds_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
}
#endif // _di_control_cache_t_
f_status_t status_signal;
f_state_t state;
- f_string_range_t range;
+ f_range_t range;
f_socket_t socket;
f_string_dynamic_t name_socket;
0, \
F_okay, \
f_state_t_initialize, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
f_socket_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
header->length = 0;
f_number_unsigned_t i = 0;
- f_string_range_t range_header = f_string_range_t_initialize;
- f_string_range_t range_payload = f_string_range_t_initialize;
+ f_range_t range_header = f_range_t_initialize;
+ f_range_t range_payload = f_range_t_initialize;
{
f_number_unsigned_t length = 5;
{
f_state_t state = macro_f_state_t_initialize_1(control_allocation_large_d, control_allocation_small_d, F_okay, 0, 0, 0, &fll_program_standard_signal_handle, 0, (void *) main, 0);
- f_string_range_t range_packet = macro_f_string_range_t_initialize_2(main->cache.large.used);
+ f_range_t range_packet = macro_f_range_t_initialize_2(main->cache.large.used);
fll_fss_basic_list_read(main->cache.large, &range_packet, &main->cache.packet_objects, &main->cache.packet_contents, &main->cache.delimits, 0, 0, &state);
main->cache.delimits.used = 0;
{
- f_string_ranges_t *content_header = 0;
- f_string_ranges_t *content_payload = 0;
+ f_ranges_t *content_header = 0;
+ f_ranges_t *content_payload = 0;
for (; i < main->cache.packet_objects.used; ++i) {
// 0x1 = found action, 0x2 = found length, 0x4 = found status, 0x8 = found_type.
uint8_t found = 0;
f_number_unsigned_t number = 0;
- f_string_range_t range = range_header;
+ f_range_t range = range_header;
fll_fss_extended_read(main->cache.large, &range, &main->cache.header_objects, &main->cache.header_contents, 0, 0, &main->cache.delimits, 0, &state);
#endif
#ifndef _di_control_print_debug_packet_header_object_and_content_
- f_status_t control_print_debug_packet_header_object_and_content(fl_print_t * const print, const f_string_static_t object, const f_string_static_t content, const f_string_range_t content_range) {
+ f_status_t control_print_debug_packet_header_object_and_content(fl_print_t * const print, const f_string_static_t object, const f_string_static_t content, const f_range_t content_range) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_debug_e) return F_output_not;
#endif // _di_control_print_debug_packet_header_object_and_content_
#ifndef _di_control_print_debug_packet_message_
- f_status_t control_print_debug_packet_message(fl_print_t * const print, const f_string_t message, const f_string_static_t *buffer, const f_string_range_t *range) {
+ f_status_t control_print_debug_packet_message(fl_print_t * const print, const f_string_t message, const f_string_static_t *buffer, const f_range_t *range) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_debug_e) return F_output_not;
* F_output_not (with error bit) if setting is NULL.
*/
#ifndef _di_control_print_debug_packet_header_object_and_content_
- extern f_status_t control_print_debug_packet_header_object_and_content(fl_print_t * const print, const f_string_static_t object, const f_string_static_t content, const f_string_range_t content_range);
+ extern f_status_t control_print_debug_packet_header_object_and_content(fl_print_t * const print, const f_string_static_t object, const f_string_static_t content, const f_range_t content_range);
#endif // _di_control_print_debug_packet_header_object_and_content_
/**
* F_output_not (with error bit) if setting is NULL.
*/
#ifndef _di_control_print_debug_packet_message_
- extern f_status_t control_print_debug_packet_message(fl_print_t * const print, const f_string_t message, const f_string_static_t *buffer, const f_string_range_t *range);
+ extern f_status_t control_print_debug_packet_message(fl_print_t * const print, const f_string_t message, const f_string_static_t *buffer, const f_range_t *range);
#endif // _di_control_print_debug_packet_message_
#ifdef __cplusplus
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &cache->stack.array, &cache->stack.used, &cache->stack.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &cache->delimits.array, &cache->delimits.used, &cache->delimits.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &cache->comments.array, &cache->comments.used, &cache->comments.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &cache->content_action.array, &cache->content_action.used, &cache->content_action.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &cache->object_actions.array, &cache->object_actions.used, &cache->object_actions.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &cache->object_items.array, &cache->object_items.used, &cache->object_items.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &cache->comments.array, &cache->comments.used, &cache->comments.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &cache->content_action.array, &cache->content_action.used, &cache->content_action.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &cache->object_actions.array, &cache->object_actions.used, &cache->object_actions.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &cache->object_items.array, &cache->object_items.used, &cache->object_items.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &cache->content_actions.array, &cache->content_actions.used, &cache->content_actions.size, &f_string_rangess_delete_callback);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &cache->content_items.array, &cache->content_items.used, &cache->content_items.size, &f_string_rangess_delete_callback);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &cache->content_actions.array, &cache->content_actions.used, &cache->content_actions.size, &f_rangess_delete_callback);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &cache->content_items.array, &cache->content_items.used, &cache->content_items.size, &f_rangess_delete_callback);
controller_cache_action_delete_simple(&cache->action);
}
typedef struct {
f_time_spec_t timestamp;
- f_string_range_t range_action;
+ f_range_t range_action;
f_number_unsigneds_t ats;
f_number_unsigneds_t stack;
- f_string_ranges_t comments;
+ f_ranges_t comments;
f_number_unsigneds_t delimits;
- f_string_ranges_t content_action;
- f_string_rangess_t content_actions;
- f_string_rangess_t content_items;
- f_string_ranges_t object_actions;
- f_string_ranges_t object_items;
+ f_ranges_t content_action;
+ f_rangess_t content_actions;
+ f_rangess_t content_items;
+ f_ranges_t object_actions;
+ f_ranges_t object_items;
f_string_dynamic_t buffer_file;
f_string_dynamic_t buffer_item;
#define controller_cache_t_initialize { \
f_time_spec_t_initialize, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
f_number_unsigneds_t_initialize, \
f_number_unsigneds_t_initialize, \
- f_string_ranges_t_initialize, \
+ f_ranges_t_initialize, \
f_number_unsigneds_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
- f_string_rangess_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_ranges_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
+ f_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_ranges_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
#endif
#ifndef _di_controller_range_after_number_sign_
- f_string_range_t controller_range_after_number_sign(const f_string_static_t buffer, const f_string_range_t range) {
+ f_range_t controller_range_after_number_sign(const f_string_static_t buffer, const f_range_t range) {
- f_string_range_t result = range;
+ f_range_t result = range;
for (; result.start <= result.stop; ++result.start) {
if (F_status_is_error_not(status)) {
f_number_unsigned_t number = 0;
- f_string_range_t range = macro_f_string_range_t_initialize_2(pid_buffer.used);
+ f_range_t range = macro_f_range_t_initialize_2(pid_buffer.used);
for (; range.start < pid_buffer.used; ++range.start) {
if (!isspace(pid_buffer.string[range.start])) break;
if (F_status_is_error_not(status)) {
f_number_unsigned_t number = 0;
- f_string_range_t range = macro_f_string_range_t_initialize_2(pid_buffer.used);
+ f_range_t range = macro_f_range_t_initialize_2(pid_buffer.used);
for (; range.start < pid_buffer.used; ++range.start) {
if (!isspace(pid_buffer.string[range.start])) break;
#endif // _di_controller_file_pid_read_
#ifndef _di_controller_get_id_user_
- f_status_t controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t * const cache, uid_t * const id) {
+ f_status_t controller_get_id_user(const f_string_static_t buffer, const f_range_t range, controller_cache_t * const cache, uid_t * const id) {
f_number_unsigned_t number = 0;
#endif // _di_controller_get_id_user_
#ifndef _di_controller_get_id_group_
- f_status_t controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t * const cache, gid_t * const id) {
+ f_status_t controller_get_id_group(const f_string_static_t buffer, const f_range_t range, controller_cache_t * const cache, gid_t * const id) {
f_number_unsigned_t number = 0;
}
if (destination->used >= setting->path_current.used) {
- const f_string_range_t range = macro_f_string_range_t_initialize_2(setting->path_current.used);
+ const f_range_t range = macro_f_range_t_initialize_2(setting->path_current.used);
if (f_compare_dynamic_partial_string(destination->string, setting->path_current, destination->used, range) == F_equal_to) {
f_number_unsigned_t length = destination->used - setting->path_current.used;
* The start range will be past the stop range on overflow or on any failure.
*/
#ifndef _di_controller_range_after_number_sign_
- extern f_string_range_t controller_range_after_number_sign(const f_string_static_t buffer, const f_string_range_t range) F_attribute_visibility_internal_d;
+ extern f_range_t controller_range_after_number_sign(const f_string_static_t buffer, const f_range_t range) F_attribute_visibility_internal_d;
#endif // _di_controller_range_after_number_sign_
/**
* @see f_rip_dynamic_partial_nulless()
*/
#ifndef _di_controller_get_id_user_
- f_status_t controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t * const cache, uid_t * const id) F_attribute_visibility_internal_d;
+ f_status_t controller_get_id_user(const f_string_static_t buffer, const f_range_t range, controller_cache_t * const cache, uid_t * const id) F_attribute_visibility_internal_d;
#endif // _di_controller_get_id_user_
/**
* @see f_rip_dynamic_partial_nulless()
*/
#ifndef _di_controller_get_id_group_
- f_status_t controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t * const cache, gid_t * const id) F_attribute_visibility_internal_d;
+ f_status_t controller_get_id_group(const f_string_static_t buffer, const f_range_t range, controller_cache_t * const cache, gid_t * const id) F_attribute_visibility_internal_d;
#endif // _di_controller_get_id_group_
/**
#endif // _di_controller_entry_action_type_to_rule_action_type_
#ifndef _di_controller_entry_actions_read_
- f_status_t controller_entry_actions_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache, controller_entry_actions_t *actions) {
+ f_status_t controller_entry_actions_read(const controller_global_t global, const bool is_entry, const f_range_t content_range, controller_cache_t * const cache, controller_entry_actions_t *actions) {
f_status_t status = F_okay;
f_status_t status_action = F_okay;
{
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
- f_string_range_t range = content_range;
+ f_range_t range = content_range;
status = fll_fss_extended_read(cache->buffer_file, state, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0);
}
if (cache->buffer_file.used) {
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
- f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_file.used);
+ f_range_t range = macro_f_range_t_initialize_2(cache->buffer_file.used);
status = fll_fss_basic_list_read(cache->buffer_file, state, &range, &cache->object_items, &cache->content_items, &cache->delimits, 0, &cache->comments);
// 0x1 = main found, 0x2 = found existing.
uint8_t code = 0;
- f_string_range_t *range = 0;
+ f_range_t *range = 0;
f_number_unsigned_t at = 0;
f_number_unsigned_t i = 0;
#endif // _di_controller_entry_read_
#ifndef _di_controller_entry_settings_read_
- f_status_t controller_entry_settings_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache) {
+ f_status_t controller_entry_settings_read(const controller_global_t global, const bool is_entry, const f_range_t content_range, controller_cache_t * const cache) {
f_status_t status = F_okay;
{
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
- f_string_range_t range = content_range;
+ f_range_t range = content_range;
status = fll_fss_extended_read(cache->buffer_file, state, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0);
}
#endif // _di_controller_entry_settings_read_
#ifndef _di_controller_entry_settings_read_map_
- f_status_t controller_entry_settings_read_map(const f_string_static_t buffer, const f_string_ranges_t ranges, f_string_maps_t *setting_maps) {
+ f_status_t controller_entry_settings_read_map(const f_string_static_t buffer, const f_ranges_t ranges, f_string_maps_t *setting_maps) {
{
f_status_t status = f_memory_array_increase(controller_common_allocation_small_d, sizeof(f_string_map_t), (void **) &setting_maps->array, &setting_maps->used, &setting_maps->size);
* @see fll_fss_extended_read()
*/
#ifndef _di_controller_entry_actions_read_
- extern f_status_t controller_entry_actions_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache, controller_entry_actions_t *actions) F_attribute_visibility_internal_d;
+ extern f_status_t controller_entry_actions_read(const controller_global_t global, const bool is_entry, const f_range_t content_range, controller_cache_t * const cache, controller_entry_actions_t *actions) F_attribute_visibility_internal_d;
#endif // _di_controller_entry_actions_read_
/**
* @see controller_entry_print_error_file()
*/
#ifndef _di_controller_entry_settings_read_
- extern f_status_t controller_entry_settings_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache) F_attribute_visibility_internal_d;
+ extern f_status_t controller_entry_settings_read(const controller_global_t global, const bool is_entry, const f_range_t content_range, controller_cache_t * const cache) F_attribute_visibility_internal_d;
#endif // _di_controller_entry_settings_read_
/**
* @see f_string_dynamic_partial_append_nulless()
*/
#ifndef _di_controller_entry_settings_read_map_
- f_status_t controller_entry_settings_read_map(const f_string_static_t buffer, const f_string_ranges_t ranges, f_string_maps_t *setting_maps) F_attribute_visibility_internal_d;
+ f_status_t controller_entry_settings_read_map(const f_string_static_t buffer, const f_ranges_t ranges, f_string_maps_t *setting_maps) F_attribute_visibility_internal_d;
#endif // _di_controller_entry_settings_read_map_
/**
#endif // _di_controller_entry_print_error_file_
#ifndef _di_controller_entry_setting_read_print_error_with_range_
- void controller_entry_setting_read_print_error_with_range(const bool is_entry, const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, controller_thread_t * const thread, controller_cache_t * const cache) {
+ void controller_entry_setting_read_print_error_with_range(const bool is_entry, const fl_print_t print, const f_string_t before, const f_range_t range, const f_string_t after, controller_thread_t * const thread, controller_cache_t * const cache) {
if (print.verbosity == f_console_verbosity_quiet_e) return;
* @see controller_entry_settings_read()
*/
#ifndef _di_controller_entry_setting_read_print_error_with_range_
- extern void controller_entry_setting_read_print_error_with_range(const bool is_entry, const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, controller_thread_t * const thread, controller_cache_t * const cache) F_attribute_visibility_internal_d;
+ extern void controller_entry_setting_read_print_error_with_range(const bool is_entry, const fl_print_t print, const f_string_t before, const f_range_t range, const f_string_t after, controller_thread_t * const thread, controller_cache_t * const cache) F_attribute_visibility_internal_d;
#endif // _di_controller_entry_setting_read_print_error_with_range_
/**
#endif // _di_controller_rule_find_
#ifndef _di_controller_rule_parameters_read_
- f_status_t controller_rule_parameters_read(const controller_global_t global, const f_string_static_t buffer, f_string_range_t * const object, f_string_ranges_t * const content, controller_rule_action_t * const action, f_state_t * const state) {
+ f_status_t controller_rule_parameters_read(const controller_global_t global, const f_string_static_t buffer, f_range_t * const object, f_ranges_t * const content, controller_rule_action_t * const action, f_state_t * const state) {
f_status_t status = F_okay;
return status;
}
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
for (f_number_unsigned_t i = 0; i < content->used; ++i) {
#endif // _di_controller_rule_action_type_to_action_execute_type_
#ifndef _di_controller_rule_action_read_
- f_status_t controller_rule_action_read(const controller_global_t global, const bool is_normal, const uint8_t type, const uint8_t method, controller_cache_t * const cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) {
+ f_status_t controller_rule_action_read(const controller_global_t global, const bool is_normal, const uint8_t type, const uint8_t method, controller_cache_t * const cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_range_t *range) {
f_status_t status = F_okay;
state.step_small = controller_common_allocation_iki_small_d;
state.interrupt = &controller_thread_signal_state_iki;
- f_string_range_t range_iki = macro_f_string_range_t_initialize_2(actions->array[actions->used].parameters.array[0].used);
+ f_range_t range_iki = macro_f_range_t_initialize_2(actions->array[actions->used].parameters.array[0].used);
status = fl_iki_read(&actions->array[actions->used].parameters.array[0], &range_iki, &actions->array[actions->used].ikis.array[0], state);
state.step_small = controller_common_allocation_iki_small_d;
state.interrupt = &controller_thread_signal_state_iki;
- f_string_range_t range_iki = macro_f_string_range_t_initialize_2(actions->array[actions->used].parameters.array[0].used);
+ f_range_t range_iki = macro_f_range_t_initialize_2(actions->array[actions->used].parameters.array[0].used);
status = fl_iki_read(&actions->array[actions->used].parameters.array[0], &range_iki, &actions->array[actions->used].ikis.array[0], state);
f_number_unsigned_t i = 0;
f_number_unsigned_t first = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_iki_data_t *iki_data = 0;
f_string_dynamic_t *buffer = 0;
#endif // _di_controller_rule_expand_
#ifndef _di_controller_rule_expand_iki_
- f_status_t controller_rule_expand_iki(controller_process_t * const process, const f_string_static_t source, const f_string_range_t vocabulary, const f_string_range_t content, f_string_dynamic_t * const destination) {
+ f_status_t controller_rule_expand_iki(controller_process_t * const process, const f_string_static_t source, const f_range_t vocabulary, const f_range_t content, f_string_dynamic_t * const destination) {
if (vocabulary.start > vocabulary.stop) return F_okay;
if (content.start > content.stop) return F_okay;
#endif // _di_controller_rule_expand_iki_
#ifndef _di_controller_rule_id_construct_
- f_status_t controller_rule_id_construct(const controller_global_t global, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t * const alias) {
+ f_status_t controller_rule_id_construct(const controller_global_t global, const f_string_static_t source, const f_range_t directory, const f_range_t basename, f_string_dynamic_t * const alias) {
f_status_t status = F_okay;
f_status_t status = F_okay;
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
- f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_item.used);
+ f_range_t range = macro_f_range_t_initialize_2(cache->buffer_item.used);
f_number_unsigned_t last = 0;
uint8_t type = 0;
process->type = type;
macro_f_time_spec_t_clear(process->cache.timestamp)
- macro_f_string_range_t_clear(process->cache.range_action)
+ macro_f_range_t_clear(process->cache.range_action)
process->cache.ats.used = 0;
process->cache.stack.used = 0;
if (cache->buffer_file.used) {
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
- f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_file.used);
+ f_range_t range = macro_f_range_t_initialize_2(cache->buffer_file.used);
status = fll_fss_basic_list_read(cache->buffer_file, state, &range, &cache->object_items, &cache->content_items, &cache->delimits, 0, &cache->comments);
f_status_t status = F_okay;
f_status_t status_return = F_okay;
- f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_item.used);
- f_string_range_t range2 = f_string_range_t_initialize;
+ f_range_t range = macro_f_range_t_initialize_2(cache->buffer_item.used);
+ f_range_t range2 = f_range_t_initialize;
controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread);
f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0);
* @see fl_iki_read()
*/
#ifndef _di_controller_rule_parameters_read_
- extern f_status_t controller_rule_parameters_read(const controller_global_t global, const f_string_static_t buffer, f_string_range_t * const object, f_string_ranges_t * const content, controller_rule_action_t * const action, f_state_t * const state) F_attribute_visibility_internal_d;
+ extern f_status_t controller_rule_parameters_read(const controller_global_t global, const f_string_static_t buffer, f_range_t * const object, f_ranges_t * const content, controller_rule_action_t * const action, f_state_t * const state) F_attribute_visibility_internal_d;
#endif // _di_controller_rule_parameters_read_
/**
* @see f_fss_count_lines()
*/
#ifndef _di_controller_rule_action_read_
- extern f_status_t controller_rule_action_read(const controller_global_t global, const bool is_normal, const uint8_t type, const uint8_t method, controller_cache_t * const cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) F_attribute_visibility_internal_d;
+ extern f_status_t controller_rule_action_read(const controller_global_t global, const bool is_normal, const uint8_t type, const uint8_t method, controller_cache_t * const cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_range_t *range) F_attribute_visibility_internal_d;
#endif // _di_controller_rule_action_read_
/**
* @see f_string_dynamic_append()
*/
#ifndef _di_controller_rule_expand_iki_
- extern f_status_t controller_rule_expand_iki(controller_process_t * const process, const f_string_static_t source, const f_string_range_t vocabulary, const f_string_range_t content, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
+ extern f_status_t controller_rule_expand_iki(controller_process_t * const process, const f_string_static_t source, const f_range_t vocabulary, const f_range_t content, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
#endif // _di_controller_rule_expand_iki_
/**
* @see f_string_dynamic_partial_append_nulless()
*/
#ifndef _di_controller_rule_id_construct_
- extern f_status_t controller_rule_id_construct(const controller_global_t global, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t * const alias) F_attribute_visibility_internal_d;
+ extern f_status_t controller_rule_id_construct(const controller_global_t global, const f_string_static_t source, const f_range_t directory, const f_range_t basename, f_string_dynamic_t * const alias) F_attribute_visibility_internal_d;
#endif // _di_controller_rule_id_construct_
/**
#endif // _di_controller_rule_setting_read_print_error_
#ifndef _di_controller_rule_setting_read_print_error_with_range_
- void controller_rule_setting_read_print_error_with_range(const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_number_unsigned_t index, const f_number_unsigned_t line_item, controller_thread_t * const thread, controller_cache_t * const cache) {
+ void controller_rule_setting_read_print_error_with_range(const fl_print_t print, const f_string_t before, const f_range_t range, const f_string_t after, const f_number_unsigned_t index, const f_number_unsigned_t line_item, controller_thread_t * const thread, controller_cache_t * const cache) {
if (print.verbosity == f_console_verbosity_quiet_e) return;
* @see controller_rule_setting_read()
*/
#ifndef _di_controller_rule_setting_read_print_error_with_range_
- extern void controller_rule_setting_read_print_error_with_range(const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_number_unsigned_t index, const f_number_unsigned_t line_item, controller_thread_t * const thread, controller_cache_t * const cache) F_attribute_visibility_internal_d;
+ extern void controller_rule_setting_read_print_error_with_range(const fl_print_t print, const f_string_t before, const f_range_t range, const f_string_t after, const f_number_unsigned_t index, const f_number_unsigned_t line_item, controller_thread_t * const thread, controller_cache_t * const cache) F_attribute_visibility_internal_d;
#endif // _di_controller_rule_setting_read_print_error_with_range_
/**
{
f_string_dynamic_t buffer = f_string_dynamic_t_initialize;
- f_string_ranges_t objects = f_string_ranges_t_initialize;
- f_string_rangess_t contents = f_string_rangess_t_initialize;
+ f_ranges_t objects = f_ranges_t_initialize;
+ f_rangess_t contents = f_rangess_t_initialize;
if (process_pipe) {
fake_pipe_buffer(data, &buffer);
}
if (F_status_is_error_not(main->setting.state.status)) {
- f_string_range_t range = macro_f_string_range_t_initialize_2(buffer.used);
+ f_range_t range = macro_f_range_t_initialize_2(buffer.used);
f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
fll_fss_extended_read(buffer, &range, &objects, &contents, 0, 0, &delimits, 0, &main->setting.state);
f_memory_array_resize(0, sizeof(f_char_t), (void **) &buffer.string, &buffer.used, &buffer.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &objects.array, &objects.used, &objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &contents.array, &contents.used, &contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &contents.array, &contents.used, &contents.size, &f_rangess_delete_callback);
}
// Error when required settings are not specified.
#endif // _di_fake_build_load_setting_
#ifndef _di_fake_build_load_setting_process_
- void fake_build_load_setting_process(fake_data_t * const data, const bool checks, const f_string_static_t path_file, const f_string_statics_t * const modes_custom, const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, fake_build_setting_t * const setting) {
+ void fake_build_load_setting_process(fake_data_t * const data, const bool checks, const f_string_static_t path_file, const f_string_statics_t * const modes_custom, const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, fake_build_setting_t * const setting) {
if (!data || !data->main || !setting) return;
if (F_status_is_error(data->main->setting.state.status) && buffer.used) return;
* @see fll_fss_snatch_apart()
*/
#ifndef _di_fake_build_load_setting_process_
- extern void fake_build_load_setting_process(fake_data_t * const data, const bool checks, const f_string_static_t path_file, const f_string_statics_t * const modes_custom, const f_string_static_t buffer, const f_string_ranges_t objects, const f_string_rangess_t contents, fake_build_setting_t * const setting);
+ extern void fake_build_load_setting_process(fake_data_t * const data, const bool checks, const f_string_static_t path_file, const f_string_statics_t * const modes_custom, const f_string_static_t buffer, const f_ranges_t objects, const f_rangess_t contents, fake_build_setting_t * const setting);
#endif // _di_fake_build_load_setting_process_
/**
// Shrink an overly long array.
if (iki_data->content.used > fake_max_over_array_d) {
- f_memory_array_resize(fake_allocation_large_d, sizeof(f_string_range_t), (void **) &iki_data->content.array, &iki_data->content.used, &iki_data->content.size);
+ f_memory_array_resize(fake_allocation_large_d, sizeof(f_range_t), (void **) &iki_data->content.array, &iki_data->content.used, &iki_data->content.size);
}
if (iki_data->delimits.used > fake_max_over_array_d) {
}
if (iki_data->variable.used > fake_max_over_array_d) {
- f_memory_array_resize(fake_allocation_large_d, sizeof(f_string_range_t), (void **) &iki_data->variable.array, &iki_data->variable.used, &iki_data->variable.size);
+ f_memory_array_resize(fake_allocation_large_d, sizeof(f_range_t), (void **) &iki_data->variable.array, &iki_data->variable.used, &iki_data->variable.size);
}
if (iki_data->vocabulary.used > fake_max_over_array_d) {
- f_memory_array_resize(fake_allocation_large_d, sizeof(f_string_range_t), (void **) &iki_data->vocabulary.array, &iki_data->vocabulary.used, &iki_data->vocabulary.size);
+ f_memory_array_resize(fake_allocation_large_d, sizeof(f_range_t), (void **) &iki_data->vocabulary.array, &iki_data->vocabulary.used, &iki_data->vocabulary.size);
}
while (iki_data->content.used) {
return;
}
- const f_string_range_t range = macro_f_string_range_t_initialize_2(data_make->path.stack.array[0].used);
+ const f_range_t range = macro_f_range_t_initialize_2(data_make->path.stack.array[0].used);
if (range.start <= range.stop) {
main->setting.state.status = f_compare_dynamic_partial(data_make->path.stack.array[0], main->cache_argument, range, range);
return;
}
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
range.start = data_make->path.stack.array[0].used + 1;
range.stop = range.start + (path.used - range.start) - 1;
return;
}
- f_string_ranges_t list_objects = f_string_ranges_t_initialize;
- f_string_rangess_t list_contents = f_string_rangess_t_initialize;
+ f_ranges_t list_objects = f_ranges_t_initialize;
+ f_rangess_t list_contents = f_rangess_t_initialize;
f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
{
- f_string_range_t range = macro_f_string_range_t_initialize_2(data_make->main->buffer.used);
- f_string_ranges_t comments = f_string_ranges_t_initialize;
+ f_range_t range = macro_f_range_t_initialize_2(data_make->main->buffer.used);
+ f_ranges_t comments = f_ranges_t_initialize;
fll_fss_basic_list_read(data_make->main->buffer, &range, &list_objects, &list_contents, &delimits, 0, &comments, &data_make->main->setting.state);
delimits.used = 0;
}
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &comments.array, &comments.used, &comments.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &comments.array, &comments.used, &comments.size);
if (F_status_is_error(data_make->main->setting.state.status)) {
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_rangess_delete_callback);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &delimits.array, &delimits.used, &delimits.size);
return;
fake_print_error(&data_make->main->program.error, macro_fake_f(f_memory_array_resize));
f_fss_set_delete(&settings);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_rangess_delete_callback);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &delimits.array, &delimits.used, &delimits.size);
return;
}
{
- f_string_range_t content_range = f_string_range_t_initialize;
+ f_range_t content_range = f_range_t_initialize;
for (f_number_unsigned_t i = 0; i < list_objects.used; ++i) {
} // for
}
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &list_objects.array, &list_objects.used, &list_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &list_contents.array, &list_contents.used, &list_contents.size, &f_rangess_delete_callback);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &delimits.array, &delimits.used, &delimits.size);
if (F_status_is_error(data_make->main->setting.state.status)) {
}
}
- f_string_range_t *range_compiler = 0;
- f_string_range_t *range_indexer = 0;
+ f_range_t *range_compiler = 0;
+ f_range_t *range_indexer = 0;
data_make->setting_make.parameter.array[0].value.used = 1;
data_make->setting_make.load_build = F_false;
#endif // _di_fake_make_load_fakefile_
#ifndef _di_fake_make_load_fakefile_setting_build_
- void fake_make_load_fakefile_setting_build(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content) {
+ void fake_make_load_fakefile_setting_build(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content) {
if (!data_make || !data_make->data || !data_make->main || !object || !content) return;
#endif // _di_fake_make_load_fakefile_setting_build_
#ifndef _di_fake_make_load_fakefile_setting_compiler_
- void fake_make_load_fakefile_setting_compiler(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content, f_string_range_t **range_compiler) {
+ void fake_make_load_fakefile_setting_compiler(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content, f_range_t **range_compiler) {
if (!data_make || !data_make->data || !data_make->main || !object || !content || !range_compiler) return;
#endif // _di_fake_make_load_fakefile_setting_define_and_parameter_
#ifndef _di_fake_make_load_fakefile_setting_environment_
- void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_string_ranges_t * const content) {
+ void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_ranges_t * const content) {
if (!data_make || !data_make->data || !data_make->data || !data_make->main || !content) return;
#endif // _di_fake_make_load_fakefile_setting_environment_
#ifndef _di_fake_make_load_fakefile_setting_fail_
- void fake_make_load_fakefile_setting_fail(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content) {
+ void fake_make_load_fakefile_setting_fail(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content) {
if (!data_make || !data_make->data || !data_make->data || !data_make->main || !object || !content) return;
#endif // _di_fake_make_load_fakefile_setting_fail_
#ifndef _di_fake_make_load_fakefile_setting_indexer_
- void fake_make_load_fakefile_setting_indexer(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content, f_string_range_t **range_indexer) {
+ void fake_make_load_fakefile_setting_indexer(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content, f_range_t **range_indexer) {
if (!data_make || !data_make->data || !data_make->data || !data_make->main || !object || !content || !range_indexer) return;
#endif // _di_fake_make_load_fakefile_setting_indexer_
#ifndef _di_fake_make_load_fakefile_setting_parameter_
- void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content) {
+ void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content) {
if (!data_make || !data_make->data || !data_make->data || !data_make->main || !object || !content) return;
* The setting content.
*/
#ifndef _di_fake_make_load_fakefile_setting_build_
- extern void fake_make_load_fakefile_setting_build(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content);
+ extern void fake_make_load_fakefile_setting_build(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content);
#endif // _di_fake_make_load_fakefile_setting_build_
/**
* A pointer to the range that representing the compiler setting within the buffer.
*/
#ifndef _di_fake_make_load_fakefile_setting_compiler_
- extern void fake_make_load_fakefile_setting_compiler(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content, f_string_range_t **range_compiler);
+ extern void fake_make_load_fakefile_setting_compiler(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content, f_range_t **range_compiler);
#endif // _di_fake_make_load_fakefile_setting_compiler_
/**
* @see f_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fake_make_load_fakefile_setting_environment_
- extern void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_string_ranges_t * const content);
+ extern void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_ranges_t * const content);
#endif // _di_fake_make_load_fakefile_setting_environment_
/**
* The setting content.
*/
#ifndef _di_fake_make_load_fakefile_setting_fail_
- extern void fake_make_load_fakefile_setting_fail(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content);
+ extern void fake_make_load_fakefile_setting_fail(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content);
#endif // _di_fake_make_load_fakefile_setting_fail_
/**
* A pointer to the range that representing the indexer setting within the buffer.
*/
#ifndef _di_fake_make_load_fakefile_setting_indexer_
- extern void fake_make_load_fakefile_setting_indexer(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content, f_string_range_t **range_indexer);
+ extern void fake_make_load_fakefile_setting_indexer(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content, f_range_t **range_indexer);
#endif // _di_fake_make_load_fakefile_setting_indexer_
/**
* @see fake_make_load_fakefile_setting_define_and_parameter()
*/
#ifndef _di_fake_make_load_fakefile_setting_parameter_
- extern void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_string_range_t * const object, f_string_ranges_t * const content);
+ extern void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_range_t * const object, f_ranges_t * const content);
#endif // _di_fake_make_load_fakefile_setting_parameter_
#ifdef __cplusplus
if (main->program.parameters.remaining.used) {
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_number_unsigned_t index = 0;
main->setting.state.status = F_okay;
#endif // _di_fake_make_operate_
#ifndef _di_fake_make_operate_expand_
- void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_string_ranges_t content, const f_uint8s_t quotes) {
+ void fake_make_operate_expand(fake_make_data_t * const data_make, const f_range_t section_name, const f_ranges_t content, const f_uint8s_t quotes) {
if (!data_make || !data_make->main) return;
if (F_status_is_error(data_make->main->setting.state.status)) return;
f_iki_data_t *iki_data = &main->cache_iki;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_string_map_multis_t *parameter = &data_make->setting_make.parameter;
// 1 = is parameter, 2 = is define, 3 = is context.
#endif // _di_fake_make_operate_expand_
#ifndef _di_fake_make_operate_expand_build_
- void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name) {
if (!data_make || !data_make->main) return;
if (F_status_is_error(data_make->main->setting.state.status)) return;
#endif // _di_fake_make_operate_expand_build_
#ifndef _di_fake_make_operate_expand_context_
- void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name) {
if (!data_make || !data_make->main) return;
#endif // _di_fake_make_operate_expand_context_
#ifndef _di_fake_make_operate_expand_environment_
- void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name) {
if (!data_make || !data_make->main) return;
* @see fake_make_operate_expand_environment()
*/
#ifndef _di_fake_make_operate_expand_
- extern void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_string_ranges_t content, const f_uint8s_t quotes);
+ extern void fake_make_operate_expand(fake_make_data_t * const data_make, const f_range_t section_name, const f_ranges_t content, const f_uint8s_t quotes);
#endif // _di_fake_make_operate_expand_
/**
* @see f_string_dynamic_mash()
*/
#ifndef _di_fake_make_operate_expand_build_
- extern void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name);
#endif // _di_fake_make_operate_expand_build_
/**
* @see f_string_dynamic_append_nulless()
*/
#ifndef _di_fake_make_operate_expand_context_
- extern void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name);
#endif // _di_fake_make_operate_expand_context_
/**
* @see f_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fake_make_operate_expand_environment_
- extern void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_range_t range_name);
#endif // _di_fake_make_operate_expand_environment_
/**
#endif
#ifndef _di_fake_make_operate_process_
- int fake_make_operate_process(fake_make_data_t * const data_make, const f_string_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack) {
+ int fake_make_operate_process(fake_make_data_t * const data_make, const f_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack) {
if (!data_make || !data_make->main || !state_process || !section_stack) return 0;
if (data_make->main->setting.state.status == F_child) return data_make->main->program.child;
* @see fake_make_operate_process_type_write()
*/
#ifndef _di_fake_make_operate_process_
- extern int fake_make_operate_process(fake_make_data_t * const data_make, const f_string_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack);
+ extern int fake_make_operate_process(fake_make_data_t * const data_make, const f_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack);
#endif // _di_fake_make_operate_process_
/**
fake_main_t * const main = data_make->main;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_number_unsigned_t number_left = 0;
f_number_unsigned_t number_right = 0;
#endif
#ifndef _di_fake_make_operate_validate_
- void fake_make_operate_validate(fake_make_data_t * const data_make, const f_string_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack) {
+ void fake_make_operate_validate(fake_make_data_t * const data_make, const f_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack) {
if (!data_make || !data_make->main) return;
if (F_status_is_error(data_make->main->setting.state.status)) return;
* @see fake_make_operate_validate_type_write()
*/
#ifndef _di_fake_make_operate_validate_
- extern void fake_make_operate_validate(fake_make_data_t * const data_make, const f_string_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack);
+ extern void fake_make_operate_validate(fake_make_data_t * const data_make, const f_range_t section_name, fake_state_process_t * const state_process, f_number_unsigneds_t * const section_stack);
#endif // _di_fake_make_operate_validate_
/**
}
f_status_t status = F_okay;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_number_unsigned_t number = 0;
for (i = k; i < main->cache_arguments.used; ++i, main->setting.state.status = F_okay) {
#endif // _di_fake_make_print_error_operation_incomplete_
#ifndef _di_fake_make_print_error_operation_recursion_
- f_status_t fake_make_print_error_operation_recursion(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t fake_make_print_error_operation_recursion(fl_print_t * const print, const f_string_static_t buffer, const f_range_t range) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
* F_output_not (with error bit) if setting is NULL.
*/
#ifndef _di_fake_make_print_error_operation_recursion_
- extern f_status_t fake_make_print_error_operation_recursion(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t fake_make_print_error_operation_recursion(fl_print_t * const print, const f_string_static_t buffer, const f_range_t range);
#endif // _di_fake_make_print_error_operation_recursion_
/**
#endif // _di_fake_make_print_warning_file_not_found_
#ifndef _di_fake_make_print_warning_setting_content_empty_
- f_status_t fake_make_print_warning_setting_content_empty(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_string_range_t range, const f_string_static_t name) {
+ f_status_t fake_make_print_warning_setting_content_empty(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_range_t range, const f_string_static_t name) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_verbose_e) return F_output_not;
#endif // _di_fake_make_print_warning_setting_content_empty_
#ifndef _di_fake_make_print_warning_setting_content_invalid_
- f_status_t fake_make_print_warning_setting_content_invalid(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_string_range_t object, const f_string_range_t content, const f_string_static_t name) {
+ f_status_t fake_make_print_warning_setting_content_invalid(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_range_t object, const f_range_t content, const f_string_static_t name) {
if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_verbose_e) return F_output_not;
* @see fl_print_format()
*/
#ifndef _di_fake_make_print_warning_setting_content_empty_
- extern f_status_t fake_make_print_warning_setting_content_empty(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_string_range_t range, const f_string_static_t name);
+ extern f_status_t fake_make_print_warning_setting_content_empty(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_range_t range, const f_string_static_t name);
#endif // _di_fake_make_print_warning_setting_content_empty_
/**
* @see fl_print_format()
*/
#ifndef _di_fake_make_print_warning_setting_content_invalid_
- extern f_status_t fake_make_print_warning_setting_content_invalid(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_string_range_t object, const f_string_range_t content, const f_string_static_t name);
+ extern f_status_t fake_make_print_warning_setting_content_invalid(fl_print_t * const print, const f_string_static_t fakefile, const f_string_dynamic_t buffer, const f_range_t object, const f_range_t content, const f_string_static_t name);
#endif // _di_fake_make_print_warning_setting_content_invalid_
/**
#endif // _di_fake_print_error_file_simple_
#ifndef _di_fake_print_error_fss_
- f_status_t fake_print_error_fss(fl_print_t * const print, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) {
+ f_status_t fake_print_error_fss(fl_print_t * const print, const f_string_t function, const f_string_static_t path_file, const f_range_t range, const bool fallback) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
#endif // _di_fake_print_error_number_too_large_
#ifndef _di_fake_print_error_operation_failed_
- f_status_t fake_print_error_operation_failed(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
+ f_status_t fake_print_error_operation_failed(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
#endif // _di_fake_print_error_operation_path_stack_max_
#ifndef _di_fake_print_error_operation_stack_max_
- f_status_t fake_print_error_operation_stack_max(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_number_unsigned_t stack_max) {
+ f_status_t fake_print_error_operation_stack_max(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name, const f_number_unsigned_t stack_max) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
#endif // _di_fake_print_error_operation_stack_max_
#ifndef _di_fake_print_error_operation_unknown_
- f_status_t fake_print_error_operation_unknown(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
+ f_status_t fake_print_error_operation_unknown(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
* @see fake_print_error_fss_message()
*/
#ifndef _di_fake_print_error_fss_
- extern f_status_t fake_print_error_fss(fl_print_t * const print, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback);
+ extern f_status_t fake_print_error_fss(fl_print_t * const print, const f_string_t function, const f_string_static_t path_file, const f_range_t range, const bool fallback);
#endif // _di_fake_print_error_fss_
/**
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_operation_failed_
- extern f_status_t fake_print_error_operation_failed(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name);
+ extern f_status_t fake_print_error_operation_failed(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name);
#endif // _di_fake_print_error_operation_failed_
/**
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_operation_stack_max_
- extern f_status_t fake_print_error_operation_stack_max(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_number_unsigned_t stack_max);
+ extern f_status_t fake_print_error_operation_stack_max(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name, const f_number_unsigned_t stack_max);
#endif // _di_fake_print_error_operation_stack_max_
/**
* @see fl_print_format()
*/
#ifndef _di_fake_print_error_operation_unknown_
- extern f_status_t fake_print_error_operation_unknown(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name);
+ extern f_status_t fake_print_error_operation_unknown(fl_print_t * const print, const f_string_static_t buffer, const f_range_t section_name, const f_range_t operation_name);
#endif // _di_fake_print_error_operation_unknown_
/**
if (found_command) {
firewall_local_data_t local = firewall_local_data_t_initialize;
firewall_reserved_chains_t reserved = firewall_reserved_chains_t_initialize;
- f_string_range_t input = f_string_range_t_initialize;
+ f_range_t input = f_range_t_initialize;
if (command == firewall_parameter_command_show_e) {
f_string_dynamic_t buffer;
f_number_unsigned_t chain;
f_number_unsigneds_t chain_ids;
- f_string_ranges_t chain_objects;
- f_string_rangess_t chain_contents;
- f_string_ranges_t rule_objects;
- f_string_rangess_t rule_contents;
+ f_ranges_t chain_objects;
+ f_rangess_t chain_contents;
+ f_ranges_t rule_objects;
+ f_rangess_t rule_contents;
} firewall_local_data_t;
#define firewall_local_data_t_initialize \
f_string_dynamic_t_initialize, \
0, \
f_number_unsigneds_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
}
typedef struct {
f_string_dynamic_t path_file = f_string_dynamic_t_initialize;
f_string_dynamic_t local_buffer = f_string_dynamic_t_initialize;
- f_string_ranges_t basic_objects = f_string_ranges_t_initialize;
- f_string_rangess_t basic_contents = f_string_ranges_t_initialize;
+ f_ranges_t basic_objects = f_ranges_t_initialize;
+ f_rangess_t basic_contents = f_ranges_t_initialize;
status = f_string_dynamic_append(firewall_network_path_s, &path_file);
{
f_state_t state = f_state_t_initialize;
- f_string_range_t input = macro_f_string_range_t_initialize_2(local_buffer.used);
+ f_range_t input = macro_f_range_t_initialize_2(local_buffer.used);
status = fll_fss_basic_read(local_buffer, state, &input, &basic_objects, &basic_contents, 0, &delimits, 0);
}
f_memory_array_resize(0, sizeof(f_char_t), (void **) &local_buffer.string, &local_buffer.used, &local_buffer.size);
f_memory_array_resize(0, sizeof(f_char_t), (void **) &path_file.string, &path_file.used, &path_file.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &basic_objects.array, &basic_objects.used, &basic_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &basic_contents.array, &basic_contents.used, &basic_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &basic_objects.array, &basic_objects.used, &basic_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &basic_contents.array, &basic_contents.used, &basic_contents.size, &f_rangess_delete_callback);
if (F_status_set_fine(status) == F_failure || F_status_set_fine(status) == F_parameter) break;
}
}
f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize;
- f_string_range_t comments = f_string_range_t_initialize;
+ f_range_t comments = f_range_t_initialize;
f_state_t state = f_state_t_initialize;
{
- f_string_range_t input = macro_f_string_range_t_initialize_2(local->buffer.used);
+ f_range_t input = macro_f_range_t_initialize_2(local->buffer.used);
status = fll_fss_basic_list_read(local->buffer, state, &input, &local->chain_objects, &local->chain_contents, &delimits, 0, &comments);
}
}
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &delimits.array, &delimits.used, &delimits.size);
- macro_f_string_range_t_delete_simple(comments);
+ macro_f_range_t_delete_simple(comments);
return status;
}
-f_status_t firewall_process_rules(firewall_data_t * const data, f_string_range_t * const range, firewall_local_data_t * const local) {
+f_status_t firewall_process_rules(firewall_data_t * const data, f_range_t * const range, firewall_local_data_t * const local) {
if (!data || !range || !local) return F_status_set_error(F_parameter);
}
}
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &local->rule_objects.array, &local->rule_objects.used, &local->rule_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &local->rule_contents.array, &local->rule_contents.used, &local->rule_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &local->rule_objects.array, &local->rule_objects.used, &local->rule_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &local->rule_contents.array, &local->rule_contents.used, &local->rule_contents.size, &f_rangess_delete_callback);
return status;
}
f_memory_array_resize(0, sizeof(f_char_t), (void **) &local->buffer.string, &local->buffer.used, &local->buffer.size);
f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &local->chain_ids.array, &local->chain_ids.used, &local->chain_ids.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &local->chain_objects.array, &local->chain_objects.used, &local->chain_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &local->chain_contents.array, &local->chain_contents.used, &local->chain_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &local->chain_objects.array, &local->chain_objects.used, &local->chain_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &local->chain_contents.array, &local->chain_contents.used, &local->chain_contents.size, &f_rangess_delete_callback);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &local->rule_objects.array, &local->rule_objects.used, &local->rule_objects.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &local->rule_contents.array, &local->rule_contents.used, &local->rule_contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &local->rule_objects.array, &local->rule_objects.used, &local->rule_objects.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &local->rule_contents.array, &local->rule_contents.used, &local->rule_contents.size, &f_rangess_delete_callback);
return F_okay;
}
*
* Status codes (with error bit) are returned on any problem.
*/
-extern f_status_t firewall_process_rules(firewall_data_t * const data, f_string_range_t * const range, firewall_local_data_t * const local) F_attribute_visibility_internal_d;
+extern f_status_t firewall_process_rules(firewall_data_t * const data, f_range_t * const range, firewall_local_data_t * const local) F_attribute_visibility_internal_d;
/**
* Delete allocated local data.
f_number_unsigned_t line;
f_number_unsigned_t total;
- f_string_range_t range;
+ f_range_t range;
f_status_t status_signal;
f_state_t state;
0, \
0, \
0, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
F_okay, \
f_state_t_initialize, \
f_file_t_initialize, \
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
f_number_unsigned_t number = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
for (main->setting.state.status = F_equal_to_not; i < main->setting.names.used && main->setting.state.status == F_equal_to_not; ++i) {
f_memory_array_resize(0, sizeof(f_char_t), (void **) &setting->buffer.string, &setting->buffer.used, &setting->buffer.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &setting->objects.array, &setting->objects.used, &setting->objects.size);
- f_memory_array_resize(0, sizeof(f_string_range_t), (void **) &setting->comments.array, &setting->comments.used, &setting->comments.size);
- f_memory_arrays_resize(0, sizeof(f_string_ranges_t), (void **) &setting->contents.array, &setting->contents.used, &setting->contents.size, &f_string_rangess_delete_callback);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &setting->objects.array, &setting->objects.used, &setting->objects.size);
+ f_memory_array_resize(0, sizeof(f_range_t), (void **) &setting->comments.array, &setting->comments.used, &setting->comments.size);
+ f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &setting->contents.array, &setting->contents.used, &setting->contents.size, &f_rangess_delete_callback);
f_fss_nest_delete(&setting->nest);
#ifndef _di_fss_read_file_t_
typedef struct {
f_string_static_t name;
- f_string_range_t range;
+ f_range_t range;
} fss_read_file_t;
#define fss_read_file_t_initialize \
{ \
f_string_static_t_initialize, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
}
#endif // _di_fss_read_file_t_
f_status_t (*print_at)(fl_print_t * const print, const f_number_unsigned_t at, const f_number_unsigneds_t delimits_object, const f_number_unsigneds_t delimits_content);
f_status_t (*print_object)(fl_print_t * const print, const f_number_unsigned_t at, const f_number_unsigneds_t delimits);
- f_status_t (*print_content)(fl_print_t * const print, const f_string_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits);
+ f_status_t (*print_content)(fl_print_t * const print, const f_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits);
f_status_t (*print_content_ignore)(fl_print_t * const print);
f_status_t (*print_content_next)(fl_print_t * const print);
f_status_t (*print_object_end)(fl_print_t * const print);
f_number_unsigned_t select;
f_number_unsigned_t line;
- f_string_range_t range;
+ f_range_t range;
fss_read_files_t files;
fss_read_depths_t depths;
f_string_static_t standard;
f_string_dynamic_t buffer;
- f_string_ranges_t comments;
- f_string_rangess_t contents;
+ f_ranges_t comments;
+ f_rangess_t contents;
f_number_unsigneds_t delimits_object;
f_number_unsigneds_t delimits_content;
f_fss_nest_t nest;
- f_string_ranges_t objects;
+ f_ranges_t objects;
f_uint8s_t quotes_object;
f_uint8ss_t quotes_content;
0, \
0, \
0, \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
fss_read_files_t_initialize, \
fss_read_depths_t_initialize, \
f_string_static_t_initialize, \
f_string_dynamic_t_initialize, \
- f_string_ranges_t_initialize, \
- f_string_rangess_t_initialize, \
+ f_ranges_t_initialize, \
+ f_rangess_t_initialize, \
f_number_unsigneds_t_initialize, \
f_number_unsigneds_t_initialize, \
f_fss_nest_t_initialize, \
- f_string_ranges_t_initialize, \
+ f_ranges_t_initialize, \
f_uint8s_t_initialize, \
f_uint8ss_t_initialize, \
}
#endif // _di_fss_read_print_at_
#ifndef _di_fss_read_print_content_
- f_status_t fss_read_print_content(fl_print_t * const print, const f_string_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits) {
+ f_status_t fss_read_print_content(fl_print_t * const print, const f_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits) {
if (!print || !print->custom) return F_status_set_error(F_output_not);
* @see main.callback.print_set_end()
*/
#ifndef _di_fss_read_print_content_
- extern f_status_t fss_read_print_content(fl_print_t * const print, const f_string_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits);
+ extern f_status_t fss_read_print_content(fl_print_t * const print, const f_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits);
#endif // _di_fss_read_print_content_
/**
fss_read_main_t * const main = (fss_read_main_t *) void_main;
f_number_unsigned_t total = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_number_unsigned_t i = 0;
f_number_unsigned_t j = 0;
f_number_unsigned_t k = 0;
}
if (main->program.parameters.arguments.array[index].used) {
- f_string_range_t range = macro_f_string_range_t_initialize_2(main->program.parameters.arguments.array[index].used);
+ f_range_t range = macro_f_range_t_initialize_2(main->program.parameters.arguments.array[index].used);
for (; range.start < main->program.parameters.arguments.array[index].used; range.start++) {
main->setting.ignoress.used = 0;
- main->setting.state.status = f_memory_array_increase_by(values_data->used, sizeof(f_string_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
+ main->setting.state.status = f_memory_array_increase_by(values_data->used, sizeof(f_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
if (F_status_is_error(main->setting.state.status)) {
if ((main->setting.flag & fss_write_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) {
break;
}
- main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_string_range_t), (void **) &main->setting.ignoress.array[j].array, &main->setting.ignoress.array[j].used, &main->setting.ignoress.array[j].size);
+ main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_range_t), (void **) &main->setting.ignoress.array[j].array, &main->setting.ignoress.array[j].used, &main->setting.ignoress.array[j].size);
if (F_status_is_error(main->setting.state.status)) {
if ((main->setting.flag & fss_write_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) {
// Still validate the parameters, even if not being used.
f_number_unsigned_t i = 0;
f_number_unsigned_t index = 0;
- f_string_range_t number = f_string_range_t_initialize;
+ f_range_t number = f_range_t_initialize;
while (i < main->program.parameters.array[fss_write_parameter_ignore_e].values.used) {
f_status_t status_signal;
f_state_t state;
- f_string_range_t range;
+ f_range_t range;
f_string_static_t quote;
f_string_static_t standard;
f_string_dynamic_t buffer;
f_string_dynamic_t prepend;
- f_string_rangess_t ignoress;
+ f_rangess_t ignoress;
f_string_dynamics_t objects;
f_string_dynamicss_t contentss;
- f_string_ranges_t *ignores;
+ f_ranges_t *ignores;
f_string_static_t *object;
f_string_static_t *content;
f_string_statics_t *contents;
fss_write_main_flag_none_e, \
F_okay, \
macro_f_state_t_initialize_1(fss_write_allocation_large_d, fss_write_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \
- f_string_range_t_initialize, \
+ f_range_t_initialize, \
f_string_static_t_initialize, \
f_string_static_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
- f_string_rangess_t_initialize, \
+ f_rangess_t_initialize, \
f_string_dynamics_t_initialize, \
f_string_dynamicss_t_initialize, \
0, \
}
// This is processed in a single set, so there is only ever one Ignores added.
- main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_string_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
+ main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
if (F_status_is_error(main->setting.state.status)) {
fss_write_print_error(&main->program.error, macro_fss_write_f(f_memory_array_increase));
f_number_unsigned_t total = 0;
f_number_unsigned_t ignore = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
// Reset all of the used data before starting the loop.
main->setting.object->used = 0;
// Ignore is enabled.
if (flag & 0x2) {
- main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_string_range_t), (void **) &main->setting.ignores->array, &main->setting.ignores->used, &main->setting.ignores->size);
+ main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_range_t), (void **) &main->setting.ignores->array, &main->setting.ignores->used, &main->setting.ignores->size);
if (F_status_is_error(main->setting.state.status)) {
fss_write_print_error(&main->program.error, macro_fss_write_f(f_memory_array_increase));
f_number_unsigned_t total = 0;
f_number_unsigned_t length = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
const f_number_unsigned_t used_objects = main->setting.objects.used;
const f_number_unsigned_t used_contentss = main->setting.contentss.used;
}
// This is processed in a single set, so there is only ever one Ignores added.
- main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_string_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
+ main->setting.state.status = f_memory_array_increase(main->setting.state.step_small, sizeof(f_ranges_t), (void **) &main->setting.ignoress.array, &main->setting.ignoress.used, &main->setting.ignoress.size);
if (F_status_is_error(main->setting.state.status)) {
fss_write_print_error(&main->program.error, macro_fss_write_f(f_memory_array_increase));
#endif // _di_iki_read_identify_alteration_
#ifndef _di_iki_read_identify_substitution_
- f_number_unsigned_t iki_read_identify_substitution(iki_read_main_t * const main, const f_string_range_t name, const f_string_range_t value, f_string_triples_t *triple) {
+ f_number_unsigned_t iki_read_identify_substitution(iki_read_main_t * const main, const f_range_t name, const f_range_t value, f_string_triples_t *triple) {
f_number_unsigned_t i = triple->used - 1;
* The value of the triple.used is returned on no match.
*/
#ifndef _di_iki_read_identify_substitution_
- extern f_number_unsigned_t iki_read_identify_substitution(iki_read_main_t * const main, const f_string_range_t name, const f_string_range_t value, f_string_triples_t *triple);
+ extern f_number_unsigned_t iki_read_identify_substitution(iki_read_main_t * const main, const f_range_t name, const f_range_t value, f_string_triples_t *triple);
#endif // _di_iki_read_identify_substitution_
#ifdef __cplusplus
f_print_dynamic(main->setting.reassign.array[at].c, main->program.output.to);
}
else {
- f_string_range_t range = macro_f_string_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
+ f_range_t range = macro_f_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
f_print_dynamic_partial(main->setting.buffer, range, main->program.output.to);
iki_read_print_data_wrap_append(&main->program.output, index);
}
else {
- f_string_range_t range = macro_f_string_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
+ f_range_t range = macro_f_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
f_print_dynamic_partial(main->setting.buffer, range, main->program.output.to);
f_print_dynamic(main->setting.replace.array[main->setting.map_replaces[index]].name, main->program.output.to);
}
else {
- f_string_range_t range = macro_f_string_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
+ f_range_t range = macro_f_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
f_print_dynamic_partial(main->setting.buffer, range, main->program.output.to);
f_print_dynamic_partial(main->setting.buffer, main->setting.data.vocabulary.array[index], main->program.output.to);
}
else {
- f_string_range_t range = macro_f_string_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
+ f_range_t range = macro_f_range_t_initialize_1(main->setting.data.variable.array[index].start, main->setting.data.content.array[index].start - 1);
f_print_dynamic_partial(main->setting.buffer, range, main->program.output.to);
#endif
#ifndef _di_iki_read_process_line_
- void iki_read_process_line(iki_read_main_t * const main, f_string_range_t *range) {
+ void iki_read_process_line(iki_read_main_t * const main, f_range_t *range) {
if (!(main->setting.flag & iki_read_main_flag_line_e)) {
main->setting.state.status = F_false;
return;
}
- f_string_range_t buffer_range = macro_f_string_range_t_initialize_2(main->setting.buffer.used);
+ f_range_t buffer_range = macro_f_range_t_initialize_2(main->setting.buffer.used);
iki_read_process_line(main, &buffer_range);
#endif // _di_iki_read_process_buffer_
#ifndef _di_iki_read_process_buffer_ranges_
- void iki_read_process_buffer_ranges(iki_read_main_t * const main, f_string_range_t *buffer_range) {
+ void iki_read_process_buffer_ranges(iki_read_main_t * const main, f_range_t *buffer_range) {
fl_iki_read(&main->setting.buffer, buffer_range, &main->setting.data, &main->setting.state);
#endif // _di_iki_read_process_buffer_ranges_
#ifndef _di_iki_read_process_buffer_ranges_whole_
- void iki_read_process_buffer_ranges_whole(iki_read_main_t * const main, const f_string_range_t buffer_range) {
+ void iki_read_process_buffer_ranges_whole(iki_read_main_t * const main, const f_range_t buffer_range) {
- f_string_range_t range = buffer_range;
+ f_range_t range = buffer_range;
fl_iki_read(&main->setting.buffer, &range, &main->setting.data, &main->setting.state);
#ifndef _di_iki_read_process_buffer_total_
void iki_read_process_buffer_total(iki_read_main_t * const main) {
- f_string_range_t range = macro_f_string_range_t_initialize_2(main->setting.buffer.used);
+ f_range_t range = macro_f_range_t_initialize_2(main->setting.buffer.used);
iki_read_process_line(main, &range);
* The range value to represent the --line values.
*/
#ifndef _di_iki_read_process_line_
- extern void iki_read_process_line(iki_read_main_t * const main, f_string_range_t *range);
+ extern void iki_read_process_line(iki_read_main_t * const main, f_range_t *range);
#endif // _di_iki_read_process_line_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_ranges_
- extern void iki_read_process_buffer_ranges(iki_read_main_t * const main, f_string_range_t *buffer_range);
+ extern void iki_read_process_buffer_ranges(iki_read_main_t * const main, f_range_t *buffer_range);
#endif // _di_iki_read_process_buffer_ranges_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_ranges_whole_
- extern void iki_read_process_buffer_ranges_whole(iki_read_main_t * const main, const f_string_range_t buffer_range);
+ extern void iki_read_process_buffer_ranges_whole(iki_read_main_t * const main, const f_range_t buffer_range);
#endif // _di_iki_read_process_buffer_ranges_whole_
/**
bool object_ended = F_false;
f_number_unsigned_t previous = 0;
- f_string_range_t range = f_string_range_t_initialize;
+ f_range_t range = f_range_t_initialize;
f_status_t status = F_okay;
f_file_t pipe = f_file_t_initialize;