This makes the use of triples easier.
for (f_array_length_t i = length; i < triples->size; ++i) {
- status = private_f_string_dynamic_adjust(0, &triples->array[i].one);
+ status = private_f_string_dynamic_adjust(0, &triples->array[i].a);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamic_adjust(0, &triples->array[i].two);
+ status = private_f_string_dynamic_adjust(0, &triples->array[i].b);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamic_adjust(0, &triples->array[i].three);
+ status = private_f_string_dynamic_adjust(0, &triples->array[i].c);
if (F_status_is_error(status)) return status;
} // for
for (f_array_length_t i = length; i < triples->size; ++i) {
- status = private_f_string_dynamic_resize(0, &triples->array[i].one);
+ status = private_f_string_dynamic_resize(0, &triples->array[i].a);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamic_resize(0, &triples->array[i].two);
+ status = private_f_string_dynamic_resize(0, &triples->array[i].b);
if (F_status_is_error(status)) return status;
- status = private_f_string_dynamic_resize(0, &triples->array[i].three);
+ status = private_f_string_dynamic_resize(0, &triples->array[i].c);
if (F_status_is_error(status)) return status;
} // for
for (f_array_length_t i = 0; i < source.used; ++i, ++destination->used) {
- destination->array[destination->used].one.used = 0;
- destination->array[destination->used].two.used = 0;
- destination->array[destination->used].three.used = 0;
+ destination->array[destination->used].a.used = 0;
+ destination->array[destination->used].b.used = 0;
+ destination->array[destination->used].c.used = 0;
- if (source.array[i].one.used) {
- status = private_f_string_append(source.array[i].one.string, source.array[i].one.used, &destination->array[destination->used].one);
+ if (source.array[i].a.used) {
+ status = private_f_string_append(source.array[i].a.string, source.array[i].a.used, &destination->array[destination->used].a);
if (F_status_is_error(status)) return status;
}
- if (source.array[i].two.used) {
- status = private_f_string_append(source.array[i].two.string, source.array[i].two.used, &destination->array[destination->used].two);
+ if (source.array[i].b.used) {
+ status = private_f_string_append(source.array[i].b.string, source.array[i].b.used, &destination->array[destination->used].b);
if (F_status_is_error(status)) return status;
}
- if (source.array[i].three.used) {
- status = private_f_string_append(source.array[i].three.string, source.array[i].three.used, &destination->array[destination->used].three);
+ if (source.array[i].c.used) {
+ status = private_f_string_append(source.array[i].c.string, source.array[i].c.used, &destination->array[destination->used].c);
if (F_status_is_error(status)) return status;
}
} // for
/**
* A string triple consisting of a set of three strings.
*
- * one: A string representing the first string in the triple.
- * two: A string representing the second string in the triple.
- * three: A string representing the third string in the triple.
+ * a: A string representing the first string in the triple.
+ * b: A string representing the second string in the triple.
+ * c: A string representing the third string in the triple.
*/
#ifndef _di_f_string_triple_t_
typedef struct {
- f_string_dynamic_t one;
- f_string_dynamic_t two;
- f_string_dynamic_t three;
+ f_string_dynamic_t a;
+ f_string_dynamic_t b;
+ f_string_dynamic_t c;
} f_string_triple_t;
#define f_string_triple_t_initialize { f_string_dynamic_t_initialize, f_string_dynamic_t_initialize, f_string_dynamic_t_initialize }
#define macro_f_string_triple_t_clear(triple) \
- triple.one.array = 0; \
- triple.one.size = 0; \
- triple.one.used = 0; \
- triple.two.array = 0; \
- triple.two.size = 0; \
- triple.two.used = 0; \
- triple.three.array = 0; \
- triple.three.size = 0; \
- triple.three.used = 0;
+ triple.a.array = 0; \
+ triple.a.size = 0; \
+ triple.a.used = 0; \
+ triple.b.array = 0; \
+ triple.b.size = 0; \
+ triple.b.used = 0; \
+ triple.c.array = 0; \
+ triple.c.size = 0; \
+ triple.c.used = 0;
#define macro_f_string_triple_t_delete_simple(triple) \
- macro_f_string_dynamic_t_delete_simple(triple.one) \
- macro_f_string_dynamic_t_delete_simple(triple.two) \
- macro_f_string_dynamic_t_delete_simple(triple.three)
+ macro_f_string_dynamic_t_delete_simple(triple.a) \
+ macro_f_string_dynamic_t_delete_simple(triple.b) \
+ macro_f_string_dynamic_t_delete_simple(triple.c)
#define macro_f_string_triple_t_destroy_simple(triple) \
- macro_f_string_dynamic_t_destroy_simple(triple.one) \
- macro_f_string_dynamic_t_destroy_simple(triple.two) \
- macro_f_string_dynamic_t_destroy_simple(triple.three)
+ macro_f_string_dynamic_t_destroy_simple(triple.a) \
+ macro_f_string_dynamic_t_destroy_simple(triple.b) \
+ macro_f_string_dynamic_t_destroy_simple(triple.c)
#endif // _di_f_string_triple_t_
/**
*
* Provides UTF-8 capabilities.
*
- * @todo consider is_graph() functions being their own data set (review unicode to see which of checking only for graph() vs checking for all not-graph will be the smaller set).
- *
* Identifiers:
* - UTF_8-1: 1000 0000
* - UTF_8-2: 1100 0000
for (f_array_length_t i = length; i < triples->size; ++i) {
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].one);
+ status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].a);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].two);
+ status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].b);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].three);
+ status = private_f_utf_string_dynamic_adjust(0, &triples->array[i].c);
if (F_status_is_error(status)) return status;
} // for
for (f_array_length_t i = length; i < triples->size; ++i) {
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].one);
+ status = private_f_utf_string_dynamic_resize(0, &triples->array[i].a);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].two);
+ status = private_f_utf_string_dynamic_resize(0, &triples->array[i].b);
if (F_status_is_error(status)) return status;
- status = private_f_utf_string_dynamic_resize(0, &triples->array[i].three);
+ status = private_f_utf_string_dynamic_resize(0, &triples->array[i].c);
if (F_status_is_error(status)) return status;
} // for
for (f_array_length_t i = 0; i < source.used; ++i, ++destination->used) {
- destination->array[destination->used].one.used = 0;
- destination->array[destination->used].two.used = 0;
- destination->array[destination->used].three.used = 0;
+ destination->array[destination->used].a.used = 0;
+ destination->array[destination->used].b.used = 0;
+ destination->array[destination->used].c.used = 0;
- if (source.array[i].one.used) {
- status = private_f_utf_string_append(source.array[i].one.string, source.array[i].one.used, &destination->array[destination->used].one);
+ if (source.array[i].a.used) {
+ status = private_f_utf_string_append(source.array[i].a.string, source.array[i].a.used, &destination->array[destination->used].a);
if (F_status_is_error(status)) return status;
}
- if (source.array[i].two.used) {
- status = private_f_utf_string_append(source.array[i].two.string, source.array[i].two.used, &destination->array[destination->used].two);
+ if (source.array[i].b.used) {
+ status = private_f_utf_string_append(source.array[i].b.string, source.array[i].b.used, &destination->array[destination->used].b);
if (F_status_is_error(status)) return status;
}
- if (source.array[i].three.used) {
- status = private_f_utf_string_append(source.array[i].three.string, source.array[i].three.used, &destination->array[destination->used].three);
+ if (source.array[i].c.used) {
+ status = private_f_utf_string_append(source.array[i].c.string, source.array[i].c.used, &destination->array[destination->used].c);
if (F_status_is_error(status)) return status;
}
} // for
/**
* A string triple consisting of a set of three strings.
*
- * one: A string representing the first string in the triple.
- * two: A string representing the second string in the triple.
- * three: A string representing the third string in the triple.
+ * a: A string representing the first string in the triple.
+ * b: A string representing the second string in the triple.
+ * c: A string representing the third string in the triple.
*/
#ifndef _di_f_utf_string_triple_t_
typedef struct {
- f_utf_string_dynamic_t one;
- f_utf_string_dynamic_t two;
- f_utf_string_dynamic_t three;
+ f_utf_string_dynamic_t a;
+ f_utf_string_dynamic_t b;
+ f_utf_string_dynamic_t c;
} f_utf_string_triple_t;
#define f_utf_string_triple_t_initialize { f_utf_string_dynamic_t_initialize, f_utf_string_dynamic_t_initialize, f_utf_string_dynamic_t_initialize }
#define macro_f_utf_string_triple_t_clear(triple) \
- triple.one.array = 0; \
- triple.one.size = 0; \
- triple.one.used = 0; \
- triple.two.array = 0; \
- triple.two.size = 0; \
- triple.two.used = 0; \
- triple.three.array = 0; \
- triple.three.size = 0; \
- triple.three.used = 0;
+ triple.a.array = 0; \
+ triple.a.size = 0; \
+ triple.a.used = 0; \
+ triple.b.array = 0; \
+ triple.b.size = 0; \
+ triple.b.used = 0; \
+ triple.c.array = 0; \
+ triple.c.size = 0; \
+ triple.c.used = 0;
#define macro_f_utf_string_triple_t_delete_simple(triple) \
- macro_f_utf_string_dynamic_t_delete_simple(triple.one) \
- macro_f_utf_string_dynamic_t_delete_simple(triple.two) \
- macro_f_utf_string_dynamic_t_delete_simple(triple.three)
+ macro_f_utf_string_dynamic_t_delete_simple(triple.a) \
+ macro_f_utf_string_dynamic_t_delete_simple(triple.b) \
+ macro_f_utf_string_dynamic_t_delete_simple(triple.c)
#define macro_f_utf_string_triple_t_destroy_simple(triple) \
- macro_f_utf_string_dynamic_t_destroy_simple(triple.one) \
- macro_f_utf_string_dynamic_t_destroy_simple(triple.two) \
- macro_f_utf_string_dynamic_t_destroy_simple(triple.three)
+ macro_f_utf_string_dynamic_t_destroy_simple(triple.a) \
+ macro_f_utf_string_dynamic_t_destroy_simple(triple.b) \
+ macro_f_utf_string_dynamic_t_destroy_simple(triple.c)
#endif // _di_f_utf_string_triple_t_
/**