Home | History | Annotate | Download | only in pcre

Lines Matching refs:newline

138 static char *newline = NULL;
230 { OP_NODATA, 'F', NULL, "fixed-strings", "patterns are sets of newline-separated strings" },
245 { OP_STRING, 'N', &newline, "newline=type", "set newline type (CR, LF, CRLF, ANYCRLF or ANY)" },
286 /* UTF-8 tables - used only when the newline setting is "any". */
637 Returns: pointer to the last byte of the line, including the newline byte(s)
1088 the next line, excluding the terminating newline. After matching, we always
1317 the match will always be before the first newline sequence. */
1419 /* Advance to after the newline and increment the line number. The file
2033 default: newline = (char *)"lf"; break;
2034 case 13: newline = (char *)"cr"; break;
2035 case (13 << 8) | 10: newline = (char *)"crlf"; break;
2036 case -1: newline = (char *)"any"; break;
2037 case -2: newline = (char *)"anycrlf"; break;
2391 /* Interpret the newline type; the default settings are Unix-like. */
2393 if (strcmp(newline, "cr") == 0 || strcmp(newline, "CR") == 0)
2398 else if (strcmp(newline, "lf") == 0 || strcmp(newline, "LF") == 0)
2403 else if (strcmp(newline, "crlf") == 0 || strcmp(newline, "CRLF") == 0)
2408 else if (strcmp(newline, "any") == 0 || strcmp(newline, "ANY") == 0)
2413 else if (strcmp(newline, "anycrlf") == 0 || strcmp(newline, "ANYCRLF") == 0)
2420 fprintf(stderr, "pcregrep: Invalid newline specifier \"%s\"\n", newline);