}
else if (status == f_no_data_on_eos || status == f_no_data_on_stop) {
- // if at least some valid object was found, then return f_none equivalents
+ // If at least some valid object was found, then return f_none equivalents.
if (objects->used > initial_used) {
if (status == f_no_data_on_eos) return f_none_on_eos;
if (status == f_no_data_on_stop) return f_none_on_stop;
else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) {
return status;
}
- // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop
+ // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop.
else if (input->start >= input->stop || input->start >= buffer->used) {
if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) {
objects->used++;
if (status == fl_fss_found_object) {
found_data = f_true;
- status = fl_fss_extended_content_read(buffer, input, &contents->array[contents->used]);
+ status = fl_fss_extended_content_read(buffer, input, &contents->array[contents->used]);
break;
}
}
else if (status == f_no_data_on_eos || status == f_no_data_on_stop) {
- // if at least some valid object was found, then return f_none equivelents
+ // If at least some valid object was found, then return f_none equivelents.
if (objects->used > initial_used) {
if (status == f_no_data_on_eos) return f_none_on_eos;
if (status == f_no_data_on_stop) return f_none_on_stop;
else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) {
return status;
}
- // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop
+ // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop.
else if (input->start >= input->stop || input->start >= buffer->used) {
if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) {
objects->used++;
}
else if (status == f_no_data_on_eos || status == f_no_data_on_stop) {
- // if at least some valid object was found, then return f_none equivalents
+ // If at least some valid object was found, then return f_none equivalents.
if (objects->used > initial_used) {
if (status == f_no_data_on_eos) return f_none_on_eos;
if (status == f_no_data_on_stop) return f_none_on_stop;
else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) {
return status;
}
- // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop
+ // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop.
else if (input->start >= input->stop || input->start >= buffer->used) {
if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) {
objects->used++;
return f_no_data;
}
- // numbers are not valid status code strings.
+ // Numbers are not valid status code strings.
if ((status = f_conversion_character_is_decimal(string[0])) == f_true) {
return f_status_set_error(f_invalid_data);
}