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