Lines Matching refs:record

78   {"record-number", no_argument, NULL, 'n'},
127 -d, --delimiter=PATTERN set the record delimiter regular expression\n\
141 -M, --delimiter-after print record delimiter after record if -d is used\n\
142 -n, --record-number print record number with output\n\
148 --show-position prefix each output record with start and end\n\
149 position of the first match within the record\n"));
168 static regex_t delim; /* Compiled record delimiter pattern. */
174 static char *record; /* Start of current record. */
175 static char *next_record; /* Start of next record. */
176 static int record_len; /* Length of current record. */
177 static int delim_len; /* Length of delimiter before record. */
178 static int next_delim_len; /* Length of delimiter after record. */
179 static int delim_after = 1;/* If true, print the delimiter after the record. */
186 static int print_recnum; /* Output record number. */
210 /* Sets `record' to the next complete record from file `fd', and `record_len'
211 to the length of the record. Returns 1 when there are no more records,
231 /* The buffer is full and no record delimiter found yet,
260 /* End of file. Return the last record. */
261 record = buf;
265 to be a record. */
277 /* Find the next record delimiter. */
286 record is. */
287 record = next_record;
435 /* See if the record matches. */
436 errcode = tre_reganexec(&preg, record, record_len, &match, match_params, 0);
484 /* Adjust record boundaries so we print the delimiter
485 before or after the record. */
492 record -= delim_len;
500 printf("%.*s", (int)pmatch[0].rm_so, record);
503 record + pmatch[0].rm_so);
506 record + pmatch[0].rm_eo);
510 printf("%.*s", record_len, record);
581 /* Set record delimiter regexp. */
607 /* Print record number of matching record. */
619 /* Print match cost of matching record. */
642 /* Set the maximum number of errors allowed for a record to match. */
821 /* Compile the record delimiter pattern. */
828 program_name, _("Error in record delimiter pattern"), errbuf);