17 #ifndef STRING_ARRAY_H_ 18 #define STRING_ARRAY_H_ 28 #define DEFAULT_INCREMENT_VALUE 5 146 #endif //STRING_ARRAY_H_
mcl_size_t total_length
Total length of string array.
mcl_size_t count
Item count.
mcl_size_t index
Item index.
void string_array_destroy(string_array_t **array)
Destroys the string array handle.
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
string_t * string_array_get(string_array_t *array, mcl_size_t index)
To get the string_t string object at a specified index.
E_MCL_ERROR_CODE string_array_initialize(mcl_size_t count, string_array_t **array)
String array initialize method.
string_array_item_t * items
Item of string array.
mcl_bool_t destroy
To decide whether to call string_destroy() for specific item in the array when destroying the string ...
E_MCL_ERROR_CODE string_array_set(string_array_t *array, mcl_size_t index, string_t *string)
To set the string item at a specified index in the string array.
E_MCL_ERROR_CODE string_array_set_increment(string_array_t *array, mcl_size_t increment_value)
Sets the increment value of the array.
string_t * string
String object.
String type module header file.
string_t * string_array_to_string(string_array_t *array)
To concatenate the strings in the array.
E_MCL_ERROR_CODE string_array_add(string_array_t *array, string_t *string, mcl_bool_t destroy)
Adds an string_t string object into the array.
mcl_size_t increment_value
Increment value.