MCPcopy Create free account
hub / github.com/coreutils/coreutils / handle_field_delimiter

Function handle_field_delimiter

src/cut.c:735–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735static inline void
736handle_field_delimiter (uintmax_t *field_idx, bool buffer_first_field,
737 idx_t *field_1_n_bytes,
738 bool *found_any_selected_field, bool *write_field,
739 bool blank_delimited, bool *skip_blank_run)
740{
741 if (handle_field_1 (*field_idx, buffer_first_field, field_1_n_bytes))
742 *found_any_selected_field = true;
743
744 next_item (field_idx);
745 *write_field = begin_field_output (*field_idx, buffer_first_field,
746 found_any_selected_field);
747 if (blank_delimited)
748 *skip_blank_run = true;
749}
750
751static inline bool
752field_selection_exhausted (uintmax_t field_idx)

Callers 1

cut_fields_bytesearchFunction · 0.85

Calls 3

handle_field_1Function · 0.85
next_itemFunction · 0.85
begin_field_outputFunction · 0.85

Tested by

no test coverage detected