Home
last modified time | relevance | path

Searched full:clean (Results 1 – 25 of 62) sorted by relevance

123

/dokuwiki/inc/Search/Collection/
H A DPageMetaCollection.php5 use dokuwiki\Utf8\Clean; alias
27 $clean = self::cleanName($subject);
30 $clean . '_w',
31 $clean . '_i',
32 $clean . '_p'
37 * Clean a name for use as a file name
47 $name = Clean::romanize(trim($name));
/dokuwiki/inc/
H A Dutf8.php12 use dokuwiki\Utf8\Clean; alias
56 dbg_deprecated(Clean::class . '::isASCII()');
57 return Clean::isASCII($str);
66 dbg_deprecated(Clean::class . '::strip()');
67 return Clean::strip($str);
75 dbg_deprecated(Clean::class . '::isUtf8()');
76 return Clean::isUtf8($str);
183 dbg_deprecated(Clean::class . '::deaccent()');
184 return Clean::deaccent($str, $case);
192 dbg_deprecated(Clean::class . '::romanize()');
[all …]
H A Dpageutils.php12 use dokuwiki\Utf8\Clean; alias
32 * @param bool $clean if true, ID is cleaned
35 function getID($param = 'id', $clean = true) argument
70 //clean script and request (fixes a windows problem)
106 if ($clean) $id = cleanID($id);
120 * @param string $raw_id The pageid to clean
151 if ($conf['deaccent'] == 2 || $ascii) $id = Clean::romanize($id);
152 if ($conf['deaccent'] || $ascii) $id = Clean::deaccent($id, -1);
155 $id = Clean::stripspecials($id, $sepchar, '\*');
157 if ($ascii) $id = Clean::strip($id);
[all …]
H A DMailer.class.php16 use dokuwiki\Utf8\Clean; alias
207 * @param bool $clean remove all non-ASCII chars and line feeds?
209 public function setHeader($header, $value, $clean = true) argument
212 if ($clean) {
401 * Return a clean name which can be safely used in mail address
405 * @param string $name the name to clean-up
467 if (!Clean::isASCII($addr)) {
483 $text = Clean::deaccent($text);
484 $text = Clean::strip($text);
487 if (str_contains($text, ',') || !Clean::isASCII($text)) {
[all …]
/dokuwiki/inc/Cache/
H A DCacheInstructions.php22 * @param bool $clean true to clean line endings, false to leave line endings alone
25 public function retrieveCache($clean = true) argument
H A DCache.php156 * @param bool $clean true to clean line endings, false to leave line endings alone
159 public function retrieveCache($clean = true) argument
161 return io_readFile($this->cache, $clean);
/dokuwiki/_test/tests/inc/
H A Dutf8_romanize.test.php21 $chk = \dokuwiki\Utf8\Clean::romanize($jap);
34 $this->assertEquals("a A a A a o O",\dokuwiki\Utf8\Clean::romanize("å Å ä Ä ä ö Ö"));
41 … $this->assertEquals('kalimera pos eiste',\dokuwiki\Utf8\Clean::romanize('Καλημέρα πώς είστε'));
H A Dutf8_correctidx.test.php18 … $this->assertEquals(\dokuwiki\Utf8\Clean::correctIdx($test[0],$test[1],$test[2]),$test[3]);
36 … $this->assertEquals(\dokuwiki\Utf8\Clean::correctIdx($test[0],$test[1],$test[2]),$test[3]);
56 … $this->assertEquals(\dokuwiki\Utf8\Clean::correctIdx($test[0],$test[1],$test[2]),$test[3]);
72 … $this->assertEquals(\dokuwiki\Utf8\Clean::correctIdx($test[0],$test[1],$test[2]),$test[3]);
H A Dcommon_inlineSVG.test.php10 $clean =
17 $this->assertEquals($clean, inlineSVG($file));
H A Dutf8_stripspecials.test.php35 …$this->assertEquals($expected, \dokuwiki\Utf8\Clean::stripspecials($string, $replacement, $additio…
/dokuwiki/lib/exe/
H A Dajax.php10 use dokuwiki\Utf8\Clean; alias
25 $call = $INPUT->filter(Clean::stripspecials(...))->str('call');
/dokuwiki/_test/
H A Drector.php198 'utf8_isASCII' => 'dokuwiki\Utf8\Clean::isASCII',
199 'utf8_strip' => 'dokuwiki\Utf8\Clean::strip',
200 'utf8_check' => 'dokuwiki\Utf8\Clean::isUtf8',
212 'utf8_deaccent' => 'dokuwiki\Utf8\Clean::deaccent',
213 'utf8_romanize' => 'dokuwiki\Utf8\Clean::romanize',
214 'utf8_stripspecials' => 'dokuwiki\Utf8\Clean::stripspecials',
222 'utf8_bad_replace' => 'dokuwiki\Utf8\Clean::replaceBadBytes',
223 'utf8_correctIdx' => 'dokuwiki\Utf8\Clean::correctIdx',
/dokuwiki/inc/parser/
H A Dcode.php3 use dokuwiki\Utf8\Clean; alias
31 $filename = Clean::stripspecials($filename, '_');
/dokuwiki/inc/Parsing/Handler/
H A DCallWriterInterface.php22 * Explicit request to finish up and clean up NOW!
/dokuwiki/.github/workflows/
H A DautoFix.yml54 …If you disagree with the changes, simply clean the code yourself and create a new pull request. Th…
/dokuwiki/lib/plugins/usermanager/
H A Dadmin.php6 use dokuwiki\Utf8\Clean; alias
900 * Retrieve & clean user data from the form
902 * @param bool $clean whether the cleanUser method of the authentication backend is applied
905 protected function retrieveUser($clean = true) argument
912 $user[0] = ($clean) ? $auth->cleanUser($INPUT->str('userid')) : $INPUT->str('userid');
920 if ($clean) {
1082 if (!Clean::isUtf8($csv)) {
1086 $error = ''; // clean out any errors from the previous line
1098 $clean = $this->cleanImportUser($raw, $error);
1099 if ($clean && $this->importUser($clean, $error)) {
[all …]
/dokuwiki/inc/Search/
H A DTokenizer.php6 use dokuwiki\Utf8\Clean; alias
99 $text = Clean::stripspecials($text, ' ', '\._\-:' . $wc);
H A DIndexer.php315 $clean = PageMetaCollection::cleanName($key);
316 @unlink($conf['indexdir'] . '/' . $clean . '_w.idx');
317 @unlink($conf['indexdir'] . '/' . $clean . '_i.idx');
318 @unlink($conf['indexdir'] . '/' . $clean . '_p.idx');
/dokuwiki/inc/Subscriptions/
H A DSubscriberRegexBuilder.php28 // clean
/dokuwiki/_test/tests/Ui/
H A DSearchTest.php108 'uppercased pageid with colons should result in clean pageid',
124 'uppercased utf-8 pageid with colons should result in clean pageid',
/dokuwiki/inc/Utf8/tables/
H A Dloweraccents.php10 * @see \dokuwiki\Utf8\Clean::deaccent()
H A Dupperaccents.php10 * @see \dokuwiki\Utf8\Clean::deaccent()
/dokuwiki/inc/Search/Index/
H A DLock.php74 * Intended for test teardown to ensure a clean state.
/dokuwiki/vendor/geshi/geshi/src/geshi/
H A Dbash.php124 'apt-get check', 'apt-get clean', 'apt-get dist-upgrade',
132 'apt-src clean', 'apt-src import', 'apt-src install',
138 'aptitude clean', 'aptitude download', 'aptitude forbid-version',
184 'git clean', 'git clone', 'git commit', 'git commit-tree',
224 'git-cherry-pick', 'git-clean', 'git-clone', 'git-commit',
359 'yum check-update', 'yum clean', 'yum deplist', 'yum erase',
/dokuwiki/inc/Utf8/
H A DClean.php6 * Methods to assess and clean UTF-8 strings
8 class Clean class

123