Lines Matching defs:newline
322 * Captures in $newline are not available.
325 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
327 * Be sure to include the trailing newline in $oldline when replacing entire lines.
334 * @param string $newline new line to insert
343 function io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines = 0)
367 $replace = $regex ? $newline : addcslashes($newline, '\$');
383 if ((string)$newline !== '') {
384 $lines[] = $newline;
407 * Be sure to include the trailing newline in $badline