Home
last modified time | relevance | path

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

12345

/dokuwiki/vendor/paragonie/constant_time_encoding/src/
H A DEncoding.php45 string $str
46 ): string {
59 string $str
60 ): string {
73 string $str
74 ): string {
87 string $str
88 ): string {
101 string $str
102 ): string {
[all …]
H A DRFC4648.php51 string $str
52 ): string {
68 string $str
69 ): string {
85 string $str
86 ): string {
102 string $str
103 ): string {
119 string $str
120 ): string {
[all …]
H A DEncoderInterface.php41 public static function encode(string $binString): string;
51 public static function decode(string $encodedString, bool $strictPadding = false): string;
H A DBinary.php50 string $str
76 string $str,
79 ): string {
H A DHex.php47 string $binString
48 ): string {
76 string $binString
77 ): string {
107 string $encodedString,
109 ): string {
H A DBase32.php49 string $encodedString,
51 ): string {
64 string $src,
66 ): string {
79 string $binString
80 ): string {
93 string $src
94 ): string {
107 string $src
108 ): string {
[all …]
H A DBase64.php52 string $binString
53 ): string {
69 string $src
70 ): string {
83 string $src,
85 ): string {
142 string $encodedString,
144 ): string {
241 string $encodedString
242 ): string {
[all …]
/dokuwiki/inc/Utf8/
H A DConversion.php169 public static function fromLatin1($string) argument
172 return mb_convert_encoding($string, 'UTF-8', 'ISO-8859-1');
175 return iconv('ISO-8859-1', 'UTF-8', $string);
178 return \UConverter::transcode($string, 'UTF8', 'ISO-8859-1');
182 return utf8_encode($string);
186 $string .= $string;
187 $len = strlen($string);
190 case $string[$i] < "\x80":
191 $string[$j] = $string[$i];
193 case $string[$i] < "\xC0":
[all …]
H A DClean.php83 * @param string $string The UTF8 string to strip of special chars
88 public static function stripspecials($string, $repl = '', $additional = '') argument
95 return preg_replace('/[' . $additional . '\x00-\x19' . $specials . ']/u', $repl, $string);
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
[all …]
H A DPhpString.php44 * @param string $string
51 public static function strlen($string) argument
54 return mb_strlen($string, 'UTF-8');
58 return iconv_strlen($string, 'UTF-8');
63 return strlen(utf8_decode($string));
66 return strlen($string);
170 * @param string $string input string
181 public static function substr_replace($string, $replacement, $start, $length = 0) argument
184 if ($start > 0) $ret .= self::substr($string, 0, $start);
186 $ret .= self::substr($string, $start + $length);
[all …]
H A DTable.php84 static $string = null;
85 if ($string === null) {
88 $string = Unicode::toUtf8($table);
90 return $string;
/dokuwiki/vendor/splitbrain/lesserphp/src/
H A DParserException.php10 protected string $error = '';
11 protected string $culprit = '';
12 protected string $sourceFile = '';
16 string $message = '',
17 ?string $culprit = '',
18 ?string $sourceFile = '',
44 public function getError(): string
54 public function getCulprit(): string
65 public function getSourceFile(): string
/dokuwiki/inc/TreeBuilder/Node/
H A DWikiStartpage.php10 protected string $originalNamespace;
19 public function __construct(string $id, ?string $title, string $originalNamespace)
33 public function getNs(): string
H A DAbstractNode.php13 protected string $id = '';
15 protected ?string $title = null;
28 public function __construct(string $id, ?string $title)
37 public function getId(): string
47 public function getNs(): string
55 public function getTitle(): ?string
63 public function setTitle(?string $title): void
167 public function setProperty(string $name, $value): void
179 public function getProperty(string $name, $default = null)
209 public function __toString(): string
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php94 * @param string $string A string to be truncated.
98 public static function iTrunc($string, $length) argument
100 if (strlen($string) <= $length) {
101 return $string;
104 $pos = strrpos($string, ".");
106 $string = substr($string, 0, $length - 4);
107 $pos = strrpos($string, ".");
110 return substr($string, 0, $pos + 1)." ...";
113 $pos = strrpos($string, " ");
115 $string = substr($string, 0, $length - 4);
[all …]
/dokuwiki/_test/tests/inc/
H A Dutf8_stripspecials.test.php27 * @param string $string
33 function testGivens($string, $replacement, $additional, $expected) argument
35 …$this->assertEquals($expected, \dokuwiki\Utf8\Clean::stripspecials($string, $replacement, $additio…
H A DIpTest.php40 public function test_ip_to_number(string $ip, int $version, int $upper, int $lower): void
94 public function test_ip_in_range(string $ip, string $range, bool $expected): void
139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void
202 public function test_proxy_is_trusted($config, string $ip, bool $expected): void
287 …public function test_forwarded_for($config, string $header, string $remoteAddr, array $expected): …
363 …public function test_is_ssl($config, string $remoteAddr, string $https, string $forwardedProto, bo…
422 …function test_host_name($config, string $remoteAddr, string $forwardedHost, string $httpHost, stri…
H A Dcommon_clientip.test.php95 …c function test_client_ip_v4(string $remoteAddr, bool $useRealIp, string $realIp, string $forwarde…
131 …c function test_client_ip_v6(string $remoteAddr, bool $useRealIp, string $realIp, string $forwarde…
/dokuwiki/vendor/simplepie/simplepie/src/Cache/
H A DDataCache.php80 public function get_data(string $key, $default = null);
101 public function set_data(string $key, array $value, ?int $ttl = null): bool;
118 public function delete_data(string $key): bool;
H A DNameFilter.php75 public function filter(string $name): string;
H A DCallableNameFilter.php85 public function filter(string $name): string
/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 …]
/dokuwiki/inc/
H A Dcompatibility.php95 function str_starts_with(?string $haystack, ?string $needle)
106 function str_contains(?string $haystack, ?string $needle)
117 function str_ends_with(?string $haystack, ?string $needle)
H A DPrefCookie.php34 public function get(string $pref, $default = null)
48 public function set(string $pref, ?string $value): void
97 protected function decodeData(string $rawdata): array
123 protected function encodeData(array $data): string
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/
H A DStrings.php55 $string = array_shift($values);
56 $template = $this->lessc->compileValue($this->lessc->unwrap($string));
80 $d = $string[0] == 'string' ? $string[1] : '"';

12345