Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 41) sorted by relevance

12

/dokuwiki/inc/Utf8/
H A DClean.php83 * @param string $string The UTF8 string to strip of special chars
88 public static function stripspecials($string, $repl = '', $additional = '') argument
147 * @param string $string
151 public static function deaccent($string, $case = 0) argument
154 $string = strtr($string, Table::lowerAccents());
157 $string = strtr($string, Table::upperAccents());
159 return $string;
167 * @param string $string
170 public static function romanize($string) argument
172 if (self::isASCII($string)) return $string; //nothing to do
[all …]
H A DPhpString.php46 * @param string $string
53 public static function strlen($string) argument
56 return strlen(utf8_decode($string));
60 return mb_strlen($string, 'UTF-8');
64 return iconv_strlen($string, 'UTF-8');
67 return strlen($string);
179 * @param string $string input string
262 * @param string $string
269 public static function strtolower($string) argument
285 * @param string $string
[all …]
H A DTable.php85 static $string = null;
86 if ($string === null) {
89 $string = Unicode::toUtf8($table);
91 return $string;
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php91 * @param string $string A string to be truncated.
95 public static function iTrunc($string, $length) argument
97 if (strlen($string) <= $length) {
98 return $string;
101 $pos = strrpos($string, ".");
103 $string = substr($string, 0, $length - 4);
104 $pos = strrpos($string, ".");
110 $pos = strrpos($string, " ");
112 $string = substr($string, 0, $length - 4);
113 $pos = strrpos($string, " ");
[all …]
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php234 * @param string $string
238 protected function pad($string, $len) argument
240 $strlen = $this->strlen($string);
241 if ($strlen > $len) return $string;
244 return $string . str_pad('', $pad, ' ');
253 protected function strlen($string) argument
256 $string = preg_replace("/\33\\[\\d+(;\\d+)?m/", '', $string);
259 return mb_strlen($string, 'utf-8');
262 return strlen($string);
266 * @param string $string
[all …]
H A DCLI.php276 * @param string $string
279 public function success($string, array $context = array()) argument
281 $this->log('success', $string, $context);
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingArray.php13 * @param string $string
16 protected function fromString($string) { argument
17 $array = explode(',', $string);
65 * @param string $string
68 protected function escape($string) { argument
70 return "'" . strtr(cleanText($string), $tr) . "'";
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DMisc.php94 * @param string $string HTML document
292 return strtr($string, $convert_table);
1798 $string = (string) $string;
1800 $length = strlen($string);
1809 if ($string[$pos - 1] !== '\\')
1815 if ($string[$position - 1] === '\\')
1820 elseif (isset($string[$position]))
1822 switch ($string[$position])
1845 $output .= substr($string, $position);
1953 $string_length = strlen($string);
[all …]
H A DIRI.php468 $string = preg_replace('/%(?![A-Fa-f0-9]{2})/', '%25', $string);
476 $strlen = strlen($string);
479 $value = ord($string[$position]);
578 $string = substr_replace($string, sprintf('%%%02X', ord($string[$j])), $j, 1);
586 return $string;
607 $string = '';
727 return $string;
1124 public function to_uri($string) argument
1133 $strlen = strlen($string);
1136 $string = substr_replace($string, sprintf('%%%02X', ord($string[$position])), $position, 1);
[all …]
H A DParser.php379 public function split_ns($string) argument
382 if (!isset($cache[$string]))
384 if ($pos = strpos($string, $this->separator))
391 $namespace = substr($string, 0, $pos);
392 $local_name = substr($string, $pos + $separator_length);
407 $cache[$string] = array($namespace, $local_name);
411 $cache[$string] = array('', $string);
414 return $cache[$string];
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Parse/
H A DDate.php761 public function remove_rfc2822_comments($string) argument
763 $string = (string) $string;
765 $length = strlen($string);
770 while ($position < $length && ($pos = strpos($string, '(', $position)) !== false)
772 $output .= substr($string, $position, $pos - $position);
774 if ($pos === 0 || $string[$pos - 1] !== '\\')
779 $position += strcspn($string, '()', $position);
780 if ($string[$position - 1] === '\\')
785 elseif (isset($string[$position]))
787 switch ($string[$position])
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/
H A DIdentity.php230 * @param string $string
235 function _string_shift(&$string, $index = 1) argument
237 $substr = substr($string, 0, $index);
238 $string = substr($string, $index);
/dokuwiki/lib/exe/
H A Djs.php308 * @param string $string
311 function js_escape($string){ argument
312 return str_replace('\\\\n','\\n',addslashes($string));
428 $string = substr($s,$i,$j+1);
430 $string = str_replace("\\\n",'',$string);
431 $result .= $string;
446 $string = substr($s,$i,$j+1);
448 $string = str_replace("\\\n",'',$string);
449 $result .= $string;
/dokuwiki/lib/plugins/revert/lang/en/
H A Dintro.txt3 …on of a spam attack. To find a list of spammy pages first enter a search string (eg. a spam URL), …
/dokuwiki/lib/plugins/popularity/
H A Dhelper.php95 $string = '';
98 $string .= hsc($key)."\t".hsc($v)."\n";
100 $string .= hsc($key)."\t".hsc($val)."\n";
103 return $string;
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php2736 … $string = str_replace("\n", "</span>\n<span$string_attributes>", $string);
2739 $result .= $string;
2740 $string = '';
2758 $string = '';
2818 … while (isset($string[$es_pos + $c]) && isset($string[$es_pos + $c + 1])
2834 $string = $new_string . $this->hsc(substr($string, $start));
2836 $string = $this->hsc($string);
2845 … $string = str_replace("\n", "</span>\n<span$string_attributes>", $string);
2849 $string = '';
4317 return strtr($string, $aTransSpecchar);
[all …]
/dokuwiki/inc/
H A Dindexer.php232 * @param string $string
237 function idx_tokenizer($string, $wc=false) { argument
239 return $Indexer->tokenizer($string, $wc);
H A Dcommon.php26 function hsc($string) { argument
63 * @param string $string line of text
66 function ptln($string, $indent = 0) { argument
67 echo str_repeat(' ', $indent)."$string\n";
75 * @param string $string being stripped
78 function stripctl($string) { argument
1673 * @param string $string
1677 function unslash($string, $char = "'") { argument
1713 * @param string $string
1716 function preg_quote_cb($string) { argument
[all …]
H A Dutf8.php108 function utf8_substr_replace($string, $replacement, $start, $length = 0) argument
111 return PhpString::substr_replace($string, $replacement, $start, $length);
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DZip.php653 protected function cpToUtf8($string) argument
656 return iconv('CP437', 'UTF-8', $string);
658 return mb_convert_encoding($string, 'UTF-8', 'CP850');
660 return $string;
672 protected function utf8ToCp($string) argument
676 $conv = @iconv('UTF-8', 'CP437//IGNORE', $string);
684 return mb_convert_encoding($string, 'CP850', 'UTF-8');
686 return $string;
/dokuwiki/vendor/geshi/geshi/
H A DBUGS18 - The result is built by string replacement instead of by building another string based
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH1.php637 $session_key = Random::string(32);
1188 $padding = Random::string(8 - ($length & 7));
1319 * @param string $string
1324 function _string_shift(&$string, $index = 1) argument
1326 $substr = substr($string, 0, $index);
1327 $string = substr($string, $index);
1370 $block = Random::string($length - strlen($random));
/dokuwiki/inc/HTTP/
H A DHTTPClient.php765 * @param string $string
768 protected function parseHeaders($string){ argument
770 $lines = explode("\n",$string);
800 $string = '';
803 $string .= $key.': '.$value.HTTP_NL;
805 return $string;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DHash.php882 * @param string $string
887 function _string_shift(&$string, $index = 1) argument
889 $substr = substr($string, 0, $index);
890 $string = substr($string, $index);
H A DRandom.php46 static function string($length) function in phpseclib\\Crypt\\Random

12