Home
last modified time | relevance | path

Searched refs:io_replaceInFile (Results 1 – 3 of 3) sorted by relevance

/dokuwiki/_test/tests/inc/
H A Dio_replaceinfile.test.php33 $this->assertTrue(io_replaceInFile($file, "Delete\012", "Delete00\012", false, 1));
36 $this->assertTrue(io_replaceInFile($file, "Delete\012", "DeleteX\012", false, -1));
39 $this->assertTrue(io_replaceInFile($file, "#Delete(\\d+)\012#", "\\1\012", true, 2));
42 $this->assertTrue(io_replaceInFile($file, "DeleteX\012", "Replace\012", false, 0));
73 $this->assertTrue(io_replaceInFile($file, "Delete\012", "Delete\\00\012", false, -1));
85 $this->assertTrue(io_replaceInFile($file, "Delete\012", "Delete\012", false, -1));
98 $this->assertTrue(io_replaceInFile($file, "Delete\012", "Replace\012", false, -1));
110 $this->assertFalse(io_replaceInFile(TMP_DIR.'/not_existing_file.txt', '', '', false, 0));
/dokuwiki/inc/
H A Dio.php344 function io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines = 0) function
419 return io_replaceInFile($file, $badline, '', $regex, 0);
/dokuwiki/lib/plugins/authplain/
H A Dauth.php221 …if (!io_replaceInFile($config_cascade['plainauth.users']['default'], '/^' . $user . ':/', $userlin…