I originally created f_string_eos, so that it could be potentially changed.
In the case of basic strings, using 0 is simpler, more consistent, and safer.
register f_string_length i = 0;
for (; i < length; i++) {
- if (string[i] != f_string_eos) {
+ if (string[i] != 0) {
if (fputc(string[i], output) == 0) {
return f_status_set_error(f_error_output);
}
register f_string_length i = 0;
for (; i < buffer.used; i++) {
- if (buffer.string[i] != f_string_eos) {
+ if (buffer.string[i] != 0) {
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_error_output);
}
register f_string_length i = range.start;
for (; i <= range.stop; i++) {
- if (buffer.string[i] != f_string_eos) {
+ if (buffer.string[i] != 0) {
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_error_output);
}
#endif // _en_BUG_strnlen_
/**
- * Define the end of string character.
- */
-#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.
*/
typedef char *f_string;
#define f_string_max_size f_type_number_size_unsigned
- #define f_string_initialize f_string_eos
+ #define f_string_initialize 0
#define f_macro_string_new(status, string, length) status = f_memory_new((void **) & string, sizeof(f_string), length)
#define f_macro_string_delete(status, string, length) status = f_memory_delete((void **) & string, sizeof(f_string), length)
buffer->used += string_size;
// do not forget the EOS
- buffer->string[buffer->used] = f_string_eos;
+ buffer->string[buffer->used] = 0;
return f_none;
}
}
// handle quote support
- int8_t quoted = f_string_eos;
+ int8_t quoted = 0;
// identify where the object begins
if (buffer->string[location->start] == f_fss_delimit_slash) {
}
// identify where the object ends
- if (quoted == f_string_eos) {
+ if (quoted == 0) {
status = f_none;
while (buffer->string[location->start] == f_fss_delimit_placeholder || (status = fl_fss_is_space(*buffer, *location)) == f_false) {
status = fl_fss_increment_buffer(*buffer, location, 1);
}
// handle quote support
- int8_t quoted = f_string_eos;
+ int8_t quoted = 0;
// identify where the object begins
if (buffer->string[location->start] == f_fss_delimit_slash) {
}
// identify where the object ends
- if (quoted == f_string_eos) {
+ if (quoted == 0) {
status = f_none;
while (buffer->string[location->start] == f_fss_delimit_placeholder || (status = fl_fss_is_graph(*buffer, *location)) == f_true) {
status = fl_fss_increment_buffer(*buffer, location, 1);
}
bool has_delimit = f_false;
- int8_t quoted = f_string_eos;
+ int8_t quoted = 0;
bool continue_main_loop = f_false;
f_array_length already_used = found->used;
while (location->start <= location->stop && location->start < buffer->used) {
- quoted = f_string_eos;
+ quoted = 0;
if (found->used >= found->size) {
f_macro_fss_content_resize(status, (*found), found->size + f_fss_default_allocation_step);
}
// identify where the content ends
- if (quoted == f_string_eos) {
+ if (quoted == 0) {
status = f_none;
while (buffer->string[location->start] == f_fss_delimit_placeholder || (status = fl_fss_is_graph(*buffer, *location)) == f_true) {
status = fl_fss_increment_buffer(*buffer, location, 1);
#endif // _di_level_1_parameter_checking_
f_status status = f_none;
- int8_t quoted = f_string_eos;
+ int8_t quoted = 0;
f_string_range buffer_position = f_string_range_initialize;
f_string_length start_position = 0;
if (f_status_is_error(status)) return status;
} // while
- if (quoted != f_string_eos) {
+ if (quoted != 0) {
while (location->start <= location->stop && location->start < content.used) {
if (content.string[location->start] == f_fss_delimit_slash) {
f_string_length slash_count = 1;
} // for
for (; i < length; i += f_macro_utf_byte_width(string[i])) {
- if (string[i] == f_string_eos) continue;
+ if (string[i] == 0) continue;
width_max = (length - i) + 1;
status = f_utf_is_whitespace(string + i, width_max);
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i < j; i++) {
- if (string[i] == f_string_eos) continue;
+ if (string[i] == 0) continue;
if (fputc(string[i], output) == 0) {
return f_status_set_error(f_error_output);
} // for
for (; i < buffer.used; i += f_macro_utf_byte_width(buffer.string[i])) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
width_max = (buffer.used - i) + 1;
status = f_utf_is_whitespace(buffer.string + i, width_max);
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i < j; i++) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_error_output);
} // for
for (uint8_t width_i = f_macro_utf_byte_width(buffer.string[i]); i <= range.stop; i += width_i) {
- if (buffer.string[i] == f_string_eos) {
+ if (buffer.string[i] == 0) {
width_i = 1;
continue;
}
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i <= j; i += width_i) {
- if (buffer.string[i] == f_string_eos) {
+ if (buffer.string[i] == 0) {
width_i = 1;
continue;
}
} // for
for (; i < length; i++) {
- if (string[i] == f_string_eos) continue;
+ if (string[i] == 0) continue;
status = f_utf_character_is_whitespace(string[i]);
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i < j; i++) {
- if (string[i] == f_string_eos) continue;
+ if (string[i] == 0) continue;
if (fputc(string[i], output) == 0) {
return f_status_set_error(f_error_output);
} // for
for (; i < buffer.used; i++) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
status = f_utf_character_is_whitespace(buffer.string[i]);
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i < j; i++) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_error_output);
} // for
for (; i <= range.stop; i++) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
status = f_utf_character_is_whitespace(buffer.string[i]);
// all whitespaces found so far must be printed when a non-whitespace is found.
if (status == f_false) {
for (; i <= j; i++) {
- if (buffer.string[i] == f_string_eos) continue;
+ if (buffer.string[i] == 0) continue;
if (fputc(buffer.string[i], output) == 0) {
return f_status_set_error(f_error_output);
break;
}
- if (source[i] == f_string_eos) {
+ if (source[i] == 0) {
if (i > 0) {
if (i > first) {
f_string_length size = i - first;
}
}
- while (i + 1 < length && source[i + 1] == f_string_eos) {
+ while (i + 1 < length && source[i + 1] == 0) {
i++;
} // while
for (; i1 < stop1 && i2 < stop2; i1++, i2++) {
// skip past NULL in string1.
- while (i1 < stop1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < stop1 && string1[i1] == 0) i1++;
if (i1 == stop1) break;
// skip past NULL in string2.
- while (i2 < stop2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < stop2 && string2[i2] == 0) i2++;
if (i2 == stop2) break;
if (string1[i1] != string2[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
for (; i1 < stop1; i1++) {
- if (string1[i1] != f_string_eos) return f_not_equal_to;
+ if (string1[i1] != 0) return f_not_equal_to;
} // for
for (; i2 < stop2; i2++) {
- if (string2[i2] != f_string_eos) return f_not_equal_to;
+ if (string2[i2] != 0) return f_not_equal_to;
} // for
return f_equal_to;
// skip past leading whitespace in string1.
for (; i1 < stop1; i1 += width) {
// skip past NULL in string1.
- while (i1 < stop1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < stop1 && string1[i1] == 0) i1++;
if (i1 == stop1) break;
width_max = (stop1 - i1) + 1;
// skip past leading whitespace in string2.
for (; i2 < stop2; i2 += width) {
// skip past NULL in string2.
- while (i2 < stop2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < stop2 && string2[i2] == 0) i2++;
if (i2 == stop2) break;
width_max = (stop2 - i2) + 1;
// determine where the last non-whitespace is in string1.
for (f_string_length j = i1; j < stop1; j += width) {
// skip past NULL in string1.
- while (j < stop1 && string1[j] == f_string_eos) j++;
+ while (j < stop1 && string1[j] == 0) j++;
if (j == stop1) break;
width_max = (stop1 - j) + 1;
// determine where the last non-whitespace is in string2.
for (f_string_length j = i2; j < stop2; j += width) {
// skip past NULL in string2.
- while (j < stop2 && string2[j] == f_string_eos) j++;
+ while (j < stop2 && string2[j] == 0) j++;
if (j == stop2) break;
width_max = (stop2 - j) + 1;
for (; i1 < last1 && i2 < last2; i1++, i2++) {
// skip past NULL in string1.
- while (i1 < last1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < last1 && string1[i1] == 0) i1++;
if (i1 == last1) break;
// skip past NULL in string2.
- while (i2 < last2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < last2 && string2[i2] == 0) i2++;
if (i2 == last2) break;
if (string1[i1] != string2[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
while (i1 < last1) {
- if (string1[i1] != f_string_eos) return f_not_equal_to;
+ if (string1[i1] != 0) return f_not_equal_to;
i1++;
} // while
while (i2 < last2) {
- if (string2[i2] != f_string_eos) return f_not_equal_to;
+ if (string2[i2] != 0) return f_not_equal_to;
i2++;
} // while
break;
}
- if (source[i] == f_string_eos) {
+ if (source[i] == 0) {
if (i > 0) {
if (i > first) {
f_string_length size = i - first;
}
}
- while (i + 1 < length && source[i + 1] == f_string_eos) {
+ while (i + 1 < length && source[i + 1] == 0) {
i++;
} // while
// skip past leading whitespace.
for (; *start <= *stop; *start += width) {
// skip past NULL.
- while (*start < *stop && source[*start] == f_string_eos) (*start)++;
+ while (*start < *stop && source[*start] == 0) (*start)++;
if (*start > *stop) break;
status = f_utf_is_whitespace(source + *start, (*stop - *start) + 1);
for (; *stop > *start; (*stop)--) {
// skip past NULL.
- while (*stop > *start && source[*stop] == f_string_eos) (*stop)--;
+ while (*stop > *start && source[*stop] == 0) (*stop)--;
- if (source[*stop] == f_string_eos) continue;
+ if (source[*stop] == 0) continue;
if (*stop == *start) break;
// each UTF-8 character of width 1 is an incomplete part.
f_string_length j = 1;
while (i <= length && j <= destination->used) {
- if (source[length - i] == f_string_eos) {
+ if (source[length - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 1;
while (i <= length && j <= destination->used) {
- if (source[length - i] == f_string_eos) {
+ if (source[length - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 1;
while (i <= source.used && j <= destination->used) {
- if (source.string[source.used - i] == f_string_eos) {
+ if (source.string[source.used - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 1;
while (i <= source.used && j <= destination->used) {
- if (source.string[source.used - i] == f_string_eos) {
+ if (source.string[source.used - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 1;
while (i <= length && j <= destination->used) {
- if (source.string[range.stop - i] == f_string_eos) {
+ if (source.string[range.stop - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 1;
while (i <= length && j <= destination->used) {
- if (source.string[range.stop - i] == f_string_eos) {
+ if (source.string[range.stop - i] == 0) {
i++;
continue;
}
- if (destination->string[destination->used - j] == f_string_eos) {
+ if (destination->string[destination->used - j] == 0) {
j++;
continue;
}
f_string_length j = 0;
while (i < length && j < destination->used) {
- if (source.string[i + range.start] == f_string_eos) {
+ if (source.string[i + range.start] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
f_string_length j = 0;
while (i < length && j < destination->used) {
- if (source.string[i + range.start] == f_string_eos) {
+ if (source.string[i + range.start] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
f_string_length j = 0;
while (i < source.used && j < destination->used) {
- if (source.string[i] == f_string_eos) {
+ if (source.string[i] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
f_string_length j = 0;
while (i < source.used && j < destination->used) {
- if (source.string[i] == f_string_eos) {
+ if (source.string[i] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
if (destination->used > destination->size) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- if (destination->used > 0 && destination->string[destination->used - 1] == f_string_eos) return f_none;
+ if (destination->used > 0 && destination->string[destination->used - 1] == 0) return f_none;
if (destination->used + 1 > f_string_max_size) return f_status_set_error(f_string_too_large);
if (f_status_is_error(status)) return status;
}
- destination->string[destination->used] = f_string_eos;
+ destination->string[destination->used] = 0;
destination->used = total;
return f_none;
f_string_length j = 0;
while (i < length && j < destination->used) {
- if (source[i] == f_string_eos) {
+ if (source[i] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
f_string_length j = 0;
while (i < length && j < destination->used) {
- if (source[i] == f_string_eos) {
+ if (source[i] == 0) {
i++;
continue;
}
- if (destination->string[j] == f_string_eos) {
+ if (destination->string[j] == 0) {
j++;
continue;
}
for (; i1 < stop1 && i2 < stop2; i1++, i2++) {
// skip past NULL in string1.
- while (i1 < stop1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < stop1 && string1[i1] == 0) i1++;
if (i1 == stop1) break;
// skip past NULL in string2.
- while (i2 < stop2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < stop2 && string2[i2] == 0) i2++;
if (i2 == stop2) break;
if (string1[i1] != string2[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
for (; i1 < stop1; i1++) {
- if (string1[i1] != f_string_eos) return f_not_equal_to;
+ if (string1[i1] != 0) return f_not_equal_to;
} // for
for (; i2 < stop2; i2++) {
- if (string2[i2] != f_string_eos) return f_not_equal_to;
+ if (string2[i2] != 0) return f_not_equal_to;
} // for
return f_equal_to;
// skip past leading whitespace in string1.
for (; i1 < stop1; i1++) {
// skip past NULL in string1.
- while (i1 < stop1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < stop1 && string1[i1] == 0) i1++;
if (i1 == stop1) break;
status = f_utf_character_is_whitespace(string1[i1]);
// skip past leading whitespace in string2.
for (; i2 < stop2; i2++) {
// skip past NULL in string2.
- while (i2 < stop2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < stop2 && string2[i2] == 0) i2++;
if (i2 == stop2) break;
status = f_utf_character_is_whitespace(string2[i2]);
// determine where the last non-whitespace is in string1.
for (f_utf_string_length j = i1; j < stop1; j++) {
// skip past NULL in string1.
- while (j < stop1 && string1[j] == f_string_eos) j++;
+ while (j < stop1 && string1[j] == 0) j++;
if (j == stop1) break;
status = f_utf_character_is_whitespace(string1[j]);
// determine where the last non-whitespace is in string2.
for (f_utf_string_length j = i2; j < stop2; j++) {
// skip past NULL in string2.
- while (j < stop2 && string2[j] == f_string_eos) j++;
+ while (j < stop2 && string2[j] == 0) j++;
if (j == stop2) break;
status = f_utf_character_is_whitespace(string2[j]);
for (; i1 < last1 && i2 < last2; i1++, i2++) {
// skip past NULL in string1.
- while (i1 < last1 && string1[i1] == f_string_eos) i1++;
+ while (i1 < last1 && string1[i1] == 0) i1++;
if (i1 == last1) break;
// skip past NULL in string2.
- while (i2 < last2 && string2[i2] == f_string_eos) i2++;
+ while (i2 < last2 && string2[i2] == 0) i2++;
if (i2 == last2) break;
if (string1[i1] != string2[i2]) return f_not_equal_to;
// only return f_equal_to if all remaining characters are NULL.
for (; i1 < last1; i1++) {
- if (string1[i1] != f_string_eos) return f_not_equal_to;
+ if (string1[i1] != 0) return f_not_equal_to;
} // for
for (; i2 < last2; i2++) {
- if (string2[i2] != f_string_eos) return f_not_equal_to;
+ if (string2[i2] != 0) return f_not_equal_to;
} // for
return f_equal_to;
// skip past leading whitespace.
for (; *start <= *stop; (*start)++) {
// skip past NULL.
- while (*start < *stop && source[*start] == f_string_eos) (*start)++;
+ while (*start < *stop && source[*start] == 0) (*start)++;
if (*start > *stop) break;
status = f_utf_character_is_whitespace(source[*start]);
for (; *stop > *start; (*stop)--) {
// skip past NULL.
- while (*stop > *start && source[*stop] == f_string_eos) (*stop)--;
+ while (*stop > *start && source[*stop] == 0) (*stop)--;
- if (source[*stop] == f_string_eos) continue;
+ if (source[*stop] == 0) continue;
if (*stop == *start) break;
status = f_utf_character_is_whitespace(source[*stop]);
}
if (name_size == 0) {
- fixed_arguments[0] = f_string_eos;
+ fixed_arguments[0] = 0;
}
else {
fixed_arguments[0] = program_name;
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = 0;
} // for
// insert the required array terminated
}
if (name_size == 0) {
- fixed_arguments[0] = f_string_eos;
+ fixed_arguments[0] = 0;
}
else {
fixed_arguments[0] = program_name;
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = 0;
} // for
// insert the required array terminated
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = 0;
} // for
// insert the required array terminated
}
memcpy(fixed_arguments[i + 1], arguments.array[i].string, arguments.array[i].used);
- fixed_arguments[i + 1][arguments.array[i].used] = f_string_eos;
+ fixed_arguments[i + 1][arguments.array[i].used] = 0;
} // for
// insert the required array terminated
f_string_length total = 1;
for (f_string_length j = data->contents.array[i].array[0].start; j <= data->contents.array[i].array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
total++;
if (line == 0) {
for (; i <= data->contents.array[i].array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);
break;
f_string_length line_current = 0;
for (; i <= data->contents.array[i].array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
line_current++;
i++;
for (; i <= data->contents.array[i].array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);
break;
}
for (f_string_length j = data->contents.array[i].array[0].start; j <= data->contents.array[i].array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
total++;
if (j > data->contents.array[i].array[0].stop) continue;
for (; j <= data->contents.array[i].array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);
f_string_length total = 1;
for (f_string_length j = items->array[i].content.array[0].start; j <= items->array[i].content.array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
total++;
if (line == 0) {
for (; i <= items->array[i].content.array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);
break;
f_string_length line_current = 0;
for (; i <= items->array[i].content.array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
line_current++;
i++;
for (; i <= items->array[i].content.array[0].stop; i++) {
- if (data->buffer.string[i] == f_string_eos) continue;
+ if (data->buffer.string[i] == 0) continue;
if (data->buffer.string[i] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);
break;
}
for (f_string_length j = items->array[i].content.array[0].start; j <= items->array[i].content.array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
total++;
if (j > items->array[i].content.array[0].stop) continue;
for (; j <= items->array[i].content.array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eos) continue;
+ if (data->buffer.string[j] == 0) continue;
if (data->buffer.string[j] == f_string_eol) {
fprintf(f_standard_output, "%c", f_string_eol);