Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 109) sorted by relevance

12345

/dokuwiki/vendor/simplepie/simplepie/src/Parse/
H A DDate.php683 if (preg_match($pcre, $date, $match)) {
685 $year = (int) $match['year'];
686 $month = isset($match['month']) ? (int) $match['month'] : 1;
687 $day = isset($match['day']) ? (int) $match['day'] : 1;
688 $hour = isset($match['hour']) ? (int) $match['hour'] : 0;
689 $minute = isset($match['minute']) ? (int) $match['minute'] : 0;
690 $second = isset($match['second']) ? (int) $match['second'] : 0;
691 …$second_fraction = isset($match['second_fraction']) ? ((int) $match['second_fraction']) / (10 ** s…
692 $tz_sign = ($match['tz_sign'] ?? '') === '-' ? -1 : 1;
693 $tz_hour = isset($match['tz_hour']) ? (int) $match['tz_hour'] : 0;
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DTable.php56 public function handle($match, $state, $pos, Handler $handler) argument
63 if (trim($match) == '^') {
78 if (trim($match) != '') {
79 $handler->addCall('cdata', [$match], $pos);
84 if ($match == ' ') {
85 $handler->addCall('cdata', [$match], $pos);
86 } elseif (preg_match('/:::/', $match)) {
87 $handler->addCall('rowspan', [$match], $pos);
88 } elseif (preg_match('/\t+/', $match)) {
89 $handler->addCall('table_align', [$match], $pos);
[all …]
H A DCode.php31 public function handle($match, $state, $pos, Handler $handler) argument
36 [$attr, $content] = sexplode('>', $match, 2, '');
76 foreach ($matches as $match) {
77 $equal_sign = strpos($match[0], '=');
79 $key = trim($match[0]);
82 $key = substr($match[0], 0, $equal_sign);
83 $value = substr($match[0], $equal_sign + 1);
H A DQuote.php44 public function handle($match, $state, $pos, Handler $handler) argument
49 $handler->addCall('quote_start', [$match], $pos);
60 $handler->addCall('quote_newline', [$match], $pos);
64 $handler->addCall('cdata', [$match], $pos);
H A DCamelcaselink.php26 public function handle($match, $state, $pos, Handler $handler) argument
28 $handler->addCall('camelcaselink', [$match], $pos);
H A DModeInterface.php52 * @param string $match The matched text
58 public function handle($match, $state, $pos, Handler $handler); argument
H A DMedia.php23 public function handle($match, $state, $pos, Handler $handler) argument
25 $p = self::parseMedia($match);
38 * @param string $match The full media syntax (e.g. {{image.png?200|title}})
41 public static function parseMedia($match) argument
44 $link = preg_replace(['/^\{\{/', '/\}\}$/u'], '', $match);
H A DFootnote.php53 public function handle($match, $state, $pos, Handler $handler) argument
60 $handler->addCall('cdata', [$match], $pos);
71 $handler->addCall('cdata', [$match], $pos);
83 $handler->addCall('cdata', [$match], $pos);
H A DListblock.php55 public function handle($match, $state, $pos, Handler $handler) argument
60 $handler->addCall('list_open', [$match], $pos);
69 $handler->addCall('list_item', [$match], $pos);
72 $handler->addCall('cdata', [$match], $pos);
H A DMultiplyentity.php30 public function handle($match, $state, $pos, Handler $handler) argument
32 preg_match_all('/\d+/', $match, $matches);
H A DEmaillink.php23 public function handle($match, $state, $pos, Handler $handler) argument
25 $email = preg_replace(['/^</', '/>$/'], '', $match);
H A DWindowssharelink.php34 public function handle($match, $state, $pos, Handler $handler) argument
36 $handler->addCall('windowssharelink', [$match, null], $pos);
H A DFilelink.php41 public function handle($match, $state, $pos, Handler $handler) argument
43 $handler->addCall('filelink', [$match, null], $pos);
H A DUnformatted.php31 public function handle($match, $state, $pos, Handler $handler) argument
34 $handler->addCall('unformatted', [$match], $pos);
/dokuwiki/inc/Parsing/
H A DHandler.php83 * @param string $match The matched text
89 public function handleToken($modeName, $match, $state, $pos, $originalModeName = '') argument
97 return $this->plugin($match, $state, $pos, $plugin);
102 return $this->modeObjects[$modeName]->handle($match, $state, $pos, $this);
180 * @param string $match matched syntax
182 public function addPluginCall($plugin, $args, $state, $pos, $match) argument
184 $call = ['plugin', [$plugin, $args, $state, $match], $pos];
222 * @param string $match matched syntax
229 public function plugin($match, $state, $pos, $pluginname) argument
231 $data = [$match];
[all …]
/dokuwiki/lib/scripts/
H A Deditor.js151 var match = search.match(/(\n +([\*-] ?)?)/);
152 if(match){
154 var match2 = search.match(/^\n +[\*-]\s*$/);
156 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
163 insertAtCarret(this.id,match[1]);
171 var match = search.match(/(\n +)([*-] ?)$/);
172 if(match){
173 var spaces = match[1].length-1;
192 var match = search.match(/(\n +)([*-] )$/);
193 if(match){
/dokuwiki/_test/tests/test/
H A Dedit_and_save.test.php51 foreach ($matches as $match) {
52 $input[$match[1]] = $match[2];
73 foreach ($matches as $match) {
74 $input[$match[1]] = $match[2];
134 foreach ($matches as $match) {
135 $input[$match[1]] = $match[2];
156 foreach ($matches as $match) {
157 $input[$match[1]] = $match[2];
/dokuwiki/lib/exe/
H A Dcss.php390 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
391 $exts[] = strtolower($match[1]);
485 * @param array $match see http://php.net/preg_replace_callback
488 public function replacements($match) argument
491 …if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment requ…
492 return $match[0];
493 …} elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system loc…
494 if ($match[3][0] != '/') {
495 $match[3] = $this->getRelativePath() . '/' . $match[3];
498 $match[3] = $this->location . $match[3];
[all …]
/dokuwiki/lib/plugins/styling/
H A Dadmin.php130 if (preg_match('/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/', $value, $match)) {
131 return '#' . $match[1] . $match[1] . $match[2] . $match[2] . $match[3] . $match[3];
/dokuwiki/_test/tests/Parsing/Lexer/
H A DRecordingHandler.php17 public function handleToken($modeName, $match, $state, $pos, $originalModeName = '') argument
19 $this->recorded[] = [$modeName, $match, $state, $pos];
/dokuwiki/inc/
H A DErrorHandler.php184 if (preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $e->getFile()), $match)) {
185 return $match[1];
191 preg_match('/\w+?_plugin_(\w+)/', $line['class'], $match)
193 return $match[1];
198 preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $line['file']), $match)
200 return $match[1];
/dokuwiki/inc/Remote/OpenApiDoc/
H A DOpenAPIGenerator.php72 if (preg_match('/ *function (\w+)/', $line, $match)) {
73 $method = $match[1];
75 … if (preg_match('/^ *throw new RemoteException\(\'([^\']+)\'.*?, (\d+)/', $line, $match)) {
80 'code' => $match[2],
81 'message' => $match[1],
84 … if (preg_match('/^ *throw new AccessDeniedException\(\'([^\']+)\'.*?, (\d+)/', $line, $match)) {
89 'code' => $match[2],
90 'message' => $match[1],
331 if (preg_match('/^https?:\/\/(www\.)?dokuwiki\.org\/(.+)$/', $url, $match)) {
332 $name = $match[2];
H A DDocBlock.php43 foreach ($matches as $match) {
44 $tags[$match[1]][] = trim($match[2]);
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
H A DEntities.php550 for ($i = 0, $match = null; $i < 9 && $this->consume() !== false; $i++) {
555 $match = $consumed;
559 if ($match !== null) {
560 …ata = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strl…
561 $this->position += strlen($entities[$match]) - strlen($consumed) - 1;
/dokuwiki/lib/tpl/dokuwiki/
H A Dscript.js21 if (device_class.match(/tablet/)) return;
25 if (device_class.match(/phone/)) return;
49 if (device_class.match(/mobile/)){

12345