Update functions and macros accordingly.
build_libraries_fll
build_sources_library level_0/console.c level_0/conversion.c level_0/file.c level_0/memory.c level_0/pipe.c level_0/print.c level_0/utf.c
build_sources_program
-build_sources_headers level_0/colors.h level_0/console.h level_0/conversion.h level_0/status.h level_0/file.h level_0/fss.h level_0/memory.h level_0/fll_paths.h level_0/filesystem_paths.h level_0/pipe.h level_0/print.h level_0/serialized.h level_0/strings.h level_0/types.h level_0/types_array.h level_0/utf.h
+build_sources_headers level_0/colors.h level_0/console.h level_0/conversion.h level_0/status.h level_0/file.h level_0/fss.h level_0/memory.h level_0/fll_paths.h level_0/filesystem_paths.h level_0/pipe.h level_0/print.h level_0/serialized.h level_0/string.h level_0/types.h level_0/types_array.h level_0/utf.h
build_shared yes
build_static yes
build_linker ar
build_libraries -lc
build_libraries_fll -lfll_0
-build_sources_library level_1/colors.c level_1/console.c level_1/directory.c level_1/status.c level_1/file.c level_1/fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_extended.c level_1/program.c level_1/serialized.c level_1/strings.c level_1/utf.c
+build_sources_library level_1/colors.c level_1/console.c level_1/directory.c level_1/status.c level_1/file.c level_1/fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_extended.c level_1/program.c level_1/serialized.c level_1/string.c level_1/utf.c
build_sources_program
-build_sources_headers level_1/colors.h level_1/console.h level_1/directory.h level_1/status.h level_1/file.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_status.h level_1/fss_extended.h level_1/fss_macro.h level_1/program.h level_1/serialized.h level_1/strings.h level_1/utf.h
+build_sources_headers level_1/colors.h level_1/console.h level_1/directory.h level_1/status.h level_1/file.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_status.h level_1/fss_extended.h level_1/fss_macro.h level_1/program.h level_1/serialized.h level_1/string.h level_1/utf.h
build_shared yes
build_static yes
build_linker ar
build_libraries -lc
build_libraries_fll
-build_sources_library level_0/console.c level_0/conversion.c level_0/file.c level_0/memory.c level_0/pipe.c level_0/print.c level_0/utf.c level_1/colors.c level_1/console.c level_1/directory.c level_1/status.c level_1/file.c level_1/fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_extended.c level_1/program.c level_1/serialized.c level_1/strings.c level_1/utf.c level_2/colors.c level_2/execute.c level_2/status.c
+build_sources_library level_0/console.c level_0/conversion.c level_0/file.c level_0/memory.c level_0/pipe.c level_0/print.c level_0/utf.c level_1/colors.c level_1/console.c level_1/directory.c level_1/status.c level_1/file.c level_1/fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_extended.c level_1/program.c level_1/serialized.c level_1/string.c level_1/utf.c level_2/colors.c level_2/execute.c level_2/status.c
build_sources_program
-build_sources_headers level_0/colors.h level_0/console.h level_0/conversion.h level_0/status.h level_0/file.h level_0/fss.h level_0/memory.h level_0/fll_paths.h level_0/filesystem_paths.h level_0/pipe.h level_0/print.h level_0/serialized.h level_0/strings.h level_0/types.h level_0/types_array.h level_0/utf.h level_1/colors.h level_1/console.h level_1/directory.h level_1/status.h level_1/file.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_status.h level_1/fss_extended.h level_1/fss_macro.h level_1/program.h level_1/serialized.h level_1/strings.h level_1/utf.h level_2/colors.h level_2/execute.h level_2/status.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_extended.h level_2/fss_status.h
+build_sources_headers level_0/colors.h level_0/console.h level_0/conversion.h level_0/status.h level_0/file.h level_0/fss.h level_0/memory.h level_0/fll_paths.h level_0/filesystem_paths.h level_0/pipe.h level_0/print.h level_0/serialized.h level_0/string.h level_0/types.h level_0/types_array.h level_0/utf.h level_1/colors.h level_1/console.h level_1/directory.h level_1/status.h level_1/file.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_status.h level_1/fss_extended.h level_1/fss_macro.h level_1/program.h level_1/serialized.h level_1/string.h level_1/utf.h level_2/colors.h level_2/execute.h level_2/status.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_extended.h level_2/fss_status.h
build_sources_bash
build_sources_settings
build_shared yes
#define _F_colors_h
// fll-0 includes
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
f_types
f_memory
-f_strings
+f_string
// fll-0 includes
#include <level_0/status.h>
#include <level_0/types.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#ifdef __cplusplus
extern "C" {
f_types
f_errors
f_memory
-f_strings
+f_string
// fll includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
f_types
f_errors
f_memory
-f_strings
+f_string
#endif // _di_f_file_flush_
#ifndef _di_f_file_read_
- f_return_status f_file_read(f_file *file_information, f_dynamic_string *buffer, const f_file_position location) {
+ f_return_status f_file_read(f_file *file_information, f_string_dynamic *buffer, const f_file_position location) {
#ifndef _di_level_0_parameter_checking_
if (file_information == 0) return f_status_set_error(f_invalid_parameter);
if (buffer->used >= buffer->size) return f_status_set_error(f_invalid_parameter);
// append an EOS only when the total elements were set to 0
if (location.total_elements == 0) {
- buffer->string[buffer->used] = f_eos;
+ buffer->string[buffer->used] = f_string_eos;
}
// make sure to communicate that we are done without a problem and the eof was reached
#endif // _di_f_file_read_
#ifndef _di_f_file_read_fifo_
- f_return_status f_file_read_fifo(f_file *file_information, f_dynamic_string *buffer) {
+ f_return_status f_file_read_fifo(f_file *file_information, f_string_dynamic *buffer) {
#ifndef _di_level_0_parameter_checking_
if (file_information == 0) return f_status_set_error(f_invalid_parameter);
if (buffer->used >= buffer->size) return f_status_set_error(f_invalid_parameter);
// fll-0 includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
/**
* read a given amount of data from the buffer, will auto-seek to where.
*/
- extern f_return_status f_file_read(f_file *file_information, f_dynamic_string *buffer, const f_file_position location);
+ extern f_return_status f_file_read(f_file *file_information, f_string_dynamic *buffer, const f_file_position location);
#endif // _di_f_file_read_
#ifndef _di_f_file_read_fifo_
/**
* read a given amount of data from the buffer, will not auto seek.
*/
- extern f_return_status f_file_read_fifo(f_file *file_information, f_dynamic_string *buffer);
+ extern f_return_status f_file_read_fifo(f_file *file_information, f_string_dynamic *buffer);
#endif // _di_f_file_read_fifo_
#ifndef _di_f_file_stat_
// fll includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
#define f_fss_type_header_close '\n'
#define f_fss_id f_u_long
- #define f_fss_checksum f_dynamic_string
+ #define f_fss_checksum f_string_dynamic
#define f_fss_header_length f_string_length
#define f_fss_id_initialize 0
#define f_fss_delimit_slash '\\'
#define f_fss_delimit_single_quote '\''
#define f_fss_delimit_double_quote '"'
- #define f_fss_delimit_placeholder f_placeholder
+ #define f_fss_delimit_placeholder f_string_placeholder
#endif //_di_f_fss_delimiters_
#ifndef _di_f_fss_codes_
#define f_macro_fss_delimits_clear(delimits) f_macro_memory_structure_clear(delimits)
- #define f_macro_fss_delimits_new(status, delimits) f_macro_strings_string_locations_new(status, delimits)
- #define f_macro_fss_delimits_delete(status, delimits) f_macro_strings_string_locations_delete(status, delimits)
- #define f_macro_fss_delimits_destroy(status, delimits) f_macro_strings_string_locations_destroy(status, delimits)
+ #define f_macro_fss_delimits_new(status, delimits) f_macro_string_locations_new(status, delimits)
+ #define f_macro_fss_delimits_delete(status, delimits) f_macro_string_locations_delete(status, delimits)
+ #define f_macro_fss_delimits_destroy(status, delimits) f_macro_string_locations_destroy(status, delimits)
- #define f_macro_fss_delimits_resize(status, delimits, new_length) f_macro_strings_string_locations_resize(status, delimits, new_length)
- #define f_macro_fss_delimits_adjust(status, delimits, new_length) f_macro_strings_string_locations_adjust(status, delimits , new_length)
+ #define f_macro_fss_delimits_resize(status, delimits, new_length) f_macro_string_locations_resize(status, delimits, new_length)
+ #define f_macro_fss_delimits_adjust(status, delimits, new_length) f_macro_string_locations_adjust(status, delimits , new_length)
#endif // _di_f_fss_delimits_
/**
f_types
f_errors
f_memory
-f_strings
+f_string
register f_string_length i = 0;
for (; i < length; i++) {
- if (string[i] != f_eos) {
+ if (string[i] != f_string_eos) {
if (fputc(string[i], output) == 0) {
return f_status_set_error(f_output_error);
}
}
#endif // _di_f_print_string_
-#ifndef _di_f_print_dynamic_string_
- f_return_status f_print_dynamic_string(FILE *output, const f_dynamic_string buffer) {
+#ifndef _di_f_print_string_dynamic_
+ f_return_status f_print_string_dynamic(FILE *output, const f_string_dynamic buffer) {
#ifndef _di_level_0_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
register f_string_length i = 0;
for (; i < buffer.used; i++) {
- if (buffer.string[i] != f_eos) {
+ if (buffer.string[i] != f_string_eos) {
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_output_error);
}
return f_none;
}
-#endif // _di_f_print_dynamic_string_
+#endif // _di_f_print_string_dynamic_
-#ifndef _di_f_print_partial_dynamic_string_
- f_return_status f_print_partial_dynamic_string(FILE *output, const f_dynamic_string buffer, const f_string_location location) {
+#ifndef _di_f_print_string_dynamic_partial_
+ f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_dynamic buffer, const f_string_location location) {
#ifndef _di_level_0_parameter_checking_
if (location.start < 0) return f_status_set_error(f_invalid_parameter);
if (location.stop < location.start) return f_status_set_error(f_invalid_parameter);
register f_string_length i = location.start;
for (; i <= location.stop; i++) {
- if (buffer.string[i] != f_eos) {
+ if (buffer.string[i] != f_string_eos) {
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_output_error);
}
return f_none;
}
-#endif // _di_f_print_partial_dynamic_string_
+#endif // _di_f_print_string_dynamic_partial_
#ifdef __cplusplus
} // extern "C"
// fll-0 includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
* f_output_error (with error bit) on failure.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
-#ifndef _di_f_print_dynamic_string_
- extern f_return_status f_print_dynamic_string(FILE *output, const f_dynamic_string buffer);
-#endif // _di_f_print_dynamic_string_
+#ifndef _di_f_print_string_dynamic_
+ extern f_return_status f_print_string_dynamic(FILE *output, const f_string_dynamic buffer);
+#endif // _di_f_print_string_dynamic_
/**
* Similar to a c-library printf, except that this will only print a specific range.
* f_output_error (with error bit) on failure.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
-#ifndef _di_f_print_partial_dynamic_string_
- extern f_return_status f_print_partial_dynamic_string(FILE *output, const f_dynamic_string buffer, const f_string_location location);
-#endif // _di_f_print_partial_dynamic_string_
+#ifndef _di_f_print_string_dynamic_partial_
+ extern f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_dynamic buffer, const f_string_location location);
+#endif // _di_f_print_string_dynamic_partial_
#ifdef __cplusplus
} // extern "C"
f_types
f_errors
f_memory
-f_strings
+f_string
#include <string.h>
// fll-0 includes
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
f_types
f_memory
-f_strings
+f_string
// fll includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
/**
* FLL - Level 0
*
- * Project: Strings
+ * Project: String
* API Version: 0.5
* Licenses: lgplv2.1
*
* Provides string capabilities.
*/
-#ifndef _F_strings_h
-#define _F_strings_h
+#ifndef _F_string_h
+#define _F_string_h
// libc includes
#include <string.h>
/**
* Define the end of string character.
*/
-#ifndef _di_f_have_eos_
- #define f_eos '\0'
-#endif // _di_f_have_eos_
+#ifndef _di_f_string_has_eos_
+ #define f_string_eos '\0'
+#endif // _di_f_string_has_eos_
/**
* Define the end of line character.
* FLL forbids '\r' and '\r\n' as end of line characters, \r will be silently ignored.
*/
-#ifndef _di_f_have_eol_
- #define f_eol '\n'
-#endif // _di_f_have_eol_
+#ifndef _di_f_string_has_eol_
+ #define f_string_eol '\n'
+#endif // _di_f_string_has_eol_
-#ifndef _di_f_have_placeholder_
- #define f_placeholder '\0'
-#endif // _di_f_have_placeholder_
+#ifndef _di_f_string_has_placeholder_
+ #define f_string_placeholder '\0'
+#endif // _di_f_string_has_placeholder_
#ifndef _di_string_format_pointers_
#define string_format_string "%s"
/**
* define the basic string type.
*/
-#ifndef _di_f_have_string_
+#ifndef _di_f_string_
typedef char *f_string;
#define f_string_max_size f_signed_long_size
- #define f_string_initialize f_eos
+ #define f_string_initialize f_string_eos
- #define f_macro_strings_string_new(status, string, length) status = f_new_array((void **) & string, sizeof(f_string), length)
- #define f_macro_strings_string_delete(status, string, size) status = f_delete((void **) & string, sizeof(f_string), size)
- #define f_macro_strings_string_destroy(status, string, size) status = f_destroy((void **) & string, sizeof(f_string), size)
+ #define f_macro_string_new(status, string, length) status = f_new_array((void **) & string, sizeof(f_string), length)
+ #define f_macro_string_delete(status, string, size) status = f_delete((void **) & string, sizeof(f_string), size)
+ #define f_macro_string_destroy(status, string, size) status = f_destroy((void **) & string, sizeof(f_string), size)
- #define f_macro_strings_string_resize(status, string, old_length, new_length) \
+ #define f_macro_string_resize(status, string, old_length, new_length) \
status = f_resize((void **) & string, sizeof(f_string), old_length, new_length)
- #define f_macro_strings_string_adjust(status, string, old_length, new_length) \
+ #define f_macro_string_adjust(status, string, old_length, new_length) \
status = f_adjust((void **) & string, sizeof(f_string), old_length, new_length)
-#endif // _di_f_have_string_
+#endif // _di_f_string_
#ifndef _di_f_string_length_
typedef f_s_long f_string_length;
#define f_string_length_printf string_format_long_integer
- #define f_macro_strings_string_length_new(status, string, length) status = f_new_array((void **) & string, sizeof(f_string_length), length)
- #define f_macro_strings_string_length_delete(status, string, length) status = f_delete((void **) & string, sizeof(f_string_length), length)
- #define f_macro_strings_string_length_destroy(status, string, size) status = f_destroy((f_void_P *) & string, sizeof(f_string_length), size)
+ #define f_macro_string_length_new(status, string, length) status = f_new_array((void **) & string, sizeof(f_string_length), length)
+ #define f_macro_string_length_delete(status, string, length) status = f_delete((void **) & string, sizeof(f_string_length), length)
+ #define f_macro_string_length_destroy(status, string, size) status = f_destroy((f_void_P *) & string, sizeof(f_string_length), size)
- #define f_macro_strings_string_length_resize(status, length, old_length, new_length) \
+ #define f_macro_string_length_resize(status, length, old_length, new_length) \
status = f_resize((void **) & length, sizeof(f_string_length), old_length, new_length)
- #define f_macro_strings_string_length_adjust(status, length, old_length, new_length) \
+ #define f_macro_string_length_adjust(status, length, old_length, new_length) \
status = f_adjust((void **) & length, sizeof(f_string_length), old_length, new_length)
#endif // _di_f_string_length_
#define f_string_lengths_initialize { 0, 0, 0 }
- #define f_macro_strings_string_lengths_new(status, lengths) \
+ #define f_macro_string_lengths_new(status, lengths) \
f_macro_memory_structure_new(status, lengths, f_string_length)
- #define f_macro_strings_string_lengths_delete(status, lengths) \
+ #define f_macro_string_lengths_delete(status, lengths) \
f_macro_memory_structure_delete(status, lengths, f_string_length)
- #define f_macro_strings_string_lengths_destroy(status, lengths) \
+ #define f_macro_string_lengths_destroy(status, lengths) \
f_macro_memory_structure_destroy(status, lengths, f_string_length)
- #define f_macro_strings_string_lengths_resize(status, lengths, new_length) \
+ #define f_macro_string_lengths_resize(status, lengths, new_length) \
f_macro_memory_structure_resize(status, lengths, f_string_length, new_length)
- #define f_macro_strings_string_lengths_adjust(status, lengths, new_length) \
+ #define f_macro_string_lengths_adjust(status, lengths, new_length) \
f_macro_memory_structure_adjust(status, lengths, f_string_length, new_length)
#endif // _di_f_string_lengths_
#define f_string_location_initialize { 1, 0 }
- #define f_macro_strings_string_location_new(status, string_location, length) status = f_new_array((void **) & string_location, sizeof(f_string_location), length)
- #define f_macro_strings_string_location_delete(status, string_location, size) status = f_delete((void **) & string_location, sizeof(f_string_location), size)
- #define f_macro_strings_string_location_destroy(status, string_location, size) status = f_destroy((void **) & string_location, sizeof(f_string_location), size)
+ #define f_macro_string_location_new(status, string_location, length) status = f_new_array((void **) & string_location, sizeof(f_string_location), length)
+ #define f_macro_string_location_delete(status, string_location, size) status = f_delete((void **) & string_location, sizeof(f_string_location), size)
+ #define f_macro_string_location_destroy(status, string_location, size) status = f_destroy((void **) & string_location, sizeof(f_string_location), size)
- #define f_macro_strings_string_location_resize(status, string_location, old_length, new_length) \
+ #define f_macro_string_location_resize(status, string_location, old_length, new_length) \
status = f_resize((void **) & string_location, sizeof(f_string_location), old_length, new_length)
- #define f_macro_strings_string_location_adjust(status, string_location, old_length, new_length) \
+ #define f_macro_string_location_adjust(status, string_location, old_length, new_length) \
status = f_adjust((void **) & string_location, sizeof(f_string_location), old_length, new_length)
#endif // _di_f_string_location_
#define f_clear_string_locations(locations) \
f_macro_memory_structure_clear(locations)
- #define f_macro_strings_string_locations_new(status, locations, length) \
+ #define f_macro_string_locations_new(status, locations, length) \
f_macro_memory_structure_new(status, locations, f_string_location, length)
- #define f_macro_strings_string_locations_delete(status, locations) \
+ #define f_macro_string_locations_delete(status, locations) \
f_macro_memory_structure_delete(status, locations, f_string_location)
- #define f_macro_strings_string_locations_destroy(status, locations) \
+ #define f_macro_string_locations_destroy(status, locations) \
f_macro_memory_structure_destroy(status, locations, f_string_location)
- #define f_macro_strings_string_locations_resize(status, locations, new_length) \
+ #define f_macro_string_locations_resize(status, locations, new_length) \
f_macro_memory_structure_resize(status, locations, f_string_location, new_length)
- #define f_macro_strings_string_locations_adjust(status, locations, new_length) \
+ #define f_macro_string_locations_adjust(status, locations, new_length) \
f_macro_memory_structure_adjust(status, locations, f_string_location, new_length)
#endif // _di_f_string_locations_
* size: total amount of allocated space.
* used: total number of allocated spaces used.
*/
-#ifndef _di_f_dynamic_string_
+#ifndef _di_f_string_dynamic_
typedef struct {
f_string string;
f_string_length size;
f_string_length used;
- } f_dynamic_string;
+ } f_string_dynamic;
- #define f_dynamic_string_initialize { f_string_initialize, 0, 0 }
+ #define f_string_dynamic_initialize { f_string_initialize, 0, 0 }
- #define f_clear_dynamic_string(dynamic) \
+ #define f_clear_string_dynamic(dynamic) \
dynamic.string = 0; \
dynamic.size = 0; \
dynamic.used = 0;
#define f_macro_string_dynamic_new(status, dynamic, new_length) \
- f_clear_dynamic_string(dynamic) \
+ f_clear_string_dynamic(dynamic) \
status = f_new_array((void **) & dynamic.string, sizeof(f_string), new_length); \
if (status == f_none) { \
dynamic.size = new_length; \
dynamic.size = new_length; \
if (dynamic.used > dynamic.size) dynamic.used = new_length; \
}
-#endif // _di_f_dynamic_string_
+#endif // _di_f_string_dynamic_
/**
* an array of dynamic strings.
* size: total amount of allocated space.
* used: total number of allocated spaces used.
*/
-#ifndef _di_f_dynamic_strings_
+#ifndef _di_f_string_dynamics_
typedef struct {
- f_dynamic_string *array;
+ f_string_dynamic *array;
f_string_length size;
f_string_length used;
- } f_dynamic_strings;
+ } f_string_dynamics;
- #define f_dynamic_strings_initialize { 0, 0, 0 }
+ #define f_string_dynamics_initialize { 0, 0, 0 }
- #define f_clear_dynamic_strings(dynamics) \
+ #define f_clear_string_dynamics(dynamics) \
dynamics.array = 0; \
dynamics.size = 0; \
dynamics.used = 0;
dynamics.array = 0; \
dynamics.size = 0; \
dynamics.used = 0; \
- status = f_new_array((void **) & dynamics.array, sizeof(f_dynamic_string), length); \
+ status = f_new_array((void **) & dynamics.array, sizeof(f_string_dynamic), length); \
if (status == f_none) { \
dynamics.size = length; \
dynamics.used = 0; \
f_macro_string_dynamic_destroy(status, dynamics.array[dynamics.size]); \
if (status != f_none) break; \
} \
- if (status == f_none) status = f_delete((void **) & dynamics.array, sizeof(f_dynamic_string), dynamics.size); \
+ if (status == f_none) status = f_delete((void **) & dynamics.array, sizeof(f_string_dynamic), dynamics.size); \
if (status == f_none) dynamics.used = 0;
#define f_macro_string_dynamics_destroy(status, dynamics) \
f_macro_string_dynamic_destroy(status, dynamics.array[dynamics.size]); \
if (status != f_none) break; \
} \
- if (status == f_none) status = f_destroy((void **) & dynamics.array, sizeof(f_dynamic_string), dynamics.size); \
+ if (status == f_none) status = f_destroy((void **) & dynamics.array, sizeof(f_string_dynamic), dynamics.size); \
if (status == f_none) dynamics.used = 0;
#define f_macro_string_dynamics_resize(status, dynamics, new_length) \
if (status != f_none) break; \
} \
} \
- if (status == f_none) status = f_resize((void **) & dynamics.array, sizeof(f_dynamic_string), dynamics.size, new_length); \
+ if (status == f_none) status = f_resize((void **) & dynamics.array, sizeof(f_string_dynamic), dynamics.size, new_length); \
if (status == f_none) { \
if (new_length > dynamics.size) { \
f_string_length i = dynamics.size; \
for (; i < new_length; ++i) { \
- memset(&dynamics.array[i], 0, sizeof(f_dynamic_string)); \
+ memset(&dynamics.array[i], 0, sizeof(f_string_dynamic)); \
} \
} \
dynamics.size = new_length; \
if (new_length < dynamics.size) { \
f_string_length i = dynamics.size - new_length; \
for (; i < dynamics.size; ++i) { \
- f_macro_string_dynamic_destroy(status, dynamics.array[i], f_dynamic_string); \
+ f_macro_string_dynamic_destroy(status, dynamics.array[i], f_string_dynamic); \
if (status != f_none) break; \
} \
} \
- if (status == f_none) status = f_adjust((void **) & dynamics.array, sizeof(f_dynamic_string), dynamics.size, new_length); \
+ if (status == f_none) status = f_adjust((void **) & dynamics.array, sizeof(f_string_dynamic), dynamics.size, new_length); \
if (status == f_none) { \
if (new_length > dynamics.size) { \
f_string_length i = dynamics.size; \
for (; i < new_length; ++i) { \
- memset(&dynamics.array[i], 0, sizeof(f_dynamic_string)); \
+ memset(&dynamics.array[i], 0, sizeof(f_string_dynamic)); \
} \
} \
dynamics.size = new_length; \
if (dynamics.used > dynamics.size) dynamics.used = new_length; \
}
-#endif // _di_f_dynamic_string_
+#endif // _di_f_string_dynamic_
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _F_strings_h
+#endif // _F_string_h
# fss-0000
-project_name f_strings
+project_name f_string
project_level 0
version_major 0
build_libraries_fll
build_sources_library
build_sources_program
-build_sources_headers strings.h
+build_sources_headers string.h
build_sources_bash
build_sources_settings
build_shared yes
f_u_short width = f_macro_utf_character_width_is(utf_character);
if (max_width == 0) {
- f_macro_strings_string_new(status, *character, width);
+ f_macro_string_new(status, *character, width);
if (f_status_is_error(status)) return status;
// fll includes
#include <level_0/status.h>
#include <level_0/types.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#ifdef __cplusplus
extern "C" {
f_types
f_errors
f_memory
-f_strings
+f_string
#endif // _di_fl_color_set_
#ifndef _di_fl_color_save_
- f_return_status fl_color_save(f_dynamic_string *buffer, const f_colors_format format, const char *color1, const char *color2, const char *color3, const char *color4, const char *color5) {
+ f_return_status fl_color_save(f_string_dynamic *buffer, const f_colors_format format, const char *color1, const char *color2, const char *color3, const char *color4, const char *color5) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (color1 == 0) return f_status_set_error(f_invalid_parameter);
buffer->used += string_size;
// do not forget the EOS
- buffer->string[buffer->used] = f_eos;
+ buffer->string[buffer->used] = f_string_eos;
return f_none;
}
#endif // _di_fl_color_save_
#ifndef _di_fl_color_print_
- f_return_status fl_color_print(FILE *file, const f_dynamic_string start_color, const f_dynamic_string end_color, const char *string, ...) {
+ f_return_status fl_color_print(FILE *file, const f_string_dynamic start_color, const f_string_dynamic end_color, const char *string, ...) {
#ifndef _di_level_1_parameter_checking_
if (file == 0) return f_status_set_error(f_invalid_parameter);
if (string == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_dynamic_string(file, start_color);
+ f_status status = f_print_string_dynamic(file, start_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_dynamic_string(file, end_color);
+ f_status status = f_print_string_dynamic(file, end_color);
if (f_status_is_error(status)) return status;
}
#endif // _di_fl_color_print_
#ifndef _di_fl_color_print_line_
- f_return_status fl_color_print_line(FILE *file, const f_dynamic_string start_color, const f_dynamic_string end_color, const char *string, ...) {
+ f_return_status fl_color_print_line(FILE *file, const f_string_dynamic start_color, const f_string_dynamic end_color, const char *string, ...) {
#ifndef _di_level_1_parameter_checking_
if (file == 0) return f_status_set_error(f_invalid_parameter);
if (string == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_dynamic_string(file, start_color);
+ f_status status = f_print_string_dynamic(file, start_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_dynamic_string(file, end_color);
+ f_status status = f_print_string_dynamic(file, end_color);
if (f_status_is_error(status)) return status;
}
#endif // _di_fl_color_print_line_
#ifndef _di_fl_color_print_code_
- f_return_status fl_color_print_code(FILE *file, const f_dynamic_string color) {
+ f_return_status fl_color_print_code(FILE *file, const f_string_dynamic color) {
if (color.used != 0) {
- f_status status = f_print_dynamic_string(file, color);
+ f_status status = f_print_string_dynamic(file, color);
if (f_status_is_error(status)) return status;
}
#include <level_0/colors.h>
#include <level_0/status.h>
#include <level_0/file.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/print.h>
typedef struct {
f_colors color_list;
f_colors_format color_format;
- f_dynamic_string reset;
- f_dynamic_string warning;
- f_dynamic_string error;
- f_dynamic_string title;
- f_dynamic_string notable;
- f_dynamic_string important;
- f_dynamic_string standout;
- f_dynamic_string normal;
- f_dynamic_string normal_reset;
+ f_string_dynamic reset;
+ f_string_dynamic warning;
+ f_string_dynamic error;
+ f_string_dynamic title;
+ f_string_dynamic notable;
+ f_string_dynamic important;
+ f_string_dynamic standout;
+ f_string_dynamic normal;
+ f_string_dynamic normal_reset;
} fl_color_context;
- #define fl_color_context_initialize { f_colors_initialize_linux, f_colors_format_initialize_linux, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize, f_dynamic_string_initialize }
+ #define fl_color_context_initialize { f_colors_initialize_linux, f_colors_format_initialize_linux, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize, f_string_dynamic_initialize }
#define fl_new_color_context(status, color_context) \
f_macro_string_dynamic_resize(status, color_context.reset, f_color_max_size + 1); \
* f_reallocation_error (with error bit) on memory reallocation error.
*/
#ifndef _di_fl_color_save_
- extern f_return_status fl_color_save(f_dynamic_string *buffer, const f_colors_format format, const char *color1, const char *color2, const char *color3, const char *color4, const char *color5);
+ extern f_return_status fl_color_save(f_string_dynamic *buffer, const f_colors_format format, const char *color1, const char *color2, const char *color3, const char *color4, const char *color5);
#define fl_macro_color_save_1(buffer, format, color1) fl_color_save(buffer, format, color1, 0, 0, 0, 0)
#define fl_macro_color_save_2(buffer, format, color1, color2) fl_color_save(buffer, format, color1, color2, 0, 0, 0)
* f_output_error (with error bit) on output error.
*/
#ifndef _di_fl_color_print_
- extern f_return_status fl_color_print(FILE *file, const f_dynamic_string start_color, const f_dynamic_string end_color, const char *string, ...);
+ extern f_return_status fl_color_print(FILE *file, const f_string_dynamic start_color, const f_string_dynamic end_color, const char *string, ...);
#endif // _di_fl_color_print_
/**
* f_output_error (with error bit) on output error.
*/
#ifndef _di_fl_color_print_line_
- extern f_return_status fl_color_print_line(FILE *file, const f_dynamic_string start_color, const f_dynamic_string end_color, const char *string, ...);
+ extern f_return_status fl_color_print_line(FILE *file, const f_string_dynamic start_color, const f_string_dynamic end_color, const char *string, ...);
#endif // _di_fl_color_print_line_
/**
* f_output_error (with error bit) on output error.
*/
#ifndef _di_fl_color_print_code_
- extern f_return_status fl_color_print_code(FILE *file, const f_dynamic_string color);
+ extern f_return_status fl_color_print_code(FILE *file, const f_string_dynamic color);
#endif // _di_fl_color_print_code_
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
f_colors
f_file
f_memory
if (parameters[parameter_counter].additional.used >= parameters[parameter_counter].additional.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, parameters[parameter_counter].additional, parameters[parameter_counter].additional.size + f_console_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, parameters[parameter_counter].additional, parameters[parameter_counter].additional.size + f_console_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(status, needs_additional);
+ f_macro_string_lengths_delete(status, needs_additional);
return f_status_set_error(allocation_status);
}
}
if (needs_additional.used + parameters[parameter_counter].has_additional > needs_additional.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, needs_additional, needs_additional.used + parameters[parameter_counter].has_additional);
+ f_macro_string_lengths_resize(allocation_status, needs_additional, needs_additional.used + parameters[parameter_counter].has_additional);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(status, needs_additional);
+ f_macro_string_lengths_delete(status, needs_additional);
return f_status_set_error(allocation_status);
}
}
if (needs_additional.used + parameters[parameter_counter].has_additional > needs_additional.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, needs_additional, needs_additional.used + parameters[parameter_counter].has_additional);
+ f_macro_string_lengths_resize(allocation_status, needs_additional, needs_additional.used + parameters[parameter_counter].has_additional);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(status, needs_additional);
+ f_macro_string_lengths_delete(status, needs_additional);
return f_status_set_error(allocation_status);
}
}
if (remaining->used >= remaining->size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, (*remaining), remaining->size + f_console_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, (*remaining), remaining->size + f_console_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(status, needs_additional);
+ f_macro_string_lengths_delete(status, needs_additional);
return f_status_set_error(allocation_status);
}
}
{
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, needs_additional);
+ f_macro_string_lengths_delete(allocation_status, needs_additional);
}
return status;
// fll-0 includes
#include <level_0/console.h>
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
f_console
f_memory
f_utf
#ifndef _di_fl_directory_list_
// put the names of each file and/or directory inside the names parameter
- f_return_status fl_directory_list(const f_string directory_path, f_dynamic_strings *names) {
+ f_return_status fl_directory_list(const f_string directory_path, f_string_dynamics *names) {
#ifndef _di_level_1_parameter_checking_
if (names == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
// fll-0 includes
#include <level_0/status.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
/**
* put the names of each file and/or directory inside the names parameter.
*/
- extern f_return_status fl_directory_list(const f_string directory_path, f_dynamic_strings *names);
+ extern f_return_status fl_directory_list(const f_string directory_path, f_string_dynamics *names);
#endif // _di_fl_directory_list_
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
f_memory
#endif
#ifndef _di_fl_file_read_
- f_return_status fl_file_read(f_file file, const f_file_position position, f_dynamic_string *buffer) {
+ f_return_status fl_file_read(f_file file, const f_file_position position, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fl_file_read_
#ifndef _di_fl_file_read_fifo_
- f_return_status fl_file_read_fifo(f_file file, f_dynamic_string *buffer) {
+ f_return_status fl_file_read_fifo(f_file file, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_file_read_fifo_
#ifndef _di_fl_file_write_
- f_return_status fl_file_write(f_file file, const f_dynamic_string buffer) {
+ f_return_status fl_file_write(f_file file, const f_string_dynamic buffer) {
if (file.file == 0) return f_status_set_error(f_file_not_open);
f_status status = f_none;
#endif // _di_fl_file_write_
#ifndef _di_fl_file_write_partial_
- f_return_status fl_file_write_partial(f_file file, const f_dynamic_string buffer, const f_string_location position) {
+ f_return_status fl_file_write_partial(f_file file, const f_string_dynamic buffer, const f_string_location position) {
#ifndef _di_level_1_parameter_checking_
if (position.start < position.stop) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
// fll-0 includes
#include <level_0/file.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
/**
* read file, specific positions.
*/
- extern f_return_status fl_file_read(f_file file, const f_file_position position, f_dynamic_string *buffer);
+ extern f_return_status fl_file_read(f_file file, const f_file_position position, f_string_dynamic *buffer);
#endif // _di_fl_file_read_
#ifndef _di_fl_file_read_fifo_
/**
* read file, entire file.
*/
- extern f_return_status fl_file_read_fifo(f_file file, f_dynamic_string *buffer);
+ extern f_return_status fl_file_read_fifo(f_file file, f_string_dynamic *buffer);
#endif // _di_fl_file_read_fifo_
#ifndef _di_fl_file_write_
/**
* write file, entire file.
*/
- extern f_return_status fl_file_write(f_file file, const f_dynamic_string buffer);
+ extern f_return_status fl_file_write(f_file file, const f_string_dynamic buffer);
#endif // _di_fl_file_write_
#ifndef _di_fl_file_write_partial_
/**
* write file, specific positions.
*/
- extern f_return_status fl_file_write_partial(f_file file, const f_dynamic_string buffer, const f_string_location position);
+ extern f_return_status fl_file_write_partial(f_file file, const f_string_dynamic buffer, const f_string_location position);
#endif // _di_fl_file_write_partial_
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
f_file
f_memory
#endif
#ifndef _di_fl_fss_decrement_buffer_
- f_return_status fl_fss_decrement_buffer(const f_dynamic_string buffer, f_string_location *input, const f_string_length step) {
+ f_return_status fl_fss_decrement_buffer(const f_string_dynamic buffer, f_string_location *input, const f_string_length step) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input->start < 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fl_fss_decrement_buffer_
#ifndef _di_fl_fss_identify_
- f_return_status fl_fss_identify(const f_dynamic_string buffer, f_fss_header *header) {
+ f_return_status fl_fss_identify(const f_string_dynamic buffer, f_fss_header *header) {
#ifndef _di_level_1_parameter_checking_
if (header == 0) return f_status_set_error(f_invalid_parameter);
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
clearerr(file_information->file);
f_status status = f_none;
- f_dynamic_string buffer = f_dynamic_string_initialize;
+ f_string_dynamic buffer = f_string_dynamic_initialize;
f_file_position location = f_file_position_initialize;
// make sure we are in the proper location in the file
#endif // _di_fl_fss_identify_file_
#ifndef _di_fl_fss_increment_buffer_
- f_return_status fl_fss_increment_buffer(const f_dynamic_string buffer, f_string_location *input, const f_string_length step) {
+ f_return_status fl_fss_increment_buffer(const f_string_dynamic buffer, f_string_location *input, const f_string_length step) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input->start < 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fl_fss_increment_buffer_
#ifndef _di_fl_fss_is_graph_
- f_return_status fl_fss_is_graph(const f_dynamic_string buffer, const f_string_location input) {
+ f_return_status fl_fss_is_graph(const f_string_dynamic buffer, const f_string_location input) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input.start < 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fl_fss_is_graph_
#ifndef _di_fl_fss_is_space_
- f_return_status fl_fss_is_space(const f_dynamic_string buffer, const f_string_location input) {
+ f_return_status fl_fss_is_space(const f_string_dynamic buffer, const f_string_location input) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input.start < 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fl_fss_is_space_
#ifndef _di_fl_fss_skip_past_whitespace_
- f_return_status fl_fss_skip_past_whitespace(const f_dynamic_string buffer, f_string_location *input) {
+ f_return_status fl_fss_skip_past_whitespace(const f_string_dynamic buffer, f_string_location *input) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
max_width = buffer.used - input->start;
}
- while (buffer.string[input->start] == f_eos || (status = f_utf_is_graph(buffer.string + input->start, max_width)) == f_false) {
+ while (buffer.string[input->start] == f_string_eos || (status = f_utf_is_graph(buffer.string + input->start, max_width)) == f_false) {
if (f_status_is_error(status)) {
return status;
}
- if (buffer.string[input->start] == f_eol) return f_none_on_eol;
+ if (buffer.string[input->start] == f_string_eol) return f_none_on_eol;
width = f_macro_utf_byte_width_is(buffer.string[input->start]);
#endif // _di_fl_fss_skip_past_whitespace_
#ifndef _di_fl_fss_skip_past_all_whitespace_
- f_return_status fl_fss_skip_past_all_whitespace(const f_dynamic_string buffer, f_string_location *input) {
+ f_return_status fl_fss_skip_past_all_whitespace(const f_string_dynamic buffer, f_string_location *input) {
#ifndef _di_level_1_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
max_width = buffer.used - input->start;
}
- while (buffer.string[input->start] == f_eos || (status = f_utf_is_graph(buffer.string + input->start, max_width)) == f_false) {
+ while (buffer.string[input->start] == f_string_eos || (status = f_utf_is_graph(buffer.string + input->start, max_width)) == f_false) {
if (f_status_is_error(status)) {
return status;
}
#endif // _di_fl_fss_skip_past_all_whitespace_
#ifndef _di_fl_fss_shift_delimiters_
- f_return_status fl_fss_shift_delimiters(f_dynamic_string *buffer, const f_string_location input) {
+ f_return_status fl_fss_shift_delimiters(f_string_dynamic *buffer, const f_string_location input) {
#ifndef _di_level_1_parameter_checking_
if (buffer->used <= 0) return f_status_set_error(f_invalid_parameter);
if (input.start < 0) return f_status_set_error(f_invalid_parameter);
#include <level_0/status.h>
#include <level_0/file.h>
#include <level_0/fss.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
* f_incomplete_utf_on_eos (with error bit) if the end of buffer is reached before the complete UTF-8 character can be processed.
*/
#ifndef _di_fl_fss_decrement_buffer_
- extern f_return_status fl_fss_decrement_buffer(const f_dynamic_string buffer, f_string_location *input, const f_string_length step);
+ extern f_return_status fl_fss_decrement_buffer(const f_string_dynamic buffer, f_string_location *input, const f_string_length step);
#endif // _di_fl_fss_decrement_buffer_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_identify_
- extern f_return_status fl_fss_identify(const f_dynamic_string buffer, f_fss_header *header);
+ extern f_return_status fl_fss_identify(const f_string_dynamic buffer, f_fss_header *header);
#endif // _di_fl_fss_identify_
/**
* f_incomplete_utf_on_eos (with error bit) if the end of buffer is reached before the complete UTF-8 character can be processed.
*/
#ifndef _di_fl_fss_increment_buffer_
- extern f_return_status fl_fss_increment_buffer(const f_dynamic_string buffer, f_string_location *input, const f_string_length step);
+ extern f_return_status fl_fss_increment_buffer(const f_string_dynamic buffer, f_string_location *input, const f_string_length step);
#endif // _di_fl_fss_increment_buffer_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_is_graph_
- extern f_return_status fl_fss_is_graph(const f_dynamic_string buffer, const f_string_location input);
+ extern f_return_status fl_fss_is_graph(const f_string_dynamic buffer, const f_string_location input);
#endif // _di_fl_fss_is_graph_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_is_space_
- extern f_return_status fl_fss_is_space(const f_dynamic_string buffer, const f_string_location input);
+ extern f_return_status fl_fss_is_space(const f_string_dynamic buffer, const f_string_location input);
#endif // _di_fl_fss_is_space_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_shift_delimiters_
- extern f_return_status fl_fss_shift_delimiters(f_dynamic_string *buffer, const f_string_location input);
+ extern f_return_status fl_fss_shift_delimiters(f_string_dynamic *buffer, const f_string_location input);
#endif // _di_fl_fss_shift_delimiters_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_skip_past_whitespace_
- extern f_return_status fl_fss_skip_past_whitespace(const f_dynamic_string buffer, f_string_location *input);
+ extern f_return_status fl_fss_skip_past_whitespace(const f_string_dynamic buffer, f_string_location *input);
#endif // _di_fl_fss_skip_past_whitespace_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_skip_past_all_whitespace_
- extern f_return_status fl_fss_skip_past_all_whitespace(const f_dynamic_string buffer, f_string_location *input);
+ extern f_return_status fl_fss_skip_past_all_whitespace(const f_string_dynamic buffer, f_string_location *input);
#endif // _di_fl_fss_skip_past_all_whitespace_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_object_read_
- f_return_status fl_fss_basic_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found) {
+ f_return_status fl_fss_basic_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
}
// handle quote support
- char quoted = f_eos;
+ char quoted = f_string_eos;
// identify where the object begins
if (buffer->string[input->start] == f_fss_delimit_slash) {
if (delimits.used >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
}
// identify where the object ends
- if (quoted == f_eos) {
+ if (quoted == f_string_eos) {
status = f_none;
while (buffer->string[input->start] == f_fss_delimit_placeholder || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
status = fl_fss_increment_buffer(*buffer, input, 1);
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
if ((status = fl_fss_is_graph(*buffer, *input)) == f_true) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
{
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
}
status = fl_fss_increment_buffer(*buffer, input, 1);
else if (f_status_is_error(status)) {
return status;
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = location - 1;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
if (f_status_is_error(status)) return status;
while (input->start <= input->stop && input->start < buffer->used) {
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
status = fl_fss_increment_buffer(*buffer, input, 1);
return status;
}
else if (buffer->string[input->start] != f_fss_delimit_placeholder) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
{
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
}
status = fl_fss_increment_buffer(*buffer, input, 1);
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
{
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
}
status = fl_fss_increment_buffer(*buffer, input, 1);
}
// seek to the end of the line when no valid object is found
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
{
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
}
#endif // _di_fl_fss_basic_object_read_
#ifndef _di_fl_fss_basic_content_read_
- f_return_status fl_fss_basic_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found) {
+ f_return_status fl_fss_basic_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
// return found nothing if this line only contains whitespace and delimit placeholders
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
#endif // _di_fl_fss_basic_content_read_
#ifndef _di_fl_fss_basic_object_write_
- f_return_status fl_fss_basic_object_write(f_dynamic_string *buffer, const f_dynamic_string object, f_string_location *input) {
+ f_return_status fl_fss_basic_object_write(f_string_dynamic *buffer, const f_string_dynamic object, f_string_location *input) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
continue;
}
- else if (object.string[input->start] == f_eol) {
+ else if (object.string[input->start] == f_string_eol) {
if (quoted) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
continue;
}
- else if (object.string[input->start] == f_eol) {
+ else if (object.string[input->start] == f_string_eol) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
#endif // _di_fl_fss_basic_object_write_
#ifndef _di_fl_fss_basic_content_write_
- f_return_status fl_fss_basic_content_write(f_dynamic_string *buffer, const f_dynamic_string content, f_string_location *input) {
+ f_return_status fl_fss_basic_content_write(f_string_dynamic *buffer, const f_string_dynamic content, f_string_location *input) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
}
while (input->start <= input->stop && input->start < content.used) {
- if (content.string[input->start] == f_eol){
- buffer->string[buffer_position.stop] = f_eol;
+ if (content.string[input->start] == f_string_eol){
+ buffer->string[buffer_position.stop] = f_string_eol;
buffer->used = buffer_position.stop + 1;
return f_none_on_eos;
}
fl_fss_increment_buffer(*buffer, input, 1);
} // while
- buffer->string[buffer_position.stop] = f_eol;
+ buffer->string[buffer_position.stop] = f_string_eol;
buffer->used = buffer_position.stop + 1;
if (input->start > input->stop) {
// fll-0 includes
#include <level_0/status.h>
#include <level_0/fss.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/memory.h>
#include <level_0/utf.h>
/**
* read an fss-0000 object.
*/
- extern f_return_status fl_fss_basic_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found);
+ extern f_return_status fl_fss_basic_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found);
#endif // _di_fl_fss_basic_object_read_
#ifndef _di_fl_fss_basic_content_read_
/**
* read an fss-0000 content.
*/
- extern f_return_status fl_fss_basic_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found);
+ extern f_return_status fl_fss_basic_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found);
#endif // _di_fl_fss_basic_content_read_
#ifndef _di_fl_fss_basic_object_write_
/**
* write an fss-0000 object.
*/
- extern f_return_status fl_fss_basic_object_write(f_dynamic_string *buffer, const f_dynamic_string object, f_string_location *input);
+ extern f_return_status fl_fss_basic_object_write(f_string_dynamic *buffer, const f_string_dynamic object, f_string_location *input);
#endif // _di_fl_fss_basic_object_write_
#ifndef _di_fl_fss_basic_content_write_
/**
* write an fss-0000 content.
*/
- extern f_return_status fl_fss_basic_content_write(f_dynamic_string *buffer, const f_dynamic_string content, f_string_location *input);
+ extern f_return_status fl_fss_basic_content_write(f_string_dynamic *buffer, const f_string_dynamic content, f_string_location *input);
#endif // _di_fl_fss_basic_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_list_object_read_
- f_return_status fl_fss_basic_list_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found) {
+ f_return_status fl_fss_basic_list_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
// return found nothing if this line only contains whitespace and delimit placeholders
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
}
// identify where the object ends
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
if (buffer->string[input->start] == f_fss_delimit_slash) {
f_string_length first_slash = input->start;
f_string_length slash_count = 1;
if (f_status_is_error(status)) return status;
while (input->start < buffer->used && input->start <= input->stop) {
- if (buffer->string[input->start] == f_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
+ if (buffer->string[input->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
break;
}
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
f_string_length location = input->start;
input->start = first_slash;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
if (f_status_is_error(status)) return status;
while (input->start < buffer->used && input->start <= input->stop) {
- if (buffer->string[input->start] == f_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
+ if (buffer->string[input->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
break;
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = stop_point;
} // while
// seek to the end of the line when no valid object is found
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
#endif // _di_fl_fss_basic_list_object_read_
#ifndef _di_fl_fss_basic_list_content_read_
- f_return_status fl_fss_basic_list_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found) {
+ f_return_status fl_fss_basic_list_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
// identify where the content ends
while (input->start < buffer->used && input->start <= input->stop) {
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
found_newline = f_true;
last_newline = input->start;
if (f_status_is_error(status)) return status;
while (input->start < buffer->used && input->start <= input->stop) {
- if (buffer->string[input->start] == f_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
+ if (buffer->string[input->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
break;
}
fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
}
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
f_string_length location = input->start;
input->start = first_slash;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
if (f_status_is_error(status)) return status;
while (input->start < buffer->used && input->start <= input->stop) {
- if (buffer->string[input->start] == f_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
+ if (buffer->string[input->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
break;
}
fl_macro_fss_content_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
}
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
if (found_newline) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
#endif // _di_fl_fss_basic_list_content_read_
#ifndef _di_fl_fss_basic_list_object_write_
- f_return_status fl_fss_basic_list_object_write(const f_dynamic_string object, f_string_location *input, f_dynamic_string *buffer) {
+ f_return_status fl_fss_basic_list_object_write(const f_string_dynamic object, f_string_location *input, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
break;
}
}
- else if (object.string[input->start] == f_eol) {
+ else if (object.string[input->start] == f_string_eol) {
if (buffer_position.stop == buffer_position.start) {
return f_no_data_on_eol;
}
} // while
buffer->string[buffer_position.stop] = f_fss_basic_list_open;
- buffer->string[buffer_position.stop + 1] = f_eol;
+ buffer->string[buffer_position.stop + 1] = f_string_eol;
buffer->used = buffer_position.stop + 2;
if (input->start > input->stop) {
#endif // _di_fl_fss_basic_list_object_write_
#ifndef _di_fl_fss_basic_list_content_write_
- f_return_status fl_fss_basic_list_content_write(const f_dynamic_string content, f_string_location *input, f_dynamic_string *buffer) {
+ f_return_status fl_fss_basic_list_content_write(const f_string_dynamic content, f_string_location *input, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
if (f_status_is_error(status)) return status;
while (input->start < content.used && input->start <= input->stop) {
- if (content.string[input->start] == f_eol || (status = fl_fss_is_graph(content, *input)) == f_true) {
+ if (content.string[input->start] == f_string_eol || (status = fl_fss_is_graph(content, *input)) == f_true) {
break;
}
if (f_status_is_error(status)) return status;
} // while
- if (content.string[input->start] == f_eol || input->start >= content.used || input->start > input->stop) {
+ if (content.string[input->start] == f_string_eol || input->start >= content.used || input->start > input->stop) {
pre_allocate_size += slash_count + 1;
if (pre_allocate_size > buffer->size) {
if (f_status_is_error(status)) return status;
while (input->start < content.used && input->start <= input->stop) {
- if (content.string[input->start] == f_eol || (status = fl_fss_is_graph(content, *input)) == f_true) {
+ if (content.string[input->start] == f_string_eol || (status = fl_fss_is_graph(content, *input)) == f_true) {
break;
}
if (f_status_is_error(status)) return status;
} // while
- if (content.string[input->start] == f_eol || input->start >= content.used || input->start > input->stop) {
+ if (content.string[input->start] == f_string_eol || input->start >= content.used || input->start > input->stop) {
pre_allocate_size++;
if (pre_allocate_size > buffer->size) {
else if (content.string[input->start] == f_fss_comment && !has_graph) {
is_comment = f_true;
}
- else if (content.string[input->start] == f_eol) {
+ else if (content.string[input->start] == f_string_eol) {
has_graph = f_false;
is_comment = f_false;
}
if (f_status_is_error(status)) return status;
} // while
- buffer->string[buffer_position.stop] = f_eol;
+ buffer->string[buffer_position.stop] = f_string_eol;
buffer->used = buffer_position.stop + 1;
if (input->start > input->stop) {
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
/**
* read an fss-0002 object.
*/
- extern f_return_status fl_fss_basic_list_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found);
+ extern f_return_status fl_fss_basic_list_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found);
#endif // _di_fl_fss_basic_list_object_read_
#ifndef _di_fl_fss_basic_list_content_read_
/**
* read an fss-0002 content.
*/
- extern f_return_status fl_fss_basic_list_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found);
+ extern f_return_status fl_fss_basic_list_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found);
#endif // _di_fl_fss_basic_list_content_read_
#ifndef _di_fl_fss_basic_list_object_write_
/**
* write an fss-0002 object.
*/
- extern f_return_status fl_fss_basic_list_object_write(const f_dynamic_string object, f_string_location *input, f_dynamic_string *buffer);
+ extern f_return_status fl_fss_basic_list_object_write(const f_string_dynamic object, f_string_location *input, f_string_dynamic *buffer);
#endif // _di_fl_fss_basic_list_object_write_
#ifndef _di_fl_fss_basic_list_content_write_
/**
* write an fss-0002 content.
*/
- extern f_return_status fl_fss_basic_list_content_write(const f_dynamic_string content, f_string_location *input, f_dynamic_string *buffer);
+ extern f_return_status fl_fss_basic_list_content_write(const f_string_dynamic content, f_string_location *input, f_string_dynamic *buffer);
#endif // _di_fl_fss_basic_list_content_write_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_object_read_
- f_return_status fl_fss_extended_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found) {
+ f_return_status fl_fss_extended_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
}
// handle quote support
- char quoted = f_eos;
+ char quoted = f_string_eos;
// identify where the object begins
if (buffer->string[input->start] == f_fss_delimit_slash) {
if (delimits.used >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
}
// identify where the object ends
- if (quoted == f_eos) {
+ if (quoted == f_string_eos) {
status = f_none;
while (buffer->string[input->start] == f_fss_delimit_placeholder || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
status = fl_fss_increment_buffer(*buffer, input, 1);
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_status_is_warning(f_unterminated_group_on_eos), f_status_is_warning(f_unterminated_group_on_stop))
if ((status = fl_fss_is_graph(*buffer, *input)) == f_true) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
else if (f_status_is_error(status)) {
return status;
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = location - 1;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
if (f_status_is_error(status)) return status;
while (input->start <= input->stop && input->start < buffer->used) {
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
status = fl_fss_increment_buffer(*buffer, input, 1);
return status;
}
else if (buffer->string[input->start] != f_fss_delimit_placeholder) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
}
// seek to the end of the line when no valid object is found
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
#endif // _di_fl_fss_extended_object_read_
#ifndef _di_fl_fss_extended_content_read_
- f_return_status fl_fss_extended_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found) {
+ f_return_status fl_fss_extended_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (input == 0) return f_status_set_error(f_invalid_parameter);
}
f_bool has_delimit = f_false;
- char quoted = f_eos;
+ char quoted = f_string_eos;
f_bool continue_main_loop = f_false;
f_array_length already_used = found->used;
while (input->start <= input->stop && input->start < buffer->used) {
- quoted = f_eos;
+ quoted = f_string_eos;
if (found->used >= found->size) {
f_macro_fss_content_resize(status, (*found), found->size + f_fss_default_allocation_step);
if (f_status_is_error(status)){
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return status;
}
found->used++;
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
return fl_fss_found_content;
if (delimits.used >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
}
// identify where the content ends
- if (quoted == f_eos) {
+ if (quoted == f_string_eos) {
status = f_none;
while (buffer->string[input->start] == f_fss_delimit_placeholder || (status = fl_fss_is_graph(*buffer, *input)) == f_true) {
status = fl_fss_increment_buffer(*buffer, input, 1);
found->array[found->used].stop = input->start - 1;
found->used++;
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
status = fl_fss_increment_buffer(*buffer, input, 1);
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
if ((status = fl_fss_is_graph(*buffer, *input)) == f_true) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
else if (f_status_is_error(status)) {
return status;
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->array[found->used].stop = location - 1;
if (delimits.used + (slash_count / 2) >= delimits.size) {
f_status allocation_status = f_none;
- f_macro_strings_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
+ f_macro_string_lengths_resize(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (f_status_is_error(allocation_status)) {
- f_macro_strings_string_lengths_delete(allocation_status, delimits);
+ f_macro_string_lengths_delete(allocation_status, delimits);
return allocation_status;
}
}
while (input->start <= input->stop && input->start < buffer->used) {
- if (buffer->string[input->start] == f_eol) {
+ if (buffer->string[input->start] == f_string_eol) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
status = fl_fss_increment_buffer(*buffer, input, 1);
return status;
}
else if (buffer->string[input->start] != f_fss_delimit_placeholder) {
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
}
- else if (buffer->string[input->start] == f_eol) {
+ else if (buffer->string[input->start] == f_string_eol) {
if (found->used == already_used) {
status = fl_fss_increment_buffer(*buffer, input, 1);
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
// seek to the end of the line when no valid content is found
- while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_eol) {
+ while (input->start < buffer->used && input->start <= input->stop && buffer->string[input->start] != f_string_eol) {
status = fl_fss_increment_buffer(*buffer, input, 1);
if (f_status_is_error(status)) return status;
} // while
#endif // _di_fl_fss_extended_content_read_
#ifndef _di_fl_fss_extended_object_write_
- f_return_status fl_fss_extended_object_write(const f_dynamic_string object, f_string_location *input, f_dynamic_string *buffer) {
+ f_return_status fl_fss_extended_object_write(const f_string_dynamic object, f_string_location *input, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
continue;
}
- else if (object.string[input->start] == f_eol) {
+ else if (object.string[input->start] == f_string_eol) {
if (quoted) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
continue;
}
- else if (object.string[input->start] == f_eol) {
+ else if (object.string[input->start] == f_string_eol) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
#endif // _di_fl_fss_extended_object_write_
#ifndef _di_fl_fss_extended_content_write_
- f_return_status fl_fss_extended_content_write(const f_dynamic_string content, f_string_location *input, f_dynamic_string *buffer) {
+ f_return_status fl_fss_extended_content_write(const f_string_dynamic content, f_string_location *input, f_string_dynamic *buffer) {
#ifndef _di_level_1_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
f_status status = f_none;
- char quoted = f_eos;
+ char quoted = f_string_eos;
f_string_location buffer_position = f_string_location_initialize;
f_string_length start_position = 0;
}
while (input->start <= input->stop && input->start < content.used) {
- if (content.string[input->start] == f_eol) {
+ if (content.string[input->start] == f_string_eol) {
buffer->string[buffer_position.stop] = ' ';
buffer->used = buffer_position.stop + 1;
return f_none_on_eol;
if (f_status_is_error(status)) return status;
} // while
- if (quoted != f_eos) {
+ if (quoted != f_string_eos) {
while (input->start <= input->stop && input->start < content.used) {
if (content.string[input->start] == f_fss_delimit_slash) {
f_string_length slash_count = 1;
buffer->string[buffer_position.stop + 1] = quoted;
buffer_position.stop += 2;
}
- else if (content.string[input->start] == f_eol) {
+ else if (content.string[input->start] == f_string_eol) {
buffer->string[buffer_position.stop] = quoted;
buffer->string[buffer_position.stop + 1] = ' ';
buffer->used = buffer_position.stop + 2;
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
/**
* read an fss-0001 object.
*/
- extern f_return_status fl_fss_extended_object_read(f_dynamic_string *buffer, f_string_location *input, f_fss_object *found);
+ extern f_return_status fl_fss_extended_object_read(f_string_dynamic *buffer, f_string_location *input, f_fss_object *found);
#endif // _di_fl_fss_extended_object_read_
#ifndef _di_fl_fss_extended_content_read_
/**
* read an fss-0001 content.
*/
- extern f_return_status fl_fss_extended_content_read(f_dynamic_string *buffer, f_string_location *input, f_fss_content *found);
+ extern f_return_status fl_fss_extended_content_read(f_string_dynamic *buffer, f_string_location *input, f_fss_content *found);
#endif // _di_fl_fss_extended_content_read_
#ifndef _di_fl_fss_extended_object_write_
/**
* write an fss-0001 object.
*/
- extern f_return_status fl_fss_extended_object_write(const f_dynamic_string object, f_string_location *input, f_dynamic_string *buffer);
+ extern f_return_status fl_fss_extended_object_write(const f_string_dynamic object, f_string_location *input, f_string_dynamic *buffer);
#endif // _di_fl_fss_extended_object_write_
#ifndef _di_fl_fss_extended_content_write_
/**
* write an fss-0001 content.
*/
- extern f_return_status fl_fss_extended_content_write(const f_dynamic_string content, f_string_location *input, f_dynamic_string *buffer);
+ extern f_return_status fl_fss_extended_content_write(const f_string_dynamic content, f_string_location *input, f_string_dynamic *buffer);
#endif // _di_fl_fss_extended_content_write_
#ifdef __cplusplus
i++; \
} \
\
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
}
#endif // _di_fl_macro_fss_apply_delimit_placeholders_
#define fl_macro_fss_object_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.stop = buffer.used - 1; \
return eos_status; \
} \
else if (input.start > input.stop) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.stop = input.stop; \
return stop_status; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.stop = buffer.used - 1; \
return eos_status; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.stop = input.stop; \
return stop_status; \
#define fl_macro_fss_content_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = buffer.used - 1; \
return eos_status; \
} \
else if (input.start > input.stop) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return stop_status; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = buffer.used - 1; \
return eos_status; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return stop_status; \
#define fl_macro_fss_content_return_on_overflow_reset(buffer, input, found, delimits, eos_status, stop_status, set_stop) \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
input.start = set_stop; \
found.array[found.used].stop = set_stop; \
} \
else if (input.start > input.stop) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
input.start = set_stop; \
found.array[found.used].stop = set_stop; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
input.start = set_stop; \
found.array[found.used].stop = set_stop; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
input.start = set_stop; \
found.array[found.used].stop = set_stop; \
f_macro_fss_content_resize(status, content, content.size + f_fss_default_allocation_step); \
if (f_status_is_error(status)) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
return status; \
} \
#ifndef _di_fl_macro_fss_object_seek_till_newline_
#define fl_macro_fss_object_seek_till_newline(buffer, input, delimits, eos_status, stop_status) \
- while (buffer.string[input.start] != f_eol) { \
+ while (buffer.string[input.start] != f_string_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
return eos_status; \
} \
if (input.start > input.stop) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
return stop_status; \
} \
#ifndef _di_fl_macro_fss_object_delimited_seek_till_newline_
#define fl_macro_fss_object_delimited_seek_till_newline(buffer, input, delimits, eos_status, stop_status) \
- while (buffer.string[input.start] != f_eol) { \
+ while (buffer.string[input.start] != f_string_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
return eos_status; \
} \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
return stop_status; \
} \
#ifndef _di_fl_macro_fss_content_seek_till_newline_
#define fl_macro_fss_content_seek_till_newline(buffer, input, found, delimits, eos_status, stop_status) \
- while (buffer.string[input.start] != f_eol) { \
+ while (buffer.string[input.start] != f_string_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return eos_status; \
} \
if (input.start > input.stop) { \
f_status allocation_status = f_none; \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return stop_status; \
#ifndef _di_fl_macro_fss_content_delimited_seek_till_newline_
#define fl_macro_fss_content_delimited_seek_till_newline(buffer, input, found, delimits, eos_status, stop_status) \
- while (buffer.string[input.start] != f_eol) { \
+ while (buffer.string[input.start] != f_string_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
f_status allocation_status = f_none; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return eos_status; \
buffer.string[delimits.array[i]] = f_fss_delimit_placeholder; \
i++; \
} \
- f_macro_strings_string_lengths_delete(allocation_status, delimits); \
+ f_macro_string_lengths_delete(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return stop_status; \
f_types
f_status
-f_strings
+f_string
f_memory
f_file
f_conversion
// fll-0 includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
#endif
#ifndef _di_fl_serialize_simple_
- f_return_status fl_serialize_simple(const f_dynamic_string value, f_dynamic_string *serialized) {
+ f_return_status fl_serialize_simple(const f_string_dynamic value, f_string_dynamic *serialized) {
#ifndef _di_level_0_parameter_checking_
if (serialized == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_fl_serialize_simple_
#ifndef _di_fl_unserialize_simple_map_
- f_return_status fl_unserialize_simple_map(const f_dynamic_string serialized, f_string_locations *locations) {
+ f_return_status fl_unserialize_simple_map(const f_string_dynamic serialized, f_string_locations *locations) {
#ifndef _di_level_0_parameter_checking_
if (locations == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
if (serialized.string[i] == f_serialized_simple_splitter || i == serialized.used) {
if (locations->used + width >= locations->size) {
- f_macro_strings_string_locations_resize(status, (*locations), locations->size + f_serialized_default_allocation_step);
+ f_macro_string_locations_resize(status, (*locations), locations->size + f_serialized_default_allocation_step);
if (f_status_is_error(status)) return status;
}
#endif // _di_fl_unserialize_simple_map_
#ifndef _di_fl_unserialize_simple_find_
- f_return_status fl_unserialize_simple_find(const f_dynamic_string serialized, const f_array_length index, f_string_location *location) {
+ f_return_status fl_unserialize_simple_find(const f_string_dynamic serialized, const f_array_length index, f_string_location *location) {
#ifndef _di_level_0_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
// fll-0 includes
#include <level_0/status.h>
#include <level_0/serialized.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
* f_reallocation_error (with error bit) on memory reallocation error.
*/
#ifndef _di_fl_serialize_simple_
- extern f_return_status fl_serialize_simple(const f_dynamic_string value, f_dynamic_string *serialized);
+ extern f_return_status fl_serialize_simple(const f_string_dynamic value, f_string_dynamic *serialized);
#endif // _di_fl_serialize_simple_
// @todo: implement fl_unserialize_simple() such that a new array of strings is allocated.
* f_reallocation_error (with error bit) on memory reallocation error.
*/
#ifndef _di_fl_unserialize_simple_map_
- extern f_return_status fl_unserialize_simple_map(const f_dynamic_string serialized, f_string_locations *locations);
+ extern f_return_status fl_unserialize_simple_map(const f_string_dynamic serialized, f_string_locations *locations);
#endif // _di_fl_unserialize_simple_map_
/**
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_unserialize_simple_find_
- extern f_return_status fl_unserialize_simple_find(const f_dynamic_string serialized, const f_array_length index, f_string_location *location);
+ extern f_return_status fl_unserialize_simple_find(const f_string_dynamic serialized, const f_array_length index, f_string_location *location);
#endif // _di_fl_unserialize_simple_find_
// @todo: implement fl_unserialize_simple_get() such that a new string is allocated, if found.
f_types
f_errors
-f_strings
+f_string
f_serialized
f_memory
f_utf
// fll includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/socket.h>
// fll-0 includes
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
f_types
f_status
-f_strings
+f_string
f_utf
-#include <level_1/strings.h>
+#include <level_1/string.h>
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _di_fl_rip_string_
- f_return_status fl_rip_string(const f_dynamic_string buffer, const f_string_location location, f_dynamic_string *result) {
+#ifndef _di_fl_string_rip_
+ f_return_status fl_string_rip(const f_string_dynamic buffer, const f_string_location location, f_string_dynamic *result) {
#ifndef _di_level_1_parameter_checking_
if (location.start < 0) return f_status_set_error(f_invalid_parameter);
if (location.stop < location.start) return f_status_set_error(f_invalid_parameter);
return f_no_data;
}
-#endif // _di_fl_rip_string_
+#endif // _di_fl_string_rip_
-#ifndef _di_fl_seek_line_until_graph_
- f_return_status fl_seek_line_until_graph(const f_dynamic_string buffer, f_string_location *location, const char placeholder) {
+#ifndef _di_fl_string_seek_line_until_graph_
+ f_return_status fl_string_seek_line_until_graph(const f_string_dynamic buffer, f_string_location *location, const char placeholder) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
return status;
}
- if (buffer.string[location->start] == f_eol) return f_none_on_eol;
+ if (buffer.string[location->start] == f_string_eol) return f_none_on_eol;
width = f_macro_utf_byte_width_is(buffer.string[location->start]);
return f_none;
}
-#endif // _di_fl_seek_line_until_graph_
+#endif // _di_fl_string_seek_line_until_graph_
-#ifndef _di_fl_seek_line_until_non_graph_
- f_return_status fl_seek_line_until_non_graph(const f_dynamic_string buffer, f_string_location *location, const char placeholder) {
+#ifndef _di_fl_string_seek_line_until_non_graph_
+ f_return_status fl_string_seek_line_until_non_graph(const f_string_dynamic buffer, f_string_location *location, const char placeholder) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
return status;
}
- if (buffer.string[location->start] == f_eol) return f_none_on_eol;
+ if (buffer.string[location->start] == f_string_eol) return f_none_on_eol;
width = f_macro_utf_byte_width_is(buffer.string[location->start]);
return f_none;
}
-#endif // _di_fl_seek_line_until_non_graph_
+#endif // _di_fl_string_seek_line_until_non_graph_
-#ifndef _di_fl_seek_line_to_
- f_return_status fl_seek_line_to(const f_dynamic_string buffer, f_string_location *location, const char seek_to_this) {
+#ifndef _di_fl_string_seek_line_to_
+ f_return_status fl_string_seek_line_to(const f_string_dynamic buffer, f_string_location *location, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
while (buffer.string[location->start] != seek_to_this) {
- if (buffer.string[location->start] == f_eol) return f_none_on_eol;
+ if (buffer.string[location->start] == f_string_eol) return f_none_on_eol;
location->start++;
return f_none;
}
-#endif // _di_fl_seek_line_to_
+#endif // _di_fl_string_seek_line_to_
-#ifndef _di_fl_seek_line_to_utf_character_
- f_return_status fl_seek_line_to_utf_character(const f_dynamic_string buffer, f_string_location *location, const f_utf_character seek_to_this) {
+#ifndef _di_fl_string_seek_line_to_utf_character_
+ f_return_status fl_string_seek_line_to_utf_character(const f_string_dynamic buffer, f_string_location *location, const f_utf_character seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
if (width == 0) {
width = 1;
- if (buffer.string[location->start] == f_eol) return f_none_on_eol;
+ if (buffer.string[location->start] == f_string_eol) return f_none_on_eol;
if (seek_width == width) {
if (buffer.string[location->start] == seek_to_this) return f_none;
return f_none_on_eos;
}
-#endif // _di_fl_seek_line_to_utf_character_
+#endif // _di_fl_string_seek_line_to_utf_character_
-#ifndef _di_fl_seek_to_
- f_return_status fl_seek_to(const f_dynamic_string buffer, f_string_location *location, const char seek_to_this) {
+#ifndef _di_fl_string_seek_to_
+ f_return_status fl_string_seek_to(const f_string_dynamic buffer, f_string_location *location, const char seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
return f_none;
}
-#endif // _di_fl_seek_to_
+#endif // _di_fl_string_seek_to_
-#ifndef _di_fl_seek_to_utf_character_
- f_return_status fl_seek_to_utf_character(const f_dynamic_string buffer, f_string_location *location, const f_utf_character seek_to_this) {
+#ifndef _di_fl_string_seek_to_utf_character_
+ f_return_status fl_string_seek_to_utf_character(const f_string_dynamic buffer, f_string_location *location, const f_utf_character seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (location == 0) return f_status_set_error(f_invalid_parameter);
if (location->start < 0) return f_status_set_error(f_invalid_parameter);
return f_none_on_eos;
}
-#endif // _di_fl_seek_to_utf_character_
+#endif // _di_fl_string_seek_to_utf_character_
-#ifndef _di_fl_compare_strings_
- f_return_status fl_compare_strings(const f_string string1, const f_string string2, const f_string_length length1, const f_string_length length2) {
+#ifndef _di_fl_string_compare_
+ f_return_status fl_string_compare(const f_string string1, const f_string string2, const f_string_length length1, const f_string_length length2) {
#ifndef _di_level_1_parameter_checking_
if (length1 <= 0) return f_status_set_error(f_invalid_parameter);
if (length2 <= 0) return f_status_set_error(f_invalid_parameter);
for (; i1 < length1 && i2 < length2; i1++, i2++) {
// skip past newlines in string1.
- while (i1 < length1 && string1[i1] == f_eos) i1++;
+ while (i1 < length1 && string1[i1] == f_string_eos) i1++;
if (i1 == length1) break;
// skip past newlines in string2.
- while (i2 < length2 && string2[i2] == f_eos) i2++;
+ while (i2 < length2 && string2[i2] == f_string_eos) i2++;
if (i2 == length2) break;
if (string1[i1] != string2[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
while (i1 < length1) {
- if (string1[i1] != f_eos) return f_not_equal_to;
+ if (string1[i1] != f_string_eos) return f_not_equal_to;
i1++;
} // while
while (i2 < length2) {
- if (string2[i2] != f_eos) return f_not_equal_to;
+ if (string2[i2] != f_string_eos) return f_not_equal_to;
i2++;
} // while
return f_equal_to;
}
-#endif // _di_fl_compare_strings_
+#endif // _di_fl_string_compare_
-#ifndef _di_fl_compare_dynamic_strings_
- f_return_status fl_compare_dynamic_strings(const f_dynamic_string string1, const f_dynamic_string string2) {
+#ifndef _di_fl_string_dynamics_compare_
+ f_return_status fl_string_dynamics_compare(const f_string_dynamic string1, const f_string_dynamic string2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= 0) return f_status_set_error(f_invalid_parameter);
if (string2.used <= 0) return f_status_set_error(f_invalid_parameter);
for (; i1 < string1.used && i2 < string2.used; i1++, i2++) {
// skip past newlines in string1.
- while (i1 < string1.used && string1.string[i1] == f_eos) i1++;
+ while (i1 < string1.used && string1.string[i1] == f_string_eos) i1++;
if (i1 == string1.used) break;
// skip past newlines in string2.
- while (i2 < string2.used && string2.string[i2] == f_eos) i2++;
+ while (i2 < string2.used && string2.string[i2] == f_string_eos) i2++;
if (i2 == string2.used) break;
if (string1.string[i1] != string2.string[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
while (i1 < string1.used) {
- if (string1.string[i1] != f_eos) return f_not_equal_to;
+ if (string1.string[i1] != f_string_eos) return f_not_equal_to;
i1++;
} // while
while (i2 < string2.used) {
- if (string2.string[i2] != f_eos) return f_not_equal_to;
+ if (string2.string[i2] != f_string_eos) return f_not_equal_to;
i2++;
} // while
return f_equal_to;
}
-#endif // _di_fl_compare_dynamic_strings_
+#endif // _di_fl_string_dynamics_compare_
-#ifndef _di_fl_compare_partial_dynamic_strings_
- f_return_status fl_compare_dynamic_strings_partial(const f_dynamic_string string1, const f_dynamic_string string2, const f_string_location offset1, const f_string_location offset2) {
+#ifndef _di_fl_string_dynamic_partial_compare_
+ f_return_status fl_string_dynamic_partial_compare(const f_string_dynamic string1, const f_string_dynamic string2, const f_string_location offset1, const f_string_location offset2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= 0) return f_status_set_error(f_invalid_parameter);
if (string2.used <= 0) return f_status_set_error(f_invalid_parameter);
for (; i1 < stop1 && i2 < stop2; i1++, i2++) {
// skip past newlines in string1.
- while (i1 < stop1 && string1.string[i1] == f_eos) i1++;
+ while (i1 < stop1 && string1.string[i1] == f_string_eos) i1++;
if (i1 == stop1) break;
// skip past newlines in string2.
- while (i2 < stop2 && string2.string[i2] == f_eos) i2++;
+ while (i2 < stop2 && string2.string[i2] == f_string_eos) i2++;
if (i2 == stop2) break;
if (string1.string[i1] != string2.string[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
while (i1 < stop1) {
- if (string1.string[i1] != f_eos) return f_not_equal_to;
+ if (string1.string[i1] != f_string_eos) return f_not_equal_to;
i1++;
} // while
while (i2 < stop2) {
- if (string2.string[i2] != f_eos) return f_not_equal_to;
+ if (string2.string[i2] != f_string_eos) return f_not_equal_to;
i2++;
} // while
return f_equal_to;
}
-#endif // _di_fl_compare_partial_dynamic_strings_
+#endif // _di_fl_string_dynamic_partial_compare_
#ifdef __cplusplus
} // extern "C"
/**
* FLL - Level 1
*
- * Project: Strings
+ * Project: String
* API Version: 0.5
* Licenses: lgplv2.1
*
* Provides basic string manipulation and processing capabilities.
*/
-#ifndef _FL_strings_h
-#define _FL_strings_h
+#ifndef _FL_string_h
+#define _FL_string_h
// libc includes
#include <ctype.h>
// fll includes
#include <level_0/status.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
* f_allocation_error (with error bit) on memory allocation error.
* f_reallocation_error (with error bit) on memory reallocation error.
*/
-#ifndef _di_fl_rip_string_
- extern f_return_status fl_rip_string(const f_dynamic_string buffer, const f_string_location location, f_dynamic_string *result);
-#endif // _di_fl_rip_string_
+#ifndef _di_fl_string_rip_
+ extern f_return_status fl_string_rip(const f_string_dynamic buffer, const f_string_location location, f_string_dynamic *result);
+#endif // _di_fl_string_rip_
/**
* Increment buffer location until a graph character (including UTF-8) or an EOL is matched.
* f_allocation_error (with error bit) on memory allocation error.
* f_reallocation_error (with error bit) on memory reallocation error.
*/
-#ifndef _di_fl_seek_line_until_graph_
- extern f_return_status fl_seek_line_until_graph(const f_dynamic_string buffer, f_string_location *location, const char placeholder);
-#endif // _di_fl_seek_line_until_graph_
+#ifndef _di_fl_string_seek_line_until_graph_
+ extern f_return_status fl_string_seek_line_until_graph(const f_string_dynamic buffer, f_string_location *location, const char placeholder);
+#endif // _di_fl_string_seek_line_until_graph_
/**
* Increment buffer location until a non-graph character (including UTF-8) or an EOL is matched.
* f_allocation_error (with error bit) on memory allocation error.
* f_reallocation_error (with error bit) on memory reallocation error.
*/
-#ifndef _di_fl_seek_line_until_non_graph_
- extern f_return_status fl_seek_line_until_non_graph(const f_dynamic_string buffer, f_string_location *location, const char placeholder);
-#endif // _di_fl_seek_line_until_non_graph_
+#ifndef _di_fl_string_seek_line_until_non_graph_
+ extern f_return_status fl_string_seek_line_until_non_graph(const f_string_dynamic buffer, f_string_location *location, const char placeholder);
+#endif // _di_fl_string_seek_line_until_non_graph_
/**
* Seek the buffer location forward until the character (1-byte wide) or EOL is reached.
* f_none_on_stop on success, but stopped stop location.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_seek_line_to_utf_character()
+ * @see fl_string_seek_line_to_utf_character()
*/
-#ifndef _di_fl_seek_line_to_
- extern f_return_status fl_seek_line_to(const f_dynamic_string buffer, f_string_location *location, const char seek_to_this);
-#endif // _di_fl_seek_line_to_
+#ifndef _di_fl_string_seek_line_to_
+ extern f_return_status fl_string_seek_line_to(const f_string_dynamic buffer, f_string_location *location, const char seek_to_this);
+#endif // _di_fl_string_seek_line_to_
/**
* Seek the buffer location forward until the character (up to 4-byte wide) or EOL is reached.
* f_incomplete_utf_on_eos (with error bit) if end of string is reached before a complete UTF-8 character can be processed.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_seek_line_to()
+ * @see fl_string_seek_line_to()
*/
-#ifndef _di_fl_seek_line_to_utf_character_
- extern f_return_status fl_seek_line_to_utf_character(const f_dynamic_string buffer, f_string_location *location, const f_utf_character seek_to_this);
-#endif // _di_fl_seek_line_to_utf_character_
+#ifndef _di_fl_string_seek_line_to_utf_character_
+ extern f_return_status fl_string_seek_line_to_utf_character(const f_string_dynamic buffer, f_string_location *location, const f_utf_character seek_to_this);
+#endif // _di_fl_string_seek_line_to_utf_character_
/**
* Seek the buffer location forward until the character (1-byte wide) is reached.
* f_incomplete_utf_on_eos (with error bit) if end of string is reached before a complete UTF-8 character can be processed.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_seek_to_utf_character()
+ * @see fl_string_seek_to_utf_character()
*/
-#ifndef _di_fl_seek_to_
- extern f_return_status fl_seek_to(const f_dynamic_string buffer, f_string_location *location, const char seek_to_this);
-#endif // _di_fl_seek_to_
+#ifndef _di_fl_string_seek_to_
+ extern f_return_status fl_string_seek_to(const f_string_dynamic buffer, f_string_location *location, const char seek_to_this);
+#endif // _di_fl_string_seek_to_
/**
* Seek the buffer location forward until the UTF-8 character (up to 4-byte wide) is reached.
* f_incomplete_utf_on_eos (with error bit) if end of string is reached before a complete UTF-8 character can be processed.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_seek_to()
+ * @see fl_string_seek_to()
*/
-#ifndef _di_fl_seek_to_utf_character_
- extern f_return_status fl_seek_to_utf_character(const f_dynamic_string buffer, f_string_location *location, const f_utf_character seek_to_this);
-#endif // _di_fl_seek_to_utf_character_
+#ifndef _di_fl_string_seek_to_utf_character_
+ extern f_return_status fl_string_seek_to_utf_character(const f_string_dynamic buffer, f_string_location *location, const f_utf_character seek_to_this);
+#endif // _di_fl_string_seek_to_utf_character_
/**
* Compare two strings, similar to strncmp().
* f_not_equal_to when both strings do not equal.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_compare_dynamic_strings()
- * @see fl_compare_dynamic_strings_partial()
+ * @see fl_string_dynamics_compare()
+ * @see fl_string_dynamic_partial_compare()
*/
-#ifndef _di_fl_compare_strings_
- extern f_return_status fl_compare_strings(const f_string string1, const f_string string2, const f_string_length length1, const f_string_length length2);
-#endif // _di_fl_compare_strings_
+#ifndef _di_fl_string_compare_
+ extern f_return_status fl_string_compare(const f_string string1, const f_string string2, const f_string_length length1, const f_string_length length2);
+#endif // _di_fl_string_compare_
/**
* Compare two strings, similar to strncmp().
* f_not_equal_to when both strings do not equal.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_compare_strings()
- * @see fl_compare_dynamic_strings_partial()
+ * @see fl_string_compare()
+ * @see fl_string_dynamic_partial_compare()
*/
-#ifndef _di_fl_compare_dynamic_strings_
- extern f_return_status fl_compare_dynamic_strings(const f_dynamic_string string1, const f_dynamic_string string2);
-#endif // _di_fl_compare_dynamic_strings_
+#ifndef _di_fl_string_dynamics_compare_
+ extern f_return_status fl_string_dynamics_compare(const f_string_dynamic string1, const f_string_dynamic string2);
+#endif // _di_fl_string_dynamics_compare_
/**
* Compare two strings, similar to strncmp(), but restricted to the given ranges.
* f_not_equal_to when both strings do not equal.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
- * @see fl_compare_strings()
- * @see fl_compare_dynamic_strings()
+ * @see fl_string_compare()
+ * @see fl_string_dynamics_compare()
*/
-#ifndef _di_fl_compare_partial_dynamic_strings_
- extern f_return_status fl_compare_dynamic_strings_partial(const f_dynamic_string string1, const f_dynamic_string string2, const f_string_location offset1, const f_string_location offset2);
-#endif // _di_fl_compare_partial_dynamic_strings_
+#ifndef _di_fl_string_dynamic_partial_compare_
+ extern f_return_status fl_string_dynamic_partial_compare(const f_string_dynamic string1, const f_string_dynamic string2, const f_string_location offset1, const f_string_location offset2);
+#endif // _di_fl_string_dynamic_partial_compare_
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _FL_strings_h
+#endif // _FL_string_h
f_types
f_errors
f_memory
-f_strings
+f_string
f_utf
# fss-0000
-project_name fl_strings
+project_name fl_string
project_level 1
version_major 0
build_linker ar
build_libraries -lc
build_libraries_fll -lf_memory -lf_utf
-build_sources_library strings.c
+build_sources_library string.c
build_sources_program
-build_sources_headers strings.h
+build_sources_headers string.h
build_sources_bash
build_sources_settings
build_shared yes
extern "C" {
#endif
-#ifndef _di_fl_rip_utf_string_
- f_return_status fl_rip_utf_string(const f_utf_string_dynamic buffer, const f_utf_string_location location, f_utf_string_dynamic *result) {
- #ifndef _di_level_1_parameter_checking_
- if (location.start < 0) return f_status_set_error(f_invalid_parameter);
- if (location.stop < location.start) return f_status_set_error(f_invalid_parameter);
- if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
- if (location.start >= buffer.used) return f_status_set_error(f_invalid_parameter);
- #endif // _di_level_1_parameter_checking_
-
- // the start and stop point are inclusive locations, and therefore start - stop is actually 1 too few locations
- f_utf_string_length size = (location.stop - location.start) + 1;
-
- if (size > 0) {
- f_status status = f_none;
-
- if (result == 0) {
- f_macro_utf_string_new_dynamic(status, (*result), size);
- }
- else {
- f_macro_utf_string_dynamic_resize(status, (*result), size);
- }
-
- if (f_status_is_error(status)) {
- return status;
- }
-
- memcpy(result->string, buffer.string + location.start, sizeof(f_utf_character) * size);
- result->used = size;
-
- return f_none;
- }
-
- return f_no_data;
- }
-#endif // _di_fl_rip_utf_string_
-
#ifndef _di_fl_utf_seek_line_until_graph_
f_return_status fl_utf_seek_line_until_graph(const f_utf_string_dynamic buffer, f_utf_string_location *location, const f_utf_character placeholder) {
#ifndef _di_level_1_parameter_checking_
}
#endif // _di_fl_utf_seek_line_to_character_
+#ifndef _di_fl_utf_string_rip_
+ f_return_status fl_utf_string_rip(const f_utf_string_dynamic buffer, const f_utf_string_location location, f_utf_string_dynamic *result) {
+ #ifndef _di_level_1_parameter_checking_
+ if (location.start < 0) return f_status_set_error(f_invalid_parameter);
+ if (location.stop < location.start) return f_status_set_error(f_invalid_parameter);
+ if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
+ if (location.start >= buffer.used) return f_status_set_error(f_invalid_parameter);
+ #endif // _di_level_1_parameter_checking_
+
+ // the start and stop point are inclusive locations, and therefore start - stop is actually 1 too few locations
+ f_utf_string_length size = (location.stop - location.start) + 1;
+
+ if (size > 0) {
+ f_status status = f_none;
+
+ if (result == 0) {
+ f_macro_utf_string_dynamic_new(status, (*result), size);
+ }
+ else {
+ f_macro_utf_string_dynamic_resize(status, (*result), size);
+ }
+
+ if (f_status_is_error(status)) {
+ return status;
+ }
+
+ memcpy(result->string, buffer.string + location.start, sizeof(f_utf_character) * size);
+ result->used = size;
+
+ return f_none;
+ }
+
+ return f_no_data;
+ }
+#endif // _di_fl_utf_string_rip_
+
#ifndef _di_fl_utf_string_seek_to_
f_return_status fl_utf_string_seek_to(const f_utf_string_dynamic buffer, f_utf_string_location *location, const f_utf_character seek_to_this) {
#ifndef _di_level_1_parameter_checking_
}
#endif // _di_fl_utf_string_dynamic_compare_
-#ifndef _di_fl_compare_partial_dynamic_strings_
- f_return_status fl_utf_string_compare_dynamic_partial(const f_utf_string_dynamic string1, const f_utf_string_dynamic string2, const f_utf_string_location offset1, const f_utf_string_location offset2) {
+#ifndef _di_fl_string_dynamic_partial_compare_
+ f_return_status fl_utf_string_dynamic_partial_compare(const f_utf_string_dynamic string1, const f_utf_string_dynamic string2, const f_utf_string_location offset1, const f_utf_string_location offset2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= 0) return f_status_set_error(f_invalid_parameter);
if (string2.used <= 0) return f_status_set_error(f_invalid_parameter);
return f_equal_to;
}
-#endif // _di_fl_compare_partial_dynamic_strings_
+#endif // _di_fl_string_dynamic_partial_compare_
#ifdef __cplusplus
} // extern "C"
*
* Provides UTF-8 character manipulation and processing capabilities.
*/
-#ifndef _FL_strings_h
-#define _FL_strings_h
+#ifndef _FL_string_h
+#define _FL_string_h
// libc includes
#include <ctype.h>
// fll includes
#include <level_0/status.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
#endif
/**
- * Allocated a new UTF-8 string from the provided range in the buffer.
- *
- * @param buffer
- * The buffer to rip from.
- * @param location
- * A range within the buffer representing the string to rip.
- * @param result
- * The new string, which will be allocated or reallocated as necessary.
- *
- * @return
- * f_none on success.
- * f_no_data if nothing to rip, no allocations or reallocations are performed.
- * f_invalid_parameter (with error bit) if a parameter is invalid.
- * f_allocation_error (with error bit) on memory allocation error.
- * f_reallocation_error (with error bit) on memory reallocation error.
- */
-#ifndef _di_fl_rip_utf_string_
- extern f_return_status fl_rip_utf_string(const f_utf_string_dynamic buffer, const f_utf_string_location location, f_utf_string_dynamic *result);
-#endif // _di_fl_rip_utf_string_
-
-/**
* Increment buffer location until a graph character or an EOL is matched.
*
* This will ignore the UTF-8 BOM.
#endif // _di_fl_utf_seek_line_to_
/**
+ * Allocated a new UTF-8 string from the provided range in the buffer.
+ *
+ * @param buffer
+ * The buffer to rip from.
+ * @param location
+ * A range within the buffer representing the string to rip.
+ * @param result
+ * The new string, which will be allocated or reallocated as necessary.
+ *
+ * @return
+ * f_none on success.
+ * f_no_data if nothing to rip, no allocations or reallocations are performed.
+ * f_invalid_parameter (with error bit) if a parameter is invalid.
+ * f_allocation_error (with error bit) on memory allocation error.
+ * f_reallocation_error (with error bit) on memory reallocation error.
+ */
+#ifndef _di_fl_utf_string_rip_
+ extern f_return_status fl_utf_string_rip(const f_utf_string_dynamic buffer, const f_utf_string_location location, f_utf_string_dynamic *result);
+#endif // _di_fl_utf_string_rip_
+
+/**
* Seek the buffer location forward until the 1-byte wide character or EOL is reached.
*
* @param buffer
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
* @see fl_utf_string_dynamic_compare()
- * @see fl_utf_string_compare_dynamic_partial()
+ * @see fl_utf_string_dynamic_partial_compare()
*/
#ifndef _di_fl_utf_string_compare_
extern f_return_status fl_utf_string_compare(const f_utf_string string1, const f_utf_string string2, const f_utf_string_length length1, const f_utf_string_length length2);
* f_invalid_parameter (with error bit) if a parameter is invalid.
*
* @see fl_utf_string_compare()
- * @see fl_utf_string_compare_dynamic_partial()
+ * @see fl_utf_string_dynamic_partial_compare()
*/
#ifndef _di_fl_utf_string_dynamic_compare_
extern f_return_status fl_utf_string_dynamic_compare(const f_utf_string_dynamic string1, const f_utf_string_dynamic string2);
* @see fl_utf_string_compare()
* @see fl_utf_string_dynamic_compare()
*/
-#ifndef _di_fl_utf_string_compare_dynamic_partial_
- extern f_return_status fl_utf_string_compare_dynamic_partial(const f_utf_string_dynamic string1, const f_utf_string_dynamic string2, const f_utf_string_location offset1, const f_utf_string_location offset2);
-#endif // _di_fl_utf_string_compare_dynamic_partial_
+#ifndef _di_fl_utf_string_dynamic_partial_compare_
+ extern f_return_status fl_utf_string_dynamic_partial_compare(const f_utf_string_dynamic string1, const f_utf_string_dynamic string2, const f_utf_string_location offset1, const f_utf_string_location offset2);
+#endif // _di_fl_utf_string_dynamic_partial_compare_
#ifdef __cplusplus
} // extern "C"
#endif
-#endif // _FL_strings_h
+#endif // _FL_string_h
f_types
f_errors
f_memory
-f_strings
+f_string
f_utf
// fll-0 includes
#include <level_0/colors.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
f_types
f_errors
-f_strings
+f_string
f_colors
f_memory
fl_colors
#endif
#ifndef _di_fll_execute_path_
- f_return_status fll_execute_path(const f_string program_path, const f_dynamic_strings arguments, f_s_int *results) {
+ f_return_status fll_execute_path(const f_string program_path, const f_string_dynamics arguments, f_s_int *results) {
#ifndef _di_level_2_parameter_checking_
if (results == 0) return f_status_set_error(f_invalid_parameter);
name_size = strnlen(last_slash, PATH_MAX);
if (name_size > 1) {
- f_macro_strings_string_new(status, program_name, name_size + 1);
+ f_macro_string_new(status, program_name, name_size + 1);
if (f_status_is_error(status)) return status;
}
if (name_size == 0) {
- fixed_arguments[0] = f_eos;
+ fixed_arguments[0] = f_string_eos;
}
else {
fixed_arguments[0] = program_name;
}
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_new(status, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_new(status, fixed_arguments[i + 1], arguments.array[i].used + 1);
if (f_status_is_error(status)) {
f_status status2 = f_none;
- if (name_size > 0) f_macro_strings_string_delete(status, program_name, name_size);
+ if (name_size > 0) f_macro_string_delete(status, program_name, name_size);
for (f_string_length j = 0; j < i; j++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[j].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[j].used + 1);
}
return status;
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, sizeof(char) * arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
} // for
// insert the required array terminated
if (process_id < 0) {
f_status status2 = f_none;
- if (name_size > 0) f_macro_strings_string_delete(status, program_name, name_size);
+ if (name_size > 0) f_macro_string_delete(status, program_name, name_size);
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
} // for
return f_status_set_error(f_fork_failed);
// have the parent wait for the child process to finish
waitpid(process_id, results, 0);
- if (name_size > 0) f_macro_strings_string_delete(status, program_name, name_size);
+ if (name_size > 0) f_macro_string_delete(status, program_name, name_size);
{
f_status status2 = f_none;
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
} // for
}
#endif // _di_fll_execute_path_
#ifndef _di_fll_execute_program_
- f_return_status fll_execute_program(const f_string program_name, const f_dynamic_strings arguments, f_s_int *results) {
+ f_return_status fll_execute_program(const f_string program_name, const f_string_dynamics arguments, f_s_int *results) {
#ifndef _di_level_2_parameter_checking_
if (results == 0) return f_status_set_error(f_invalid_parameter);
f_status status = f_none;
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_new(status, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_new(status, fixed_arguments[i + 1], arguments.array[i].used + 1);
if (f_status_is_error(status)) {
f_status status2 = f_none;
for (f_string_length j = 0; j < i; j++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[j].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[j].used + 1);
}
return status;
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, sizeof(char) * arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
} // for
// insert the required array terminated
f_status status2 = f_none;
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
} // for
return f_status_set_error(f_fork_failed);
f_status status2 = f_none;
for (f_string_length i = 0; i < arguments.used; i++) {
- f_macro_strings_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
+ f_macro_string_delete(status2, fixed_arguments[i + 1], arguments.array[i].used + 1);
}
}
// fll-0 includes
#include <level_0/status.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
/**
* This will execute a program given some path + program name (such as "/bin/bash").
*/
- extern f_return_status fll_execute_path(const f_string program_path, const f_dynamic_strings arguments, f_s_int *results);
+ extern f_return_status fll_execute_path(const f_string program_path, const f_string_dynamics arguments, f_s_int *results);
#endif // _di_fll_execute_path_
#ifndef _di_fll_execute_program_
/**
* This will find the program based on PATH environment so that static paths do not have to be used as with f_execute_path.
*/
- extern f_return_status fll_execute_program(const f_string program_name, const f_dynamic_strings arguments, f_s_int *results);
+ extern f_return_status fll_execute_program(const f_string program_name, const f_string_dynamics arguments, f_s_int *results);
#endif // _di_fll_execute_program_
#ifdef __cplusplus
f_types
f_errors
-f_strings
+f_string
f_memory
#endif
#ifndef _di_fll_fss_basic_read_
- f_return_status fll_fss_basic_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
+ f_return_status fll_fss_basic_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (objects == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fll_fss_basic_read_
#ifndef _di_fll_fss_basic_write_
- f_return_status fll_fss_basic_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer) {
+ f_return_status fll_fss_basic_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (contents.used > contents.size) return f_status_set_error(f_invalid_parameter);
if (f_status_is_error(status)) return status;
}
- buffer->string[buffer->used] = f_eol;
+ buffer->string[buffer->used] = f_string_eol;
buffer->used++;
}
}
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
/**
* read an fss-0000 object and then content.
*/
- extern f_return_status fll_fss_basic_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
+ extern f_return_status fll_fss_basic_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
#endif // _di_fll_fss_basic_read_
#ifndef _di_fll_fss_basic_write_
/**
* write an fss-0000 object and then content.
*/
- extern f_return_status fll_fss_basic_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer);
+ extern f_return_status fll_fss_basic_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer);
#endif // _di_fll_fss_basic_write_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_list_read_
- f_return_status fll_fss_basic_list_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
+ f_return_status fll_fss_basic_list_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (objects == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fll_fss_basic_list_read_
#ifndef _di_fll_fss_basic_list_write_
- f_return_status fll_fss_basic_list_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer) {
+ f_return_status fll_fss_basic_list_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (contents.used > contents.size) return f_status_set_error(f_invalid_parameter);
if (f_status_is_error(status)) return status;
}
- buffer->string[buffer->used] = f_eol;
+ buffer->string[buffer->used] = f_string_eol;
buffer->used++;
}
}
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
/**
* read an fss-0002 object and then content.
*/
- extern f_return_status fll_fss_basic_list_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
+ extern f_return_status fll_fss_basic_list_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
#endif // _di_fll_fss_basic_list_read_
#ifndef _di_fll_fss_basic_list_write_
/**
* write an fss-0000 object and then content.
*/
- extern f_return_status fll_fss_basic_list_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer);
+ extern f_return_status fll_fss_basic_list_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer);
#endif // _di_fll_fss_basic_list_write_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_read_
- f_return_status fll_fss_extended_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
+ f_return_status fll_fss_extended_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (objects == 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_fll_fss_extended_read_
#ifndef _di_fll_fss_extended_write_
- f_return_status fll_fss_extended_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer) {
+ f_return_status fll_fss_extended_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer) {
#ifndef _di_level_2_parameter_checking_
if (buffer == 0) return f_status_set_error(f_invalid_parameter);
if (contents.used > contents.size) return f_status_set_error(f_invalid_parameter);
} // while
// extended always ends each call with a space, and so the last position should be replaced with an eol.
- buffer->string[buffer->used - 1] = f_eol;
+ buffer->string[buffer->used - 1] = f_string_eol;
}
return f_none;
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
/**
* read an fss-0001 object and then content.
*/
- extern f_return_status fll_fss_extended_read(f_dynamic_string *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
+ extern f_return_status fll_fss_extended_read(f_string_dynamic *buffer, f_string_location *input, f_fss_objects *objects, f_fss_contents *contents);
#endif // _di_fll_fss_extended_read_
#ifndef _di_fll_fss_extended_write_
/**
* write an fss-0000 object and then content.
*/
- extern f_return_status fll_fss_extended_write(const f_dynamic_string object, const f_dynamic_strings contents, f_dynamic_string *buffer);
+ extern f_return_status fll_fss_extended_write(const f_string_dynamic object, const f_string_dynamics contents, f_string_dynamic *buffer);
#endif // _di_fll_fss_extended_write_
#ifdef __cplusplus
}
#ifndef _di_fll_fss_status_error_
- if (fl_compare_strings(string, fll_fss_status_string_invalid_format, length, fll_fss_status_string_invalid_format_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_invalid_format, length, fll_fss_status_string_invalid_format_length) == f_equal_to) {
*error = fl_fss_invalid_format;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_invalid_format_eos, length, fll_fss_status_string_invalid_format_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_invalid_format_eos, length, fll_fss_status_string_invalid_format_eos_length) == f_equal_to) {
*error = fl_fss_invalid_format_eos;
return f_none;
}
#endif // _di_fll_fss_status_error_
#ifndef _di_fll_fss_status_warning_
- if (fl_compare_strings(string, fll_fss_status_string_no_header, length, fll_fss_status_string_no_header_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_no_header, length, fll_fss_status_string_no_header_length) == f_equal_to) {
*error = fl_fss_no_header;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_accepted_but_invalid, length, fll_fss_status_string_accepted_but_invalid_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_accepted_but_invalid, length, fll_fss_status_string_accepted_but_invalid_length) == f_equal_to) {
*error = fl_fss_accepted_but_invalid;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_no_header_eos, length, fll_fss_status_string_no_header_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_no_header_eos, length, fll_fss_status_string_no_header_eos_length) == f_equal_to) {
*error = fl_fss_no_header_eos;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_accepted_but_invalid_eos, length, fll_fss_status_string_accepted_but_invalid_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_accepted_but_invalid_eos, length, fll_fss_status_string_accepted_but_invalid_eos_length) == f_equal_to) {
*error = fl_fss_accepted_but_invalid_eos;
return f_none;
}
#endif // _di_fll_fss_status_warning_
#ifndef _di_fll_fss_status_success_
- if (fl_compare_strings(string, fll_fss_status_string_found_object, length, fll_fss_status_string_found_object_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_found_object, length, fll_fss_status_string_found_object_length) == f_equal_to) {
*error = fl_fss_found_object;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_found_content, length, fll_fss_status_string_found_content_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_found_content, length, fll_fss_status_string_found_content_length) == f_equal_to) {
*error = fl_fss_found_content;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_found_no_object, length, fll_fss_status_string_found_no_object_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_found_no_object, length, fll_fss_status_string_found_no_object_length) == f_equal_to) {
*error = fl_fss_found_no_object;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_found_no_content, length, fll_fss_status_string_found_no_content_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_found_no_content, length, fll_fss_status_string_found_no_content_length) == f_equal_to) {
*error = fl_fss_found_no_content;
return f_none;
}
- if (fl_compare_strings(string, fll_fss_status_string_found_object_no_content, length, fll_fss_status_string_found_object_no_content_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_found_object_no_content, length, fll_fss_status_string_found_object_no_content_length) == f_equal_to) {
*error = fl_fss_found_object_no_content;
return f_none;
}
#endif // _di_fll_fss_status_success_
- if (fl_compare_strings(string, fll_fss_status_string_last_error_code, length, fll_fss_status_string_last_error_code_length) == f_equal_to) {
+ if (fl_string_compare(string, fll_fss_status_string_last_error_code, length, fll_fss_status_string_last_error_code_length) == f_equal_to) {
*error = f_last_status_code;
return f_none;
}
#include <level_0/status.h>
#include <level_0/fss.h>
#include <level_0/memory.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
-#include <level_1/status.h>
#include <level_1/fss.h>
#include <level_1/fss_basic.h>
#include <level_1/fss_status.h>
#include <level_1/fss_macro.h>
-#include <level_1/strings.h>
+#include <level_1/status.h>
+#include <level_1/string.h>
#ifdef __cplusplus
extern "C" {
f_types
f_status
-f_strings
+f_string
f_memory
f_conversion
f_utf
f_fss
fl_fss
fl_status
-fl_strings
+fl_string
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfl_status -lfl_strings -lfl_fss -lf_conversion -lf_file -lf_memory -lf_conversion -lf_utf
+build_libraries_fll -lfl_status -lfl_string -lfl_fss -lf_conversion -lf_file -lf_memory -lf_conversion -lf_utf
build_sources_library fss_basic.c fss_basic_list.c fss_extended.c fss_status.c
build_sources_program
build_sources_headers fss_basic.h fss_basic_list.h fss_extended.h fss_status.h
}
#ifndef _di_fll_status_booleans_
- if (fl_compare_strings(string, fl_status_string_false, length, fl_status_string_false_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_false, length, fl_status_string_false_length) == f_equal_to) {
*code = f_false;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_true, length, fl_status_string_true_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_true, length, fl_status_string_true_length) == f_equal_to) {
*code = f_true;
return f_none;
}
#endif // _di_fll_status_booleans_
#ifndef _di_fll_status_signals_
- if (fl_compare_strings(string, fl_status_string_signal_hangup, length, fl_status_string_signal_hangup_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_hangup, length, fl_status_string_signal_hangup_length) == f_equal_to) {
*code = f_signal_hangup;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_interrupt, length, fl_status_string_signal_interrupt_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_interrupt, length, fl_status_string_signal_interrupt_length) == f_equal_to) {
*code = f_signal_interrupt;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_quit, length, fl_status_string_signal_quit_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_quit, length, fl_status_string_signal_quit_length) == f_equal_to) {
*code = f_signal_quit;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_illegal, length, fl_status_string_signal_illegal_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_illegal, length, fl_status_string_signal_illegal_length) == f_equal_to) {
*code = f_signal_illegal;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_trap, length, fl_status_string_signal_trap_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_trap, length, fl_status_string_signal_trap_length) == f_equal_to) {
*code = f_signal_trap;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_abort, length, fl_status_string_signal_abort_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_abort, length, fl_status_string_signal_abort_length) == f_equal_to) {
*code = f_signal_abort;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_bus_error, length, fl_status_string_signal_bus_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_bus_error, length, fl_status_string_signal_bus_error_length) == f_equal_to) {
*code = f_signal_bus_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_floating_point_exception, length, fl_status_string_signal_floating_point_exception_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_floating_point_exception, length, fl_status_string_signal_floating_point_exception_length) == f_equal_to) {
*code = f_signal_floating_point_exception;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_kill, length, fl_status_string_signal_kill_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_kill, length, fl_status_string_signal_kill_length) == f_equal_to) {
*code = f_signal_kill;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_user_1, length, fl_status_string_signal_user_1_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_user_1, length, fl_status_string_signal_user_1_length) == f_equal_to) {
*code = f_signal_user_1;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_segmentation_fault, length, fl_status_string_signal_segmentation_fault_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_segmentation_fault, length, fl_status_string_signal_segmentation_fault_length) == f_equal_to) {
*code = f_signal_segmentation_fault;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_user_2, length, fl_status_string_signal_user_2_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_user_2, length, fl_status_string_signal_user_2_length) == f_equal_to) {
*code = f_signal_user_2;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_broken_pipe, length, fl_status_string_signal_broken_pipe_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_broken_pipe, length, fl_status_string_signal_broken_pipe_length) == f_equal_to) {
*code = f_signal_broken_pipe;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_alarm_clock, length, fl_status_string_signal_alarm_clock_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_alarm_clock, length, fl_status_string_signal_alarm_clock_length) == f_equal_to) {
*code = f_signal_alarm_clock;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_termination, length, fl_status_string_signal_termination_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_termination, length, fl_status_string_signal_termination_length) == f_equal_to) {
*code = f_signal_termination;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_stack_fault, length, fl_status_string_signal_stack_fault_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_stack_fault, length, fl_status_string_signal_stack_fault_length) == f_equal_to) {
*code = f_signal_stack_fault;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_child, length, fl_status_string_signal_child_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_child, length, fl_status_string_signal_child_length) == f_equal_to) {
*code = f_signal_child;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_continue, length, fl_status_string_signal_continue_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_continue, length, fl_status_string_signal_continue_length) == f_equal_to) {
*code = f_signal_continue;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_stop, length, fl_status_string_signal_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_stop, length, fl_status_string_signal_stop_length) == f_equal_to) {
*code = f_signal_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_keyboard_stop, length, fl_status_string_signal_keyboard_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_keyboard_stop, length, fl_status_string_signal_keyboard_stop_length) == f_equal_to) {
*code = f_signal_keyboard_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_tty_in, length, fl_status_string_signal_tty_in_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_tty_in, length, fl_status_string_signal_tty_in_length) == f_equal_to) {
*code = f_signal_tty_in;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_tty_out, length, fl_status_string_signal_tty_out_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_tty_out, length, fl_status_string_signal_tty_out_length) == f_equal_to) {
*code = f_signal_tty_out;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_urgent, length, fl_status_string_signal_urgent_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_urgent, length, fl_status_string_signal_urgent_length) == f_equal_to) {
*code = f_signal_urgent;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_cpu_limit, length, fl_status_string_signal_cpu_limit_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_cpu_limit, length, fl_status_string_signal_cpu_limit_length) == f_equal_to) {
*code = f_signal_cpu_limit;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_file_size_limit, length, fl_status_string_signal_file_size_limit_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_file_size_limit, length, fl_status_string_signal_file_size_limit_length) == f_equal_to) {
*code = f_signal_file_size_limit;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_virtual_alarm_clock, length, fl_status_string_signal_virtual_alarm_clock_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_virtual_alarm_clock, length, fl_status_string_signal_virtual_alarm_clock_length) == f_equal_to) {
*code = f_signal_virtual_alarm_clock;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_profile_alarm_clock, length, fl_status_string_signal_profile_alarm_clock_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_profile_alarm_clock, length, fl_status_string_signal_profile_alarm_clock_length) == f_equal_to) {
*code = f_signal_profile_alarm_clock;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_window_size_change, length, fl_status_string_signal_window_size_change_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_window_size_change, length, fl_status_string_signal_window_size_change_length) == f_equal_to) {
*code = f_signal_window_size_change;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_pollable_event, length, fl_status_string_signal_pollable_event_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_pollable_event, length, fl_status_string_signal_pollable_event_length) == f_equal_to) {
*code = f_signal_pollable_event;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_power_failure, length, fl_status_string_signal_power_failure_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_power_failure, length, fl_status_string_signal_power_failure_length) == f_equal_to) {
*code = f_signal_power_failure;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_bad_system_call, length, fl_status_string_signal_bad_system_call_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_bad_system_call, length, fl_status_string_signal_bad_system_call_length) == f_equal_to) {
*code = f_signal_bad_system_call;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_32, length, fl_status_string_signal_reserved_32_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_32, length, fl_status_string_signal_reserved_32_length) == f_equal_to) {
*code = f_signal_reserved_32;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_33, length, fl_status_string_signal_reserved_33_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_33, length, fl_status_string_signal_reserved_33_length) == f_equal_to) {
*code = f_signal_reserved_33;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_34, length, fl_status_string_signal_reserved_34_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_34, length, fl_status_string_signal_reserved_34_length) == f_equal_to) {
*code = f_signal_reserved_34;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_35, length, fl_status_string_signal_reserved_35_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_35, length, fl_status_string_signal_reserved_35_length) == f_equal_to) {
*code = f_signal_reserved_35;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_36, length, fl_status_string_signal_reserved_36_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_36, length, fl_status_string_signal_reserved_36_length) == f_equal_to) {
*code = f_signal_reserved_36;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_37, length, fl_status_string_signal_reserved_37_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_37, length, fl_status_string_signal_reserved_37_length) == f_equal_to) {
*code = f_signal_reserved_37;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_38, length, fl_status_string_signal_reserved_38_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_38, length, fl_status_string_signal_reserved_38_length) == f_equal_to) {
*code = f_signal_reserved_38;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_39, length, fl_status_string_signal_reserved_39_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_39, length, fl_status_string_signal_reserved_39_length) == f_equal_to) {
*code = f_signal_reserved_39;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_40, length, fl_status_string_signal_reserved_40_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_40, length, fl_status_string_signal_reserved_40_length) == f_equal_to) {
*code = f_signal_reserved_40;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_41, length, fl_status_string_signal_reserved_41_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_41, length, fl_status_string_signal_reserved_41_length) == f_equal_to) {
*code = f_signal_reserved_41;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_42, length, fl_status_string_signal_reserved_42_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_42, length, fl_status_string_signal_reserved_42_length) == f_equal_to) {
*code = f_signal_reserved_42;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_43, length, fl_status_string_signal_reserved_43_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_43, length, fl_status_string_signal_reserved_43_length) == f_equal_to) {
*code = f_signal_reserved_43;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_44, length, fl_status_string_signal_reserved_44_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_44, length, fl_status_string_signal_reserved_44_length) == f_equal_to) {
*code = f_signal_reserved_44;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_45, length, fl_status_string_signal_reserved_45_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_45, length, fl_status_string_signal_reserved_45_length) == f_equal_to) {
*code = f_signal_reserved_45;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_46, length, fl_status_string_signal_reserved_46_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_46, length, fl_status_string_signal_reserved_46_length) == f_equal_to) {
*code = f_signal_reserved_46;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_47, length, fl_status_string_signal_reserved_47_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_47, length, fl_status_string_signal_reserved_47_length) == f_equal_to) {
*code = f_signal_reserved_47;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_48, length, fl_status_string_signal_reserved_48_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_48, length, fl_status_string_signal_reserved_48_length) == f_equal_to) {
*code = f_signal_reserved_48;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_49, length, fl_status_string_signal_reserved_49_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_49, length, fl_status_string_signal_reserved_49_length) == f_equal_to) {
*code = f_signal_reserved_49;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_50, length, fl_status_string_signal_reserved_50_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_50, length, fl_status_string_signal_reserved_50_length) == f_equal_to) {
*code = f_signal_reserved_50;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_51, length, fl_status_string_signal_reserved_51_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_51, length, fl_status_string_signal_reserved_51_length) == f_equal_to) {
*code = f_signal_reserved_51;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_52, length, fl_status_string_signal_reserved_52_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_52, length, fl_status_string_signal_reserved_52_length) == f_equal_to) {
*code = f_signal_reserved_52;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_53, length, fl_status_string_signal_reserved_53_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_53, length, fl_status_string_signal_reserved_53_length) == f_equal_to) {
*code = f_signal_reserved_53;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_54, length, fl_status_string_signal_reserved_54_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_54, length, fl_status_string_signal_reserved_54_length) == f_equal_to) {
*code = f_signal_reserved_54;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_55, length, fl_status_string_signal_reserved_55_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_55, length, fl_status_string_signal_reserved_55_length) == f_equal_to) {
*code = f_signal_reserved_55;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_56, length, fl_status_string_signal_reserved_56_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_56, length, fl_status_string_signal_reserved_56_length) == f_equal_to) {
*code = f_signal_reserved_56;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_57, length, fl_status_string_signal_reserved_57_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_57, length, fl_status_string_signal_reserved_57_length) == f_equal_to) {
*code = f_signal_reserved_57;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_58, length, fl_status_string_signal_reserved_58_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_58, length, fl_status_string_signal_reserved_58_length) == f_equal_to) {
*code = f_signal_reserved_58;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_59, length, fl_status_string_signal_reserved_59_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_59, length, fl_status_string_signal_reserved_59_length) == f_equal_to) {
*code = f_signal_reserved_59;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_60, length, fl_status_string_signal_reserved_60_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_60, length, fl_status_string_signal_reserved_60_length) == f_equal_to) {
*code = f_signal_reserved_60;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_61, length, fl_status_string_signal_reserved_61_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_61, length, fl_status_string_signal_reserved_61_length) == f_equal_to) {
*code = f_signal_reserved_61;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_62, length, fl_status_string_signal_reserved_62_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_62, length, fl_status_string_signal_reserved_62_length) == f_equal_to) {
*code = f_signal_reserved_62;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_63, length, fl_status_string_signal_reserved_63_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_63, length, fl_status_string_signal_reserved_63_length) == f_equal_to) {
*code = f_signal_reserved_63;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_signal_reserved_64, length, fl_status_string_signal_reserved_64_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_signal_reserved_64, length, fl_status_string_signal_reserved_64_length) == f_equal_to) {
*code = f_signal_reserved_64;
return f_none;
}
#endif // _di_fll_status_signals_
#ifndef _di_fll_status_basic_
- if (fl_compare_strings(string, fl_status_string_none, length, fl_status_string_none_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_none, length, fl_status_string_none_length) == f_equal_to) {
*code = f_none;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_maybe, length, fl_status_string_maybe_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_maybe, length, fl_status_string_maybe_length) == f_equal_to) {
*code = f_maybe;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_dummy, length, fl_status_string_dummy_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_dummy, length, fl_status_string_dummy_length) == f_equal_to) {
*code = f_dummy;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_warn, length, fl_status_string_warn_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_warn, length, fl_status_string_warn_length) == f_equal_to) {
*code = f_warn;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_critical, length, fl_status_string_critical_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_critical, length, fl_status_string_critical_length) == f_equal_to) {
*code = f_critical;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unknown, length, fl_status_string_unknown_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unknown, length, fl_status_string_unknown_length) == f_equal_to) {
*code = f_unknown;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unsupported, length, fl_status_string_unsupported_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unsupported, length, fl_status_string_unsupported_length) == f_equal_to) {
*code = f_unsupported;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_no_data, length, fl_status_string_no_data_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_no_data, length, fl_status_string_no_data_length) == f_equal_to) {
*code = f_no_data;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_out_of_memory, length, fl_status_string_out_of_memory_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_out_of_memory, length, fl_status_string_out_of_memory_length) == f_equal_to) {
*code = f_out_of_memory;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_input_error, length, fl_status_string_input_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_input_error, length, fl_status_string_input_error_length) == f_equal_to) {
*code = f_input_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_output_error, length, fl_status_string_output_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_output_error, length, fl_status_string_output_error_length) == f_equal_to) {
*code = f_output_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_input_output_error, length, fl_status_string_input_output_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_input_output_error, length, fl_status_string_input_output_error_length) == f_equal_to) {
*code = f_input_output_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_does_not_exist, length, fl_status_string_does_not_exist_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_does_not_exist, length, fl_status_string_does_not_exist_length) == f_equal_to) {
*code = f_does_not_exist;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_not_connected, length, fl_status_string_not_connected_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_not_connected, length, fl_status_string_not_connected_length) == f_equal_to) {
*code = f_not_connected;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_failure, length, fl_status_string_failure_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_failure, length, fl_status_string_failure_length) == f_equal_to) {
*code = f_failure;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_interrupted, length, fl_status_string_interrupted_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_interrupted, length, fl_status_string_interrupted_length) == f_equal_to) {
*code = f_interrupted;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_loop, length, fl_status_string_loop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_loop, length, fl_status_string_loop_length) == f_equal_to) {
*code = f_loop;
return f_none;
}
#endif // _di_fll_status_basic_
#ifndef _di_fll_status_invalid_
- if (fl_compare_strings(string, fl_status_string_invalid, length, fl_status_string_invalid_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid, length, fl_status_string_invalid_length) == f_equal_to) {
*code = f_invalid;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_parameter, length, fl_status_string_invalid_parameter_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_parameter, length, fl_status_string_invalid_parameter_length) == f_equal_to) {
*code = f_invalid_parameter;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_syntax, length, fl_status_string_invalid_syntax_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_syntax, length, fl_status_string_invalid_syntax_length) == f_equal_to) {
*code = f_invalid_syntax;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_data, length, fl_status_string_invalid_data_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_data, length, fl_status_string_invalid_data_length) == f_equal_to) {
*code = f_invalid_data;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_file, length, fl_status_string_invalid_file_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_file, length, fl_status_string_invalid_file_length) == f_equal_to) {
*code = f_invalid_file;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_directory, length, fl_status_string_invalid_directory_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_directory, length, fl_status_string_invalid_directory_length) == f_equal_to) {
*code = f_invalid_directory;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_socket, length, fl_status_string_invalid_socket_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_socket, length, fl_status_string_invalid_socket_length) == f_equal_to) {
*code = f_invalid_socket;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_device, length, fl_status_string_invalid_device_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_device, length, fl_status_string_invalid_device_length) == f_equal_to) {
*code = f_invalid_device;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_link, length, fl_status_string_invalid_link_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_link, length, fl_status_string_invalid_link_length) == f_equal_to) {
*code = f_invalid_link;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_pipe, length, fl_status_string_invalid_pipe_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_pipe, length, fl_status_string_invalid_pipe_length) == f_equal_to) {
*code = f_invalid_pipe;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_address, length, fl_status_string_invalid_address_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_address, length, fl_status_string_invalid_address_length) == f_equal_to) {
*code = f_invalid_address;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_port, length, fl_status_string_invalid_port_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_port, length, fl_status_string_invalid_port_length) == f_equal_to) {
*code = f_invalid_port;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_value, length, fl_status_string_invalid_value_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_value, length, fl_status_string_invalid_value_length) == f_equal_to) {
*code = f_invalid_value;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_buffer, length, fl_status_string_invalid_buffer_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_buffer, length, fl_status_string_invalid_buffer_length) == f_equal_to) {
*code = f_invalid_buffer;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_process, length, fl_status_string_invalid_process_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_process, length, fl_status_string_invalid_process_length) == f_equal_to) {
*code = f_invalid_process;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_utf, length, fl_status_string_invalid_utf_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_utf, length, fl_status_string_invalid_utf_length) == f_equal_to) {
*code = f_invalid_utf;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_on_eof, length, fl_status_string_invalid_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_on_eof, length, fl_status_string_invalid_on_eof_length) == f_equal_to) {
*code = f_invalid_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_on_eol, length, fl_status_string_invalid_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_on_eol, length, fl_status_string_invalid_on_eol_length) == f_equal_to) {
*code = f_invalid_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_on_eos, length, fl_status_string_invalid_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_on_eos, length, fl_status_string_invalid_on_eos_length) == f_equal_to) {
*code = f_invalid_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_invalid_on_stop, length, fl_status_string_invalid_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_invalid_on_stop, length, fl_status_string_invalid_on_stop_length) == f_equal_to) {
*code = f_invalid_on_stop;
return f_none;
}
#endif // _di_fll_status_invalid_
#ifndef _di_fll_status_busy_
- if (fl_compare_strings(string, fl_status_string_busy, length, fl_status_string_busy_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy, length, fl_status_string_busy_length) == f_equal_to) {
*code = f_busy;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_address, length, fl_status_string_busy_address_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_address, length, fl_status_string_busy_address_length) == f_equal_to) {
*code = f_busy_address;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_port, length, fl_status_string_busy_port_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_port, length, fl_status_string_busy_port_length) == f_equal_to) {
*code = f_busy_port;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_socket, length, fl_status_string_busy_socket_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_socket, length, fl_status_string_busy_socket_length) == f_equal_to) {
*code = f_busy_socket;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_device, length, fl_status_string_busy_device_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_device, length, fl_status_string_busy_device_length) == f_equal_to) {
*code = f_busy_device;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_pipe, length, fl_status_string_busy_pipe_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_pipe, length, fl_status_string_busy_pipe_length) == f_equal_to) {
*code = f_busy_pipe;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_buffer, length, fl_status_string_busy_buffer_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_buffer, length, fl_status_string_busy_buffer_length) == f_equal_to) {
*code = f_busy_buffer;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_busy_process, length, fl_status_string_busy_process_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_busy_process, length, fl_status_string_busy_process_length) == f_equal_to) {
*code = f_busy_process;
return f_none;
}
#endif // _di_fll_status_busy_
#ifndef _di_fll_status_unavailable_
- if (fl_compare_strings(string, fl_status_string_unavailable, length, fl_status_string_unavailable_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable, length, fl_status_string_unavailable_length) == f_equal_to) {
*code = f_unavailable;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_address, length, fl_status_string_unavailable_address_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_address, length, fl_status_string_unavailable_address_length) == f_equal_to) {
*code = f_unavailable_address;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_port, length, fl_status_string_unavailable_port_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_port, length, fl_status_string_unavailable_port_length) == f_equal_to) {
*code = f_unavailable_port;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_socket, length, fl_status_string_unavailable_socket_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_socket, length, fl_status_string_unavailable_socket_length) == f_equal_to) {
*code = f_unavailable_socket;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_device, length, fl_status_string_unavailable_device_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_device, length, fl_status_string_unavailable_device_length) == f_equal_to) {
*code = f_unavailable_device;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_pipe, length, fl_status_string_unavailable_pipe_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_pipe, length, fl_status_string_unavailable_pipe_length) == f_equal_to) {
*code = f_unavailable_pipe;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_buffer, length, fl_status_string_unavailable_buffer_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_buffer, length, fl_status_string_unavailable_buffer_length) == f_equal_to) {
*code = f_unavailable_buffer;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unavailable_process, length, fl_status_string_unavailable_process_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unavailable_process, length, fl_status_string_unavailable_process_length) == f_equal_to) {
*code = f_unavailable_process;
return f_none;
}
#endif // _di_fll_status_unavailable_
#ifndef _di_fll_status_digits_
- if (fl_compare_strings(string, fl_status_string_underflow, length, fl_status_string_underflow_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_underflow, length, fl_status_string_underflow_length) == f_equal_to) {
*code = f_underflow;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_overflow, length, fl_status_string_overflow_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_overflow, length, fl_status_string_overflow_length) == f_equal_to) {
*code = f_overflow;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_divide_by_zero, length, fl_status_string_divide_by_zero_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_divide_by_zero, length, fl_status_string_divide_by_zero_length) == f_equal_to) {
*code = f_divide_by_zero;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_cannot_be_negative, length, fl_status_string_cannot_be_negative_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_cannot_be_negative, length, fl_status_string_cannot_be_negative_length) == f_equal_to) {
*code = f_cannot_be_negative;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_cannot_be_positive, length, fl_status_string_cannot_be_positive_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_cannot_be_positive, length, fl_status_string_cannot_be_positive_length) == f_equal_to) {
*code = f_cannot_be_positive;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_cannot_be_zero, length, fl_status_string_cannot_be_zero_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_cannot_be_zero, length, fl_status_string_cannot_be_zero_length) == f_equal_to) {
*code = f_cannot_be_zero;
return f_none;
}
#endif // _di_fll_status_digits_
#ifndef _di_fll_status_buffers_
- if (fl_compare_strings(string, fl_status_string_no_data_on_eof, length, fl_status_string_no_data_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_no_data_on_eof, length, fl_status_string_no_data_on_eof_length) == f_equal_to) {
*code = f_no_data_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_no_data_on_eol, length, fl_status_string_no_data_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_no_data_on_eol, length, fl_status_string_no_data_on_eol_length) == f_equal_to) {
*code = f_no_data_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_no_data_on_eos, length, fl_status_string_no_data_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_no_data_on_eos, length, fl_status_string_no_data_on_eos_length) == f_equal_to) {
*code = f_no_data_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_no_data_on_stop, length, fl_status_string_no_data_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_no_data_on_stop, length, fl_status_string_no_data_on_stop_length) == f_equal_to) {
*code = f_no_data_on_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_none_on_eof, length, fl_status_string_none_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_none_on_eof, length, fl_status_string_none_on_eof_length) == f_equal_to) {
*code = f_none_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_none_on_eol, length, fl_status_string_none_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_none_on_eol, length, fl_status_string_none_on_eol_length) == f_equal_to) {
*code = f_none_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_none_on_eos, length, fl_status_string_none_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_none_on_eos, length, fl_status_string_none_on_eos_length) == f_equal_to) {
*code = f_none_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_none_on_stop, length, fl_status_string_none_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_none_on_stop, length, fl_status_string_none_on_stop_length) == f_equal_to) {
*code = f_none_on_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_error_on_eof, length, fl_status_string_error_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_error_on_eof, length, fl_status_string_error_on_eof_length) == f_equal_to) {
*code = f_error_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_error_on_eol, length, fl_status_string_error_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_error_on_eol, length, fl_status_string_error_on_eol_length) == f_equal_to) {
*code = f_error_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_error_on_eos, length, fl_status_string_error_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_error_on_eos, length, fl_status_string_error_on_eos_length) == f_equal_to) {
*code = f_error_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_error_on_stop, length, fl_status_string_error_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_error_on_stop, length, fl_status_string_error_on_stop_length) == f_equal_to) {
*code = f_error_on_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_buffer_too_small, length, fl_status_string_buffer_too_small_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_buffer_too_small, length, fl_status_string_buffer_too_small_length) == f_equal_to) {
*code = f_buffer_too_small;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_buffer_too_large, length, fl_status_string_buffer_too_large_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_buffer_too_large, length, fl_status_string_buffer_too_large_length) == f_equal_to) {
*code = f_buffer_too_large;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_string_too_small, length, fl_status_string_string_too_small_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_string_too_small, length, fl_status_string_string_too_small_length) == f_equal_to) {
*code = f_string_too_small;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_string_too_large, length, fl_status_string_string_too_large_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_string_too_large, length, fl_status_string_string_too_large_length) == f_equal_to) {
*code = f_string_too_large;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_nest, length, fl_status_string_unterminated_nest_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_nest, length, fl_status_string_unterminated_nest_length) == f_equal_to) {
*code = f_unterminated_nest;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_nest_on_eof, length, fl_status_string_unterminated_nest_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_nest_on_eof, length, fl_status_string_unterminated_nest_on_eof_length) == f_equal_to) {
*code = f_unterminated_nest_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_nest_on_eol, length, fl_status_string_unterminated_nest_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_nest_on_eol, length, fl_status_string_unterminated_nest_on_eol_length) == f_equal_to) {
*code = f_unterminated_nest_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_nest_on_eos, length, fl_status_string_unterminated_nest_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_nest_on_eos, length, fl_status_string_unterminated_nest_on_eos_length) == f_equal_to) {
*code = f_unterminated_nest_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_nest_on_stop, length, fl_status_string_unterminated_nest_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_nest_on_stop, length, fl_status_string_unterminated_nest_on_stop_length) == f_equal_to) {
*code = f_unterminated_nest_on_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_group, length, fl_status_string_unterminated_group_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_group, length, fl_status_string_unterminated_group_length) == f_equal_to) {
*code = f_unterminated_group;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_group_on_eof, length, fl_status_string_unterminated_group_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_group_on_eof, length, fl_status_string_unterminated_group_on_eof_length) == f_equal_to) {
*code = f_unterminated_group_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_group_on_eol, length, fl_status_string_unterminated_group_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_group_on_eol, length, fl_status_string_unterminated_group_on_eol_length) == f_equal_to) {
*code = f_unterminated_group_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_group_on_eos, length, fl_status_string_unterminated_group_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_group_on_eos, length, fl_status_string_unterminated_group_on_eos_length) == f_equal_to) {
*code = f_unterminated_group_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_unterminated_group_on_stop, length, fl_status_string_unterminated_group_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_unterminated_group_on_stop, length, fl_status_string_unterminated_group_on_stop_length) == f_equal_to) {
*code = f_unterminated_group_on_stop;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_incomplete_utf, length, fl_status_string_incomplete_utf_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_incomplete_utf, length, fl_status_string_incomplete_utf_length) == f_equal_to) {
*code = f_incomplete_utf;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_incomplete_utf_on_eof, length, fl_status_string_incomplete_utf_on_eof_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_incomplete_utf_on_eof, length, fl_status_string_incomplete_utf_on_eof_length) == f_equal_to) {
*code = f_incomplete_utf_on_eof;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_incomplete_utf_on_eol, length, fl_status_string_incomplete_utf_on_eol_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_incomplete_utf_on_eol, length, fl_status_string_incomplete_utf_on_eol_length) == f_equal_to) {
*code = f_incomplete_utf_on_eol;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_incomplete_utf_on_eos, length, fl_status_string_incomplete_utf_on_eos_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_incomplete_utf_on_eos, length, fl_status_string_incomplete_utf_on_eos_length) == f_equal_to) {
*code = f_incomplete_utf_on_eos;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_incomplete_utf_on_stop, length, fl_status_string_incomplete_utf_on_stop_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_incomplete_utf_on_stop, length, fl_status_string_incomplete_utf_on_stop_length) == f_equal_to) {
*code = f_incomplete_utf_on_stop;
return f_none;
}
#endif // _di_fll_status_buffers_
#ifndef _di_fll_status_allocation_
- if (fl_compare_strings(string, fl_status_string_allocation_error, length, fl_status_string_allocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_allocation_error, length, fl_status_string_allocation_error_length) == f_equal_to) {
*code = f_allocation_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_reallocation_error, length, fl_status_string_reallocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_reallocation_error, length, fl_status_string_reallocation_error_length) == f_equal_to) {
*code = f_reallocation_error;
return f_none;
}
#endif // _di_fll_status_allocation_
#ifndef _di_fll_status_fork_
- if (fl_compare_strings(string, fl_status_string_fork_failed, length, fl_status_string_fork_failed_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_fork_failed, length, fl_status_string_fork_failed_length) == f_equal_to) {
*code = f_fork_failed;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_too_many_processes, length, fl_status_string_too_many_processes_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_too_many_processes, length, fl_status_string_too_many_processes_length) == f_equal_to) {
*code = f_too_many_processes;
return f_none;
}
#endif // _di_fll_status_fork_
#ifndef _di_fll_status_file_
- if (fl_compare_strings(string, fl_status_string_file_seek_error, length, fl_status_string_file_seek_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_seek_error, length, fl_status_string_file_seek_error_length) == f_equal_to) {
*code = f_file_seek_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_read_error, length, fl_status_string_file_read_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_read_error, length, fl_status_string_file_read_error_length) == f_equal_to) {
*code = f_file_read_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_write_error, length, fl_status_string_file_write_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_write_error, length, fl_status_string_file_write_error_length) == f_equal_to) {
*code = f_file_write_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_flush_error, length, fl_status_string_file_flush_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_flush_error, length, fl_status_string_file_flush_error_length) == f_equal_to) {
*code = f_file_flush_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_purge_error, length, fl_status_string_file_purge_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_purge_error, length, fl_status_string_file_purge_error_length) == f_equal_to) {
*code = f_file_purge_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_open_error, length, fl_status_string_file_open_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_open_error, length, fl_status_string_file_open_error_length) == f_equal_to) {
*code = f_file_open_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_close_error, length, fl_status_string_file_close_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_close_error, length, fl_status_string_file_close_error_length) == f_equal_to) {
*code = f_file_close_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_synchronize_error, length, fl_status_string_file_synchronize_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_synchronize_error, length, fl_status_string_file_synchronize_error_length) == f_equal_to) {
*code = f_file_synchronize_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_descriptor_error, length, fl_status_string_file_descriptor_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_descriptor_error, length, fl_status_string_file_descriptor_error_length) == f_equal_to) {
*code = f_file_descriptor_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_not_found, length, fl_status_string_file_not_found_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_not_found, length, fl_status_string_file_not_found_length) == f_equal_to) {
*code = f_file_not_found;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_found, length, fl_status_string_file_found_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_found, length, fl_status_string_file_found_length) == f_equal_to) {
*code = f_file_found;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_is_empty, length, fl_status_string_file_is_empty_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_is_empty, length, fl_status_string_file_is_empty_length) == f_equal_to) {
*code = f_file_is_empty;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_not_open, length, fl_status_string_file_not_open_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_not_open, length, fl_status_string_file_not_open_length) == f_equal_to) {
*code = f_file_not_open;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_allocation_error, length, fl_status_string_file_allocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_allocation_error, length, fl_status_string_file_allocation_error_length) == f_equal_to) {
*code = f_file_allocation_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_reallocation_error, length, fl_status_string_file_reallocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_reallocation_error, length, fl_status_string_file_reallocation_error_length) == f_equal_to) {
*code = f_file_reallocation_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_stat_error, length, fl_status_string_file_stat_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_stat_error, length, fl_status_string_file_stat_error_length) == f_equal_to) {
*code = f_file_stat_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_error, length, fl_status_string_file_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_error, length, fl_status_string_file_error_length) == f_equal_to) {
*code = f_file_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_file_not_utf, length, fl_status_string_file_not_utf_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_file_not_utf, length, fl_status_string_file_not_utf_length) == f_equal_to) {
*code = f_file_not_utf;
return f_none;
}
#endif // _di_fll_status_file_
#ifndef _di_fll_status_directory_
- if (fl_compare_strings(string, fl_status_string_directory_read_error, length, fl_status_string_directory_read_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_read_error, length, fl_status_string_directory_read_error_length) == f_equal_to) {
*code = f_directory_read_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_write_error, length, fl_status_string_directory_write_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_write_error, length, fl_status_string_directory_write_error_length) == f_equal_to) {
*code = f_directory_write_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_flush_error, length, fl_status_string_directory_flush_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_flush_error, length, fl_status_string_directory_flush_error_length) == f_equal_to) {
*code = f_directory_flush_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_purge_error, length, fl_status_string_directory_purge_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_purge_error, length, fl_status_string_directory_purge_error_length) == f_equal_to) {
*code = f_directory_purge_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_open_error, length, fl_status_string_directory_open_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_open_error, length, fl_status_string_directory_open_error_length) == f_equal_to) {
*code = f_directory_open_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_close_error, length, fl_status_string_directory_close_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_close_error, length, fl_status_string_directory_close_error_length) == f_equal_to) {
*code = f_directory_close_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_synchronize_error, length, fl_status_string_directory_synchronize_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_synchronize_error, length, fl_status_string_directory_synchronize_error_length) == f_equal_to) {
*code = f_directory_synchronize_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_descriptor_error, length, fl_status_string_directory_descriptor_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_descriptor_error, length, fl_status_string_directory_descriptor_error_length) == f_equal_to) {
*code = f_directory_descriptor_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_not_found, length, fl_status_string_directory_not_found_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_not_found, length, fl_status_string_directory_not_found_length) == f_equal_to) {
*code = f_directory_not_found;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_is_empty, length, fl_status_string_directory_is_empty_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_is_empty, length, fl_status_string_directory_is_empty_length) == f_equal_to) {
*code = f_directory_is_empty;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_not_open, length, fl_status_string_directory_not_open_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_not_open, length, fl_status_string_directory_not_open_length) == f_equal_to) {
*code = f_directory_not_open;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_allocation_error, length, fl_status_string_directory_allocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_allocation_error, length, fl_status_string_directory_allocation_error_length) == f_equal_to) {
*code = f_directory_allocation_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_reallocation_error, length, fl_status_string_directory_reallocation_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_reallocation_error, length, fl_status_string_directory_reallocation_error_length) == f_equal_to) {
*code = f_directory_reallocation_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_error, length, fl_status_string_directory_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_error, length, fl_status_string_directory_error_length) == f_equal_to) {
*code = f_directory_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_directory_not_utf, length, fl_status_string_directory_not_utf_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_directory_not_utf, length, fl_status_string_directory_not_utf_length) == f_equal_to) {
*code = f_directory_not_utf;
return f_none;
}
#endif // _di_fll_status_directory_
#ifndef _di_fll_status_socket_
- if (fl_compare_strings(string, fl_status_string_socket_connection_client_error, length, fl_status_string_socket_connection_client_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_socket_connection_client_error, length, fl_status_string_socket_connection_client_error_length) == f_equal_to) {
*code = f_socket_connection_client_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_socket_connection_target_error, length, fl_status_string_socket_connection_target_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_socket_connection_target_error, length, fl_status_string_socket_connection_target_error_length) == f_equal_to) {
*code = f_socket_connection_target_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_socket_receive_error, length, fl_status_string_socket_receive_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_socket_receive_error, length, fl_status_string_socket_receive_error_length) == f_equal_to) {
*code = f_socket_receive_error;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_socket_send_error, length, fl_status_string_socket_send_error_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_socket_send_error, length, fl_status_string_socket_send_error_length) == f_equal_to) {
*code = f_socket_send_error;
return f_none;
}
#endif // _di_fll_status_socket_
#ifndef _di_fll_status_non_
- if (fl_compare_strings(string, fl_status_string_less_than, length, fl_status_string_less_than_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_less_than, length, fl_status_string_less_than_length) == f_equal_to) {
*code = f_less_than;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_equal_to, length, fl_status_string_equal_to_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_equal_to, length, fl_status_string_equal_to_length) == f_equal_to) {
*code = f_equal_to;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_not_equal_to, length, fl_status_string_not_equal_to_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_not_equal_to, length, fl_status_string_not_equal_to_length) == f_equal_to) {
*code = f_not_equal_to;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_greater_than, length, fl_status_string_greater_than_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_greater_than, length, fl_status_string_greater_than_length) == f_equal_to) {
*code = f_greater_than;
return f_none;
}
#endif // _di_fll_status_non_
#ifndef _di_fll_status_access_denied_
- if (fl_compare_strings(string, fl_status_string_access_denied, length, fl_status_string_access_denied_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied, length, fl_status_string_access_denied_length) == f_equal_to) {
*code = f_access_denied;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_user, length, fl_status_string_access_denied_user_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_user, length, fl_status_string_access_denied_user_length) == f_equal_to) {
*code = f_access_denied_user;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_group, length, fl_status_string_access_denied_group_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_group, length, fl_status_string_access_denied_group_length) == f_equal_to) {
*code = f_access_denied_group;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_world, length, fl_status_string_access_denied_world_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_world, length, fl_status_string_access_denied_world_length) == f_equal_to) {
*code = f_access_denied_world;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_read, length, fl_status_string_access_denied_read_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_read, length, fl_status_string_access_denied_read_length) == f_equal_to) {
*code = f_access_denied_read;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_write, length, fl_status_string_access_denied_write_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_write, length, fl_status_string_access_denied_write_length) == f_equal_to) {
*code = f_access_denied_write;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_execute, length, fl_status_string_access_denied_execute_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_execute, length, fl_status_string_access_denied_execute_length) == f_equal_to) {
*code = f_access_denied_execute;
return f_none;
}
- if (fl_compare_strings(string, fl_status_string_access_denied_super, length, fl_status_string_access_denied_super_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_access_denied_super, length, fl_status_string_access_denied_super_length) == f_equal_to) {
*code = f_access_denied_super;
return f_none;
}
#endif // _di_fll_status_access_denied_
- if (fl_compare_strings(string, fl_status_string_last_status_code, length, fl_status_string_last_error_code_length) == f_equal_to) {
+ if (fl_string_compare(string, fl_status_string_last_status_code, length, fl_status_string_last_error_code_length) == f_equal_to) {
*code = f_last_status_code;
return f_none;
}
// fll-0 includes
#include <level_0/conversion.h>
#include <level_0/status.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/utf.h>
// fll-1 includes
-#include <level_1/strings.h>
+#include <level_1/string.h>
#include <level_1/status.h>
#ifdef __cplusplus
f_status
f_memory
f_conversion
-f_strings
+f_string
f_utf
-fl_strings
+fl_string
fl_status
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfl_status -lfl_strings -lf_memory -lf_conversion -lf_utf
+build_libraries_fll -lfl_status -lfl_string -lf_memory -lf_conversion -lf_utf
build_sources_library status.c
build_sources_program
build_sources_headers status.h
f_bool show_mangle = f_true;
f_bool show_ports = f_true;
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
+ f_string_dynamics arguments = f_string_dynamics_initialize;
f_s_int results = 0;
if (data->remaining.used > 0) {
f_string_length i = 0;
for (; i < data->devices.used; i++) {
- if (fl_compare_strings((f_string) firewall_device_loop, data->devices.array[i].string, firewall_device_loop_length + 1, data->devices.array[i].used) == f_equal_to) {
- f_dynamic_string swap_string = data->devices.array[i];
+ if (fl_string_compare((f_string) firewall_device_loop, data->devices.array[i].string, firewall_device_loop_length + 1, data->devices.array[i].used) == f_equal_to) {
+ f_string_dynamic swap_string = data->devices.array[i];
data->devices.used--;
for (; i < local.chain_objects.used; i++) {
length = local.chain_objects.array[i].stop - local.chain_objects.array[i].start + 1;
- if (!reserved.has_stop && fl_compare_strings((f_string) firewall_group_stop, local.buffer.string + local.chain_objects.array[i].start, firewall_group_stop_length, length) == f_equal_to) {
+ if (!reserved.has_stop && fl_string_compare((f_string) firewall_group_stop, local.buffer.string + local.chain_objects.array[i].start, firewall_group_stop_length, length) == f_equal_to) {
reserved.stop_at = i;
reserved.has_stop = f_true;
}
- else if (!reserved.has_lock && fl_compare_strings((f_string) firewall_group_lock, local.buffer.string + local.chain_objects.array[i].start, firewall_group_lock_length, length) == f_equal_to) {
+ else if (!reserved.has_lock && fl_string_compare((f_string) firewall_group_lock, local.buffer.string + local.chain_objects.array[i].start, firewall_group_lock_length, length) == f_equal_to) {
reserved.lock_at = i;
reserved.has_lock = f_true;
}
local.device = i;
{
- f_dynamic_string file_path = f_dynamic_string_initialize;
+ f_string_dynamic file_path = f_string_dynamic_initialize;
f_macro_string_dynamic_resize(status, file_path, network_path_length + data->devices.array[i].used + firewall_file_suffix_length + 1);
f_string_length i = 0;
while (i < firewall_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
f_macro_string_dynamics_delete(status, data->chains);
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
f_macro_string_dynamics_delete(status, data->devices);
fl_delete_color_context(status, data->context);
#include <level_0/console.h>
#include <level_0/file.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
#include <level_0/types_array.h>
#include <level_1/directory.h>
#include <level_1/file.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
typedef struct {
f_console_parameter parameters[firewall_total_parameters];
- f_dynamic_strings chains;
+ f_string_dynamics chains;
f_string_lengths remaining;
- f_dynamic_strings devices;
+ f_string_dynamics devices;
fl_color_context context;
} firewall_data;
#define firewall_data_initialize \
{ \
f_console_parameter_initialize_firewall, \
- f_dynamic_strings_initialize, \
+ f_string_dynamics_initialize, \
f_string_lengths_initialize, \
- f_dynamic_strings_initialize, \
+ f_string_dynamics_initialize, \
fl_color_context_initialize, \
}
#endif // _di_firewall_data_
f_status status2 = f_none;
f_string_length i = 0;
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
- f_dynamic_string argument = f_dynamic_string_initialize;
+ f_string_dynamics arguments = f_string_dynamics_initialize;
+ f_string_dynamic argument = f_string_dynamic_initialize;
f_s_int results = 0;
f_string_length length = 0;
f_bool invalid = f_false;
f_bool is_ip_list = f_false;
- f_dynamic_string ip_list = f_dynamic_string_initialize;
+ f_string_dynamic ip_list = f_string_dynamic_initialize;
// iptables command arguments
f_bool device_all = f_false;
f_string_length current_tool_length = firewall_tool_iptables_length;
f_string_length direction = firewall_direction_none_id;
- f_dynamic_string device = f_dynamic_string_initialize;
+ f_string_dynamic device = f_string_dynamic_initialize;
f_string_length action = firewall_action_append_id;
- f_dynamic_string protocol = f_dynamic_string_initialize;
+ f_string_dynamic protocol = f_string_dynamic_initialize;
if (local.is_global) {
device_all = f_true;
f_macro_string_dynamic_delete(status2, ip_list);
// process chain rule
- if (length >= firewall_chain_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_chain, length, firewall_chain_length) == f_equal_to) {
+ if (length >= firewall_chain_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_chain, length, firewall_chain_length) == f_equal_to) {
if (chain == firewall_chain_custom_id) {
// custom chains can only apply to themselves, so silently ignore chain commands specified within a custom chain.
fprintf(f_standard_warning, "WARNING: At line %i, the chain option is meaningle ss inside of a custom chain.", i);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
- else if (length >= firewall_chain_input_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_input, length, firewall_chain_input_length) == f_equal_to) {
+ else if (length >= firewall_chain_input_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_input, length, firewall_chain_input_length) == f_equal_to) {
chain = firewall_chain_input_id;
}
- else if (length >= firewall_chain_output_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_output, length, firewall_chain_output_length) == f_equal_to) {
+ else if (length >= firewall_chain_output_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_output, length, firewall_chain_output_length) == f_equal_to) {
chain = firewall_chain_output_id;
}
- else if (length >= firewall_chain_forward_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_forward, length, firewall_chain_forward_length) == f_equal_to) {
+ else if (length >= firewall_chain_forward_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_forward, length, firewall_chain_forward_length) == f_equal_to) {
chain = firewall_chain_forward_id;
}
- else if (length >= firewall_chain_postrouting_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_postrouting, length, firewall_chain_postrouting_length) == f_equal_to) {
+ else if (length >= firewall_chain_postrouting_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_postrouting, length, firewall_chain_postrouting_length) == f_equal_to) {
chain = firewall_chain_postrouting_id;
}
- else if (length >= firewall_chain_prerouting_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_prerouting, length, firewall_chain_prerouting_length) == f_equal_to) {
+ else if (length >= firewall_chain_prerouting_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_prerouting, length, firewall_chain_prerouting_length) == f_equal_to) {
chain = firewall_chain_prerouting_id;
}
- else if (length >= firewall_chain_none_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_none, length, firewall_chain_none_length) == f_equal_to) {
+ else if (length >= firewall_chain_none_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_chain_none, length, firewall_chain_none_length) == f_equal_to) {
chain = firewall_chain_none_id;
}
else {
if (!invalid) continue;
}
// process direction rule
- else if (length >= firewall_direction_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_direction, length, firewall_direction_length) == f_equal_to) {
+ else if (length >= firewall_direction_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_direction, length, firewall_direction_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
- else if (length >= firewall_direction_input_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_input, length, firewall_direction_input_length) == f_equal_to) {
+ else if (length >= firewall_direction_input_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_input, length, firewall_direction_input_length) == f_equal_to) {
direction = firewall_direction_input_id;
}
- else if (length >= firewall_direction_output_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_output, length, firewall_direction_output_length) == f_equal_to) {
+ else if (length >= firewall_direction_output_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_output, length, firewall_direction_output_length) == f_equal_to) {
direction = firewall_direction_output_id;
}
- else if (length >= firewall_direction_none_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_none, length, firewall_direction_none_length) == f_equal_to) {
+ else if (length >= firewall_direction_none_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_direction_none, length, firewall_direction_none_length) == f_equal_to) {
direction = firewall_direction_none_id;
}
else {
if (!invalid) continue;
}
// process device rule.
- else if (length >= firewall_device_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_device, length, firewall_device_length) == f_equal_to) {
+ else if (length >= firewall_device_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_device, length, firewall_device_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
- else if (length >= firewall_device_all_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_all, length, firewall_device_all_length) == f_equal_to) {
+ else if (length >= firewall_device_all_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_all, length, firewall_device_all_length) == f_equal_to) {
f_macro_string_dynamic_delete(status, device);
device_all = f_true;
continue;
}
- else if (length >= firewall_device_this_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_this, length, firewall_device_this_length) == f_equal_to) {
+ else if (length >= firewall_device_this_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_this, length, firewall_device_this_length) == f_equal_to) {
if (data.devices.array[local.device].used > 0) {
if (data.devices.array[local.device].used > device.size) {
f_macro_string_dynamic_resize(status, device, data.devices.array[local.device].used);
}
}
// process action rule.
- else if (length >= firewall_action_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_action, length, firewall_action_length) == f_equal_to) {
+ else if (length >= firewall_action_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_action, length, firewall_action_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
- else if (length >= firewall_action_append_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_append, length, firewall_action_append_length) == f_equal_to) {
+ else if (length >= firewall_action_append_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_append, length, firewall_action_append_length) == f_equal_to) {
action = firewall_action_append_id;
}
- else if (length >= firewall_action_insert_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_insert, length, firewall_action_insert_length) == f_equal_to) {
+ else if (length >= firewall_action_insert_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_insert, length, firewall_action_insert_length) == f_equal_to) {
action = firewall_action_insert_id;
}
- else if (length >= firewall_action_policy_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_policy, length, firewall_action_policy_length) == f_equal_to) {
+ else if (length >= firewall_action_policy_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_policy, length, firewall_action_policy_length) == f_equal_to) {
action = firewall_action_policy_id;
}
- else if (length >= firewall_action_none_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_none, length, firewall_action_none_length) == f_equal_to) {
+ else if (length >= firewall_action_none_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_action_none, length, firewall_action_none_length) == f_equal_to) {
action = firewall_action_none_id;
}
else {
if (!invalid) continue;
}
// process ip_list rule.
- else if (length >= firewall_ip_list_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_ip_list, length, firewall_ip_list_length) == f_equal_to) {
+ else if (length >= firewall_ip_list_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_ip_list, length, firewall_ip_list_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
is_ip_list = f_true;
- if (length >= firewall_ip_list_source_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_ip_list_source, length, firewall_ip_list_source_length) == f_equal_to) {
+ if (length >= firewall_ip_list_source_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_ip_list_source, length, firewall_ip_list_source_length) == f_equal_to) {
ip_list_direction = f_false;
}
- else if (length >= firewall_ip_list_destination_length && fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_ip_list_destination, length, firewall_ip_list_destination_length) == f_equal_to) {
+ else if (length >= firewall_ip_list_destination_length && fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_ip_list_destination, length, firewall_ip_list_destination_length) == f_equal_to) {
ip_list_direction = f_true;
}
else {
invalid = f_true;
}
}
- else if (length >= firewall_protocol_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_protocol, length, firewall_protocol_length) == f_equal_to) {
+ else if (length >= firewall_protocol_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_protocol, length, firewall_protocol_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
else {
- if (fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_protocol_none, length, firewall_protocol_none_length) == f_equal_to) {
+ if (fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_protocol_none, length, firewall_protocol_none_length) == f_equal_to) {
use_protocol = f_false;
}
else if (length > 0) {
}
}
// process tool rule.
- else if (length >= firewall_tool_length && fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_tool, length, firewall_tool_length) == f_equal_to) {
+ else if (length >= firewall_tool_length && fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_tool, length, firewall_tool_length) == f_equal_to) {
length = firewall_macro_structure_size(local.rule_contents.array[i], 0);
if (firewall_macro_rule_contents_has_incorrect_items(i, 1)) {
invalid = f_true;
}
else {
- if (fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_iptables, length, firewall_tool_iptables_length) == f_equal_to) {
+ if (fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_iptables, length, firewall_tool_iptables_length) == f_equal_to) {
tool = firewall_program_iptables;
current_tool = firewall_tool_iptables;
current_tool_length = firewall_tool_iptables_length;
repeat = 1;
}
- else if (fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_ip6tables, length, firewall_tool_ip6tables_length) == f_equal_to) {
+ else if (fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_ip6tables, length, firewall_tool_ip6tables_length) == f_equal_to) {
tool = firewall_program_ip6tables;
current_tool = firewall_tool_ip6tables;
current_tool_length = firewall_tool_ip6tables_length;
repeat = 1;
}
- else if (fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_ip46tables, length, firewall_tool_ip46tables_length) == f_equal_to) {
+ else if (fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_tool_ip46tables, length, firewall_tool_ip46tables_length) == f_equal_to) {
tool = firewall_program_ip46tables;
current_tool = firewall_tool_iptables;
current_tool_length = firewall_tool_iptables_length;
}
}
// process rule rule, if the remaining rule does not match as firewall_rule, then it is an invalid rule.
- else if (length < firewall_rule_length || fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_rule, length, firewall_rule_length) == f_not_equal_to) {
+ else if (length < firewall_rule_length || fl_string_compare(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_rule, length, firewall_rule_length) == f_not_equal_to) {
if (length > 0) {
fl_color_print_code(f_standard_warning, data.context.warning);
fprintf(f_standard_warning, "WARNING: At line %i, the object '", i);
// add the device if and only if a non-none direction is specified.
if (device.used > 0 && (direction == firewall_direction_input_id || direction == firewall_direction_output_id)) {
- if (length < firewall_device_all_length || fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_all, length, firewall_device_all_length) == f_not_equal_to) {
+ if (length < firewall_device_all_length || fl_string_compare(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_device_all, length, firewall_device_all_length) == f_not_equal_to) {
if (direction == firewall_direction_input_id) {
f_macro_string_dynamic_new(status, argument, firewall_device_input_command_length);
if (f_status_is_error(status)) break;
if (arguments.used > 1) {
if (is_ip_list) {
f_file file = f_file_initialize;
- f_dynamic_string file_path = f_dynamic_string_initialize;
- f_dynamic_string local_buffer = f_dynamic_string_initialize;
+ f_string_dynamic file_path = f_string_dynamic_initialize;
+ f_string_dynamic local_buffer = f_string_dynamic_initialize;
f_file_position file_position = f_file_position_initialize;
f_fss_objects basic_objects = f_fss_objects_initialize;
else {
f_string_length buffer_counter = 0;
f_string_length ip_length = 0;
- f_dynamic_string ip_list_action = f_dynamic_string_initialize;
+ f_string_dynamic ip_list_action = f_string_dynamic_initialize;
if (ip_list_direction) {
f_macro_string_dynamic_resize(status, ip_list_action, firewall_ip_list_destination_action_length);
f_macro_string_dynamic_delete(status2, ip_list_action);
}
else {
- f_dynamic_string ip_argument = f_dynamic_string_initialize;
+ f_string_dynamic ip_argument = f_string_dynamic_initialize;
firewall_macro_append_argument_to_arguments(status, arguments, ip_list_action)
if (f_status_is_error(status)) {
f_string_length length = 0;
f_string_location location = f_string_location_initialize;
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
+ f_string_dynamics arguments = f_string_dynamics_initialize;
- f_dynamic_string fixed_string = f_dynamic_string_initialize;
+ f_string_dynamic fixed_string = f_string_dynamic_initialize;
f_macro_types_array_lengths_delete(status, local->chain_ids);
f_macro_types_array_lengths_new(status, local->chain_ids, local->chain_objects.used);
location.stop = firewall_group_main_length - 1;
fixed_string.string = firewall_group_main;
fixed_string.used = firewall_group_main_length;
- if (fl_compare_dynamic_strings_partial(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
+ if (fl_string_dynamic_partial_compare(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
new_chain = f_false;
reserved->has_main = f_true;
reserved->main_at = i;
location.stop = firewall_group_stop_length - 1;
fixed_string.string = firewall_group_stop;
fixed_string.used = firewall_group_stop_length;
- if (fl_compare_dynamic_strings_partial(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
+ if (fl_string_dynamic_partial_compare(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
new_chain = f_false;
reserved->has_stop = f_true;
reserved->stop_at = i;
location.stop = firewall_group_lock_length - 1;
fixed_string.string = firewall_group_lock;
fixed_string.used = firewall_group_lock_length;
- if (fl_compare_dynamic_strings_partial(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
+ if (fl_string_dynamic_partial_compare(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
new_chain = f_false;
reserved->has_lock = f_true;
reserved->lock_at = i;
location.stop = firewall_group_lock_length - 1;
fixed_string.string = firewall_chain_none;
fixed_string.used = firewall_chain_none_length;
- if (fl_compare_dynamic_strings_partial(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
+ if (fl_string_dynamic_partial_compare(local->buffer, fixed_string, local->chain_objects.array[i], location) == f_equal_to) {
new_chain = f_false;
}
- f_clear_dynamic_string(fixed_string);
+ f_clear_string_dynamic(fixed_string);
if (new_chain) {
while (j < data->chains.used) {
location.start = 0;
location.stop = data->chains.array[j].used - 1;
- if (fl_compare_dynamic_strings_partial(local->buffer, data->chains.array[j], local->chain_objects.array[i], location) == f_equal_to) {
+ if (fl_string_dynamic_partial_compare(local->buffer, data->chains.array[j], local->chain_objects.array[i], location) == f_equal_to) {
new_chain = f_false;
local->chain_ids.array[i] = j;
j++;
} // while
- if (fl_compare_strings(arguments.array[1].string, firewall_chain_forward, arguments.array[1].used, firewall_chain_forward_length) == f_equal_to) {
+ if (fl_string_compare(arguments.array[1].string, firewall_chain_forward, arguments.array[1].used, firewall_chain_forward_length) == f_equal_to) {
create_chain = f_false;
}
- else if (fl_compare_strings(arguments.array[1].string, firewall_chain_input, arguments.array[1].used, firewall_chain_input_length) == f_equal_to) {
+ else if (fl_string_compare(arguments.array[1].string, firewall_chain_input, arguments.array[1].used, firewall_chain_input_length) == f_equal_to) {
create_chain = f_false;
}
- else if (fl_compare_strings(arguments.array[1].string, firewall_chain_output, arguments.array[1].used, firewall_chain_output_length) == f_equal_to) {
+ else if (fl_string_compare(arguments.array[1].string, firewall_chain_output, arguments.array[1].used, firewall_chain_output_length) == f_equal_to) {
create_chain = f_false;
}
- else if (fl_compare_strings(arguments.array[1].string, firewall_chain_postrouting, arguments.array[1].used, firewall_chain_postrouting_length) == f_equal_to) {
+ else if (fl_string_compare(arguments.array[1].string, firewall_chain_postrouting, arguments.array[1].used, firewall_chain_postrouting_length) == f_equal_to) {
create_chain = f_false;
}
- else if (fl_compare_strings(arguments.array[1].string, firewall_chain_prerouting, arguments.array[1].used, firewall_chain_prerouting_length) == f_equal_to) {
+ else if (fl_string_compare(arguments.array[1].string, firewall_chain_prerouting, arguments.array[1].used, firewall_chain_prerouting_length) == f_equal_to) {
create_chain = f_false;
}
f_status status = f_none;
for (f_string_length i = 0; i < 2; i++) {
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
- f_dynamic_string argument[1] = f_dynamic_string_initialize;
+ f_string_dynamics arguments = f_string_dynamics_initialize;
+ f_string_dynamic argument[1] = f_string_dynamic_initialize;
f_s_int results = 0;
argument[0].string = (f_string) "-F";
} // for
for (f_string_length i = 0; i < 2; i++) {
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
- f_dynamic_string argument[1] = f_dynamic_string_initialize;
+ f_string_dynamics arguments = f_string_dynamics_initialize;
+ f_string_dynamic argument[1] = f_string_dynamic_initialize;
f_s_int results = 0;
argument[0].string = (f_string) firewall_chain_delete_command;
f_status status = f_none;
for (f_string_length i = 0; i < 3; i++) {
- f_dynamic_strings arguments = f_dynamic_strings_initialize;
- f_dynamic_string argument[3];
+ f_string_dynamics arguments = f_string_dynamics_initialize;
+ f_string_dynamic argument[3];
arguments.array = argument;
arguments.used = 3;
f_array_length device;
- f_dynamic_string buffer;
+ f_string_dynamic buffer;
f_array_length chain;
f_array_lengths chain_ids;
f_fss_objects chain_objects;
f_false, \
f_file_position_initialize, \
0, \
- f_dynamic_string_initialize, \
+ f_string_dynamic_initialize, \
0, \
f_array_lengths_initialize, \
f_fss_objects_initialize, \
local.rule_contents.array[index].used <= 0 || local.rule_contents.array[index].used > total_items
// the buffer start to stop points are inclusive such that the size is ((stop - start) + 1).
-#define firewall_macro_dynamic_string_size(structure, index) \
+#define firewall_macro_string_dynamic_size(structure, index) \
(structure.string[index].stop - structure.string[index].start) + 1
// the buffer start to stop points are inclusive such that the size is ((stop - start) + 1).
arguments.array[arguments.used].used = argument.used; \
arguments.used++; \
\
- f_clear_dynamic_string(argument);
+ f_clear_string_dynamic(argument);
/**
* Perform commands.
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
f_utf
fl_colors
fl_file
fl_fss
fl_program
-fl_strings
+fl_string
fl_status
fll_colors
fll_execute
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_strings -lfl_file -lfl_console -lfl_fss -lfl_program -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_string -lfl_file -lfl_console -lfl_fss -lfl_program -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library firewall.c private-firewall.c
f_string_length size = 0;
for (; counter <= data->contents.array[current].array[0].stop; counter++) {
- if (data->buffer.string[counter] == f_eol) size++;
+ if (data->buffer.string[counter] == f_string_eol) size++;
} // for
// the last newline is never present
// explicit use of < instead of <= is done here so that the range.stop will always be accurate
for (; counter < data->contents.array[current].array[0].stop; counter++) {
- if (data->buffer.string[counter] == f_eol) {
+ if (data->buffer.string[counter] == f_string_eol) {
break;
}
} // for
break;
}
- if (data->buffer.string[counter] == f_eol) {
+ if (data->buffer.string[counter] == f_string_eol) {
position++;
}
} // for
if (range.start <= range.stop) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, range);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, range);
}
}
}
else {
if (data->contents.array[current].used > 0) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[0]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[0]);
fprintf(f_standard_output, "\n");
}
}
else {
for (; current < data->objects.used; current++) {
if (data->parameters[fss_basic_list_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_list_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
name_length = data->objects.array[current].stop - data->objects.array[current].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_basic_list_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_basic_list_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_basic_list_read_parameter_size].result == f_console_result_found) {
if (data->contents.array[current].used > 0) {
f_string_length size = 0;
for (; counter <= data->contents.array[current].array[0].stop; counter++) {
- if (data->buffer.string[counter] == f_eol) size++;
+ if (data->buffer.string[counter] == f_string_eol) size++;
} // for
// the last newline is never present
// explicit use of < instead of <= is done here so that the range.stop will always be accurate
for (; counter < data->contents.array[current].array[0].stop; counter++) {
- if (data->buffer.string[counter] == f_eol) {
+ if (data->buffer.string[counter] == f_string_eol) {
break;
}
} // for
break;
}
- if (data->buffer.string[counter] == f_eol) {
+ if (data->buffer.string[counter] == f_string_eol) {
position++;
}
} // for
if (range.start <= range.stop) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, range);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, range);
}
}
}
}
else {
if (data->contents.array[current].used > 0) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[0]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[0]);
fprintf(f_standard_output, "\n");
}
}
name_length = data->contents.array[current].array[0].stop - data->contents.array[current].array[0].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->contents.array[current].array[0].start, argv[data->parameters[fss_basic_list_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->contents.array[current].array[0].start, argv[data->parameters[fss_basic_list_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_basic_list_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_list_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
f_string_length i = 0;
while (i < fss_basic_list_read_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
f_macro_fss_contents_delete(status, data->contents);
f_macro_fss_objects_delete(status, data->objects);
f_macro_string_dynamic_delete(status, data->buffer);
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
#include <level_0/file.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/directory.h>
#include <level_1/file.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
typedef struct {
f_console_parameter parameters[fss_basic_list_read_total_parameters];
- f_dynamic_string buffer;
+ f_string_dynamic buffer;
f_fss_objects objects;
f_fss_contents contents;
f_file_position file_position;
#define fss_basic_list_read_data_initialize \
{ \
f_console_parameter_initialize_fss_basic_list_read, \
- f_dynamic_string_initialize, \
+ f_string_dynamic_initialize, \
f_fss_objects_initialize, \
f_fss_contents_initialize, \
f_file_position_initialize, \
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_strings -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_string -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_basic_list_read.c
f_array_length counter = 0;
f_bool object = (data->parameters[fss_basic_list_write_parameter_object].result == f_console_result_found);
- f_dynamic_string buffer = f_dynamic_string_initialize;
+ f_string_dynamic buffer = f_string_dynamic_initialize;
f_string_location location = f_string_location_initialize;
if (data->process_pipe) {
f_file file = f_file_initialize;
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
file.file = f_pipe;
f_macro_string_dynamic_delete(status, input);
}
else if (data->parameters[fss_basic_list_write_parameter_string].result == f_console_result_additional) {
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
input.string = argv[data->parameters[fss_basic_list_write_parameter_string].additional.array[0]];
input.used = strlen(input.string);
}
}
else {
- f_print_dynamic_string(f_standard_output, buffer);
+ f_print_string_dynamic(f_standard_output, buffer);
}
}
f_string_length i = 0;
while (i < fss_basic_list_write_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
return f_none;
#include <level_0/console.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/file.h>
#include <level_1/fss_basic_list.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_status -lfl_colors -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_status -lfl_string -lfl_colors -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_basic_list_write.c
for (; current < data->objects.used; current++) {
if (data->parameters[fss_basic_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_read_parameter_count].result == f_console_result_additional && found == target)) {
if (data->contents.array[current].used > 0) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[0]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[0]);
fprintf(f_standard_output, "\n");
}
else {
else {
for (; current < data->objects.used; current++) {
if (data->parameters[fss_basic_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
name_length = data->objects.array[current].stop - data->objects.array[current].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_basic_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_basic_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_basic_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_read_parameter_count].result == f_console_result_additional && found == target)) {
if (data->parameters[fss_basic_read_parameter_total].result == f_console_result_found) {
}
else {
if (data->contents.array[current].used > 0) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[0]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[0]);
fprintf(f_standard_output, "\n");
}
else {
name_length = data->contents.array[current].array[0].stop - data->contents.array[current].array[0].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->contents.array[current].array[0].start, argv[data->parameters[fss_basic_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->contents.array[current].array[0].start, argv[data->parameters[fss_basic_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_basic_read_parameter_count].result == f_console_result_none || (data->parameters[fss_basic_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
f_string_length i = 0;
while (i < fss_basic_read_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
f_macro_fss_contents_delete(status, data->contents);
f_macro_fss_objects_delete(status, data->objects);
f_macro_string_dynamic_delete(status, data->buffer);
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
#include <level_0/file.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/directory.h>
#include <level_1/file.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
typedef struct {
f_console_parameter parameters[fss_basic_read_total_parameters];
- f_dynamic_string buffer;
+ f_string_dynamic buffer;
f_fss_objects objects;
f_fss_contents contents;
f_file_position file_position;
#define fss_basic_read_data_initialize \
{ \
f_console_parameter_initialize_fss_basic_read, \
- f_dynamic_string_initialize, \
+ f_string_dynamic_initialize, \
f_fss_objects_initialize, \
f_fss_contents_initialize, \
f_file_position_initialize, \
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_strings -lfl_file -lfl_console -lfl_program -lfl_fss -lf_print -lf_file -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_string -lfl_file -lfl_console -lfl_program -lfl_fss -lf_print -lf_file -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_basic_read.c
f_array_length counter = 0;
f_bool object = (data->parameters[fss_basic_write_parameter_object].result == f_console_result_found);
- f_dynamic_string buffer = f_dynamic_string_initialize;
+ f_string_dynamic buffer = f_string_dynamic_initialize;
f_string_location location = f_string_location_initialize;
if (data->process_pipe) {
f_file file = f_file_initialize;
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
file.file = f_pipe;
f_macro_string_dynamic_delete(status, input);
}
else if (data->parameters[fss_basic_write_parameter_string].result == f_console_result_additional) {
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
input.string = argv[data->parameters[fss_basic_write_parameter_string].additional.array[0]];
input.used = strlen(input.string);
}
}
else {
- f_print_dynamic_string(f_standard_output, buffer);
+ f_print_string_dynamic(f_standard_output, buffer);
}
}
f_string_length i = 0;
while (i < fss_basic_write_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
return f_none;
#include <level_0/console.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/status.h>
#include <level_1/file.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_colors -lfl_status -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_colors -lfl_status -lfl_string -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_basic_write.c
for (; current < data->objects.used; current++) {
if (data->parameters[fss_extended_read_parameter_count].result == f_console_result_none || (data->parameters[fss_extended_read_parameter_count].result == f_console_result_additional && found == target)) {
if (data->contents.array[current].used > select) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[select]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[select]);
fprintf(f_standard_output, "\n");
}
else {
else {
for (; current < data->objects.used; current++) {
if (data->parameters[fss_extended_read_parameter_count].result == f_console_result_none || (data->parameters[fss_extended_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
name_length = data->objects.array[current].stop - data->objects.array[current].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_extended_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->objects.array[current].start, argv[data->parameters[fss_extended_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_extended_read_parameter_count].result == f_console_result_none || (data->parameters[fss_extended_read_parameter_count].result == f_console_result_additional && found == target)) {
if (data->parameters[fss_extended_read_parameter_total].result == f_console_result_found) {
}
else {
if (data->contents.array[current].used > select) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->contents.array[current].array[select]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[current].array[select]);
fprintf(f_standard_output, "\n");
}
else {
name_length = data->contents.array[current].array[select].stop - data->contents.array[current].array[select].start + 1;
if (name_length == argv_length) {
- if (fl_compare_strings(data->buffer.string + data->contents.array[current].array[select].start, argv[data->parameters[fss_extended_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
+ if (fl_string_compare(data->buffer.string + data->contents.array[current].array[select].start, argv[data->parameters[fss_extended_read_parameter_name].additional.array[0]], name_length, argv_length) == f_equal_to) {
if (data->parameters[fss_extended_read_parameter_count].result == f_console_result_none || (data->parameters[fss_extended_read_parameter_count].result == f_console_result_additional && found == target)) {
- f_print_partial_dynamic_string(f_standard_output, data->buffer, data->objects.array[current]);
+ f_print_string_dynamic_partial(f_standard_output, data->buffer, data->objects.array[current]);
fprintf(f_standard_output, "\n");
}
f_string_length i = 0;
while (i < fss_extended_read_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
f_macro_fss_contents_delete(status, data->contents);
f_macro_fss_objects_delete(status, data->objects);
f_macro_string_dynamic_delete(status, data->buffer);
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
#include <level_0/file.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/directory.h>
#include <level_1/file.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
typedef struct {
f_console_parameter parameters[fss_extended_read_total_parameters];
- f_dynamic_string buffer;
+ f_string_dynamic buffer;
f_fss_objects objects;
f_fss_contents contents;
f_file_position file_position;
#define fss_extended_read_data_initialize \
{ \
f_console_parameter_initialize_fss_extended_read, \
- f_dynamic_string_initialize, \
+ f_string_dynamic_initialize, \
f_fss_objects_initialize, \
f_fss_contents_initialize, \
f_file_position_initialize, \
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_strings -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_string -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_extended_read.c
f_array_length counter = 0;
f_bool object = (data->parameters[fss_extended_write_parameter_object].result == f_console_result_found);
- f_dynamic_string buffer = f_dynamic_string_initialize;
+ f_string_dynamic buffer = f_string_dynamic_initialize;
f_string_location location = f_string_location_initialize;
if (data->process_pipe) {
f_file file = f_file_initialize;
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
file.file = f_pipe;
f_macro_string_dynamic_delete(status, input);
}
else if (data->parameters[fss_extended_write_parameter_string].result == f_console_result_additional) {
- f_dynamic_string input = f_dynamic_string_initialize;
+ f_string_dynamic input = f_string_dynamic_initialize;
if (object) {
input.string = argv[data->parameters[fss_extended_write_parameter_string].additional.array[0]];
}
}
else {
- f_print_dynamic_string(f_standard_output, buffer);
+ f_print_string_dynamic(f_standard_output, buffer);
}
}
f_string_length i = 0;
while (i < fss_extended_write_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
return f_none;
#include <level_0/console.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/file.h>
#include <level_1/fss_extended.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_colors -lfl_status -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfl_fss -lfl_file -lfl_colors -lfl_status -lfl_string -lfl_console -lfl_program -lf_file -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_extended_write.c
f_string_length i = 0;
while (i < fss_status_code_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
return f_none;
#include <level_0/console.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/console.h>
#include <level_1/status.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_status
fll_execute
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_status -lfll_fss -lfl_fss -lfl_colors -lfl_status -lfl_console -lfl_program -lfl_strings -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_status -lfll_fss -lfl_fss -lfl_colors -lfl_status -lfl_string -lfl_console -lfl_program -lfl_string -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library fss_status_code.c
#include "private-init.h"
#ifndef _di_init_rule_buffer_
- f_return_status init_rule_buffer(const f_string filename, f_dynamic_string *buffer, f_fss_objects *objects, f_fss_contents *contents) {
+ f_return_status init_rule_buffer(const f_string filename, f_string_dynamic *buffer, f_fss_objects *objects, f_fss_contents *contents) {
f_file file = f_file_initialize;
f_status status = f_none;
f_file_position file_position = f_file_position_initialize;
if (kernel_command_line_string) {
f_status status_free = f_none;
- f_macro_strings_string_delete(status_free, kernel_command_line_string, string_length);
+ f_macro_string_delete(status_free, kernel_command_line_string, string_length);
}
}
#endif // _di_init_prepare_init_
#ifndef _di_init_process_main_rule_
- f_return_status init_process_main_rule(const init_argument argument, f_dynamic_string *buffer, init_data *data) {
+ f_return_status init_process_main_rule(const init_argument argument, f_string_dynamic *buffer, init_data *data) {
f_status status = f_none;
- f_dynamic_string buffer = f_dynamic_string_initialize;
+ f_string_dynamic buffer = f_string_dynamic_initialize;
f_string_location location = f_string_location_initialize;
f_fss_objects objects = f_fss_objects_initialize;
f_fss_contents contents = f_fss_contents_initialize;
#ifndef _di_init_rule_
// rule [directory] [filename (no-extension)] [require] [last] [asynchronous] = execute a rule located in [directory][filename].rule.
typedef struct {
- f_dynamic_string name;
- f_dynamic_string directory;
- f_dynamic_string file;
+ f_string_dynamic name;
+ f_string_dynamic directory;
+ f_string_dynamic file;
f_bool require;
f_bool asynchronous;
} init_rule;
#define init_rule_initialize \
{ \
- f_dynamic_string_initialize,
- f_dynamic_string_initialize,
- f_dynamic_string_initialize,
+ f_string_dynamic_initialize,
+ f_string_dynamic_initialize,
+ f_string_dynamic_initialize,
f_bool_initialize,
f_bool_initialize,
}
#ifndef _di_init_category_
// category [name] = execute rules in the specified list called [name].
typedef struct {
- f_dynamic_string name;
+ f_string_dynamic name;
init_rule last;
} init_category;
#define init_rule_initialize \
{ \
- f_dynamic_string_initialize,
+ f_string_dynamic_initialize,
init_rule_initialize,
}
#define init_path_processes_mounts init_paths_processes "mounts"
#ifndef _di_init_rule_buffer_
- f_return_status init_rule_buffer(const f_string filename, f_dynamic_string *buffer, f_fss_objects *objects, f_fss_contents *contents) f_gcc_attribute_visibility_internal;
+ f_return_status init_rule_buffer(const f_string filename, f_string_dynamic *buffer, f_fss_objects *objects, f_fss_contents *contents) f_gcc_attribute_visibility_internal;
#endif // _di_init_rule_buffer_
#ifndef _di_init_handler_child_services_
#endif // _di_init_prepare_init_
#ifndef _di_init_process_main_rule_
- f_return_status init_process_main_rule(const init_argument argument, f_dynamic_string *buffer, init_data *data) f_gcc_attribute_visibility_internal;
+ f_return_status init_process_main_rule(const init_argument argument, f_string_dynamic *buffer, init_data *data) f_gcc_attribute_visibility_internal;
#endif // _di_init_process_main_rule_
#ifdef __cplusplus
f_memory
f_pipe
f_print
-f_strings
+f_string
f_types
f_utf
fl_colors
fl_fss
fl_program
fl_status
-fl_strings
+fl_string
fll_colors
fll_execute
fll_fss
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_strings -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_fss -lfll_execute -lfl_directory -lfl_colors -lfl_status -lfl_string -lfl_file -lfl_console -lfl_program -lfl_fss -lf_pipe -lf_file -lf_print -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library init.c private-init.c
f_string_length i = 0;
while (i < status_code_total_parameters) {
- f_macro_strings_string_lengths_delete(status, data->parameters[i].additional);
+ f_macro_string_lengths_delete(status, data->parameters[i].additional);
i++;
} // while
- f_macro_strings_string_lengths_delete(status, data->remaining);
+ f_macro_string_lengths_delete(status, data->remaining);
fl_delete_color_context(status, data->context);
return f_none;
#include <level_0/conversion.h>
#include <level_0/pipe.h>
#include <level_0/print.h>
-#include <level_0/strings.h>
+#include <level_0/string.h>
#include <level_0/types.h>
// fll-1 includes
#include <level_1/console.h>
#include <level_1/status.h>
#include <level_1/program.h>
-#include <level_1/strings.h>
+#include <level_1/string.h>
// fll-2 includes
#include <level_2/colors.h>
f_status
f_pipe
f_print
-f_strings
+f_string
f_types
fl_colors
fl_console
fl_file
fl_program
-fl_strings
+fl_string
fl_status
fll_colors
fll_status
build_compiler gcc
build_linker ar
build_libraries -lc
-build_libraries_fll -lfll_colors -lfll_status -lfl_colors -lfl_status -lfl_console -lfl_program -lfl_strings -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
+build_libraries_fll -lfll_colors -lfll_status -lfl_colors -lfl_status -lfl_console -lfl_program -lfl_string -lf_print -lf_pipe -lf_conversion -lf_console -lf_memory -lf_utf
#build_libraries_fll-level -lfll_2 -lfll_1 -lfll_0
#build_libraries_fll-monolithic -lfll
build_sources_library status_code.c