Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 52) sorted by relevance

123

/dokuwiki/inc/
H A DInfo.php30 if (preg_match('/^(rc)?(\d{4}-\d{2}-\d{2})([a-z]*)/', $version, $matches)) {
31 $return['date'] = $matches[2];
32 if ($matches[1] == 'rc') {
37 if ($matches[3]) {
38 $return['hotfix'] = $matches[3];
H A Dmail.php165 function mail_quotedprintable_encode_callback($matches) argument
167 return sprintf("=%02X", ord($matches[0])) ;
H A DMailer.class.php123 * @param array $matches
126 protected function autoEmbedCallBack($matches) argument
132 $media = cleanID($matches[1]);
135 if (!file_exists($file)) return $matches[0]; //bad reference, keep as is
382 …$count = preg_match_all('/\s*(?:("[^"]*"[^,]+),*)|([^,]+)\s*,*/', $addresses, $matches, PREG_SET_O…
384 if ($count !== false && is_array($matches)) {
385 foreach ($matches as $match) {
396 if (preg_match('#(.*?)<(.*?)>#', $part, $matches)) {
397 $text = trim($matches[1]);
398 $addr = $matches[2];
/dokuwiki/_test/tests/test/
H A Dedit_and_save.test.php30 preg_match_all('#<h1[^>]*>Headline2</h1[^>]*>#', $content, $matches, PREG_SET_ORDER);
31 $this->assertEquals(2, count($matches));
34 $result = preg_match('/id="(.*)"/', $matches [0][0], $idA);
36 $result = preg_match('/id="(.*)"/', $matches [1][0], $idB);
49 …('/<input type="hidden" name="([^"]*)" value="([^"]*)" \/>/', $formA[0], $matches, PREG_SET_ORDER);
51 foreach ($matches as $match) {
71 …<input type="hidden" name="([^"]*)" value="([^"]*)" \/>/', $editForm[0], $matches, PREG_SET_ORDER);
73 foreach ($matches as $match) {
113 preg_match_all('#<h1[^>]*>Headline2</h1[^>]*>#', $content, $matches, PREG_SET_ORDER);
114 $this->assertEquals(2, count($matches));
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DMultiplyentity.php32 preg_match_all('/\d+/', $match, $matches);
33 $handler->addCall('multiplyentity', [$matches[0][0], $matches[0][1]], $pos);
H A DCode.php75 …l('/(\w+(?:="[^"]*"))|(\w+(?:=[^\s]*))|(\w+[^=\s\]])(?:\s*)/', $options, $matches, PREG_SET_ORDER);
76 foreach ($matches as $match) {
/dokuwiki/inc/Search/Collection/
H A DTerm.php41 protected array $matches = []; variable in dokuwiki\\Search\\Collection\\Term
136 public function matches(string $tokenValue): bool function in dokuwiki\\Search\\Collection\\Term
167 $this->matches[$entityName][$tokenName] =
168 ($this->matches[$entityName][$tokenName] ?? 0) + $frequency;
182 return $this->matches;
194 return array_map(array_sum(...), $this->matches);
204 return array_map(array_keys(...), $this->matches);
214 if ($this->matches === []) return [];
215 return array_keys(array_merge(...array_values($this->matches)));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/
H A DPKCS1.php79 case preg_match("#^AES-(128|192|256)-$modes$#", $algo, $matches):
80 $cipher = new AES(self::getEncryptionMode($matches[2]));
81 $cipher->setKeyLength($matches[1]);
83 case preg_match("#^DES-EDE3-$modes$#", $algo, $matches):
84 return new TripleDES(self::getEncryptionMode($matches[1]));
85 case preg_match("#^DES-$modes$#", $algo, $matches):
86 return new DES(self::getEncryptionMode($matches[1]));
138 if (preg_match('#DEK-Info: (.+),(.+)#', $key, $matches)) {
139 $iv = Strings::hex2bin(trim($matches[2]));
146 $crypto = self::getEncryptionObject($matches[1]);
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php43 $matches = [];
44 preg_match_all($pattern, $contents, $matches, PREG_SET_ORDER);
45 $counter = count($matches);
48 $value = $matches[$i][2];
51 $key = preg_replace('/.\]\[./', $this->keymarker, $matches[$i][1]);
/dokuwiki/_test/core/
H A DTestResponse.php85 $matches = array();
86 preg_match('/^Status: ?(\d+)/', $status, $matches);
87 if($matches) {
88 $code = $matches[1];
/dokuwiki/_test/tests/inc/
H A Dhtml_secedit_pattern.test.php52 preg_match(SEC_EDIT_PATTERN, $text, $matches);
53 $data = json_decode($matches[1], true);
H A Dlang.php186 …if (!preg_match_all('/%(?:([0-9]+)\$)?([-.0-9hl]*?[%dufsc])/', $string, $matches, PREG_SET_ORDER))…
199 usort($matches, function ($a, $b) {
213 return array_column($matches, 2);
/dokuwiki/inc/Search/Query/
H A DQueryParser.php113 if (preg_match('/^(-?)"(.+)"$/u', $term, $matches)) {
115 $not = $matches[1] ? 'NOT' : '';
116 $parsed = $not . $this->termParser($matches[2], false, true);
155 } elseif (preg_match('/^(?:\^|-ns:)(.+)$/u', $token, $matches)) {
157 $parsed .= 'NOT(N+:' . $matches[1] . ')';
158 } elseif (preg_match('/^(?:@|ns:)(.+)$/u', $token, $matches)) {
160 $parsed .= '(N+:' . $matches[1] . ')';
161 } elseif (preg_match('/^-(.+)$/', $token, $matches)) {
163 $parsed .= 'NOT(' . $this->termParser($matches[1]) . ')';
/dokuwiki/lib/plugins/extension/
H A DRepository.php246 if (preg_match_all('/(^|\s)(tag:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
247 foreach ($matches as $m) {
253 if (preg_match_all('/(^|\s)(authorid:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
254 foreach ($matches as $m) {
260 if (preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
261 foreach ($matches as $m) {
267 if (preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
271 foreach ($matches as $m) {
/dokuwiki/inc/Utf8/
H A DClean.php127 while (preg_match('/' . $UTF8_BAD . '/S', $str, $matches)) {
128 if (!isset($matches[2])) {
129 echo $matches[0];
133 $str = substr($str, strlen($matches[0]));
H A DPhpString.php309 preg_match('/^(.{1})(.*)$/us', $str, $matches);
310 return self::strtoupper($matches[1]) . $matches[2];
333 function ($matches) {
334 $leadingws = $matches[2];
335 $ucfirst = self::strtoupper($matches[3]);
336 $ucword = self::substr_replace(ltrim($matches[0]), $ucfirst, 0, 1);
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php74 if (! preg_match($this->getCompoundedRegex(), $subject, $matches)) {
97 $idx = count($matches) - 2;
99 $split = [$pre, $matches[0], $post];
/dokuwiki/inc/Remote/OpenApiDoc/
H A DDocBlock.php42 if (preg_match_all('/^@(\w+)\s+(.*)$/m', $docblock, $matches, PREG_SET_ORDER)) {
43 foreach ($matches as $match) {
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingEmail.php44 if (preg_match('#(.*?)<(.*?)>#', $mail, $matches)) {
45 $addr = $matches[2];
/dokuwiki/inc/Parsing/Handler/
H A DQuote.php77 preg_match('/>{1,}/', $marker, $matches);
78 $quoteLength = strlen($matches[0]);
/dokuwiki/vendor/splitbrain/slika/src/
H A DImageInfo.php246 if (preg_match('@\x12\x01\x03\x00\x01\x00\x00\x00(.)\x00\x00\x00@', $data, $matches)) {
248 return ord($matches[1]);
250 if (preg_match('@\x01\x12\x00\x03\x00\x00\x00\x01\x00(.)\x00\x00@', $data, $matches)) {
252 return ord($matches[1]);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/
H A DPKCS1.php65 preg_match('#-*BEGIN EC PRIVATE KEY-*[^-]*-*END EC PRIVATE KEY-*#s', $key, $matches);
66 $decoded = parent::load($matches[0], $password);
81 preg_match('#-*BEGIN EC PARAMETERS-*[^-]*-*END EC PARAMETERS-*#s', $key, $matches);
82 $decoded = parent::load($matches[0], '');
/dokuwiki/lib/exe/
H A Dcss.php653 * @param array $matches
659 function css_comment_cb($matches) argument
661 if (strlen($matches[2]) > 4) return '';
662 return $matches[0];
670 * @param array $matches
673 function css_onelinecomment_cb($matches) argument
675 $line = $matches[0];
/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php107 if (preg_match_all('/(?:^|:)(?:0(?::|$))+/', $ip_parts[0], $matches, PREG_OFFSET_CAPTURE)) {
110 foreach ($matches[0] as $match) {
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPUtils.php106 function ($matches) {
107 return "\\".join("", unpack("H2", $matches[1]));

123