Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 74) sorted by relevance

123

/dokuwiki/inc/Parsing/Lexer/
H A DLexer.php60 * @param string $mode Should only apply this
64 public function addPattern($pattern, $mode = "accept") argument
66 if (! isset($this->regexes[$mode])) {
67 $this->regexes[$mode] = new ParallelRegex($this->case);
69 $this->regexes[$mode]->addPattern($pattern);
78 … * @param string $mode Should only apply this pattern when dealing with this type of input.
81 public function addEntryPattern($pattern, $mode, $new_mode) argument
83 if (! isset($this->regexes[$mode])) {
84 $this->regexes[$mode] = new ParallelRegex($this->case);
86 $this->regexes[$mode]->addPattern($pattern, $new_mode);
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DModeInterface.php29 * @param string $mode
32 public function connectTo($mode); argument
44 * @param string $mode
47 public function accepts($mode); argument
H A DAbstractMode.php28 public function connectTo($mode) argument
38 public function accepts($mode) argument
40 return in_array($mode, (array) $this->allowedModes);
H A DQuotes.php16 public function connectTo($mode) argument
26 $mode,
31 $mode,
36 $mode,
43 $mode,
48 $mode,
H A DEol.php17 public function connectTo($mode) argument
19 if (in_array($mode, ModeRegistry::getInstance()->getBlockEolModes())) {
24 $this->Lexer->addSpecialPattern('(?:^[ \t]*)?\n', $mode, 'eol');
H A DAbstractFormatting.php30 static fn($mode) => $mode !== $self
35 public function connectTo($mode) argument
38 if ($mode === $this->getModeName()) {
44 $mode,
H A DUnformatted.php16 public function connectTo($mode) argument
18 $this->Lexer->addEntryPattern('<nowiki>(?=.*</nowiki>)', $mode, 'unformatted');
19 $this->Lexer->addEntryPattern('%%(?=.*%%)', $mode, 'unformattedalt');
H A DFile.php17 public function connectTo($mode) argument
19 $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
H A DNocache.php16 public function connectTo($mode) argument
18 $this->Lexer->addSpecialPattern('~~NOCACHE~~', $mode, 'nocache');
H A DLinebreak.php16 public function connectTo($mode) argument
18 $this->Lexer->addSpecialPattern('\x5C{2}(?:[ \t]|(?=\n))', $mode, 'linebreak');
H A DHr.php16 public function connectTo($mode) argument
18 $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)', $mode, 'hr');
H A DNotoc.php16 public function connectTo($mode) argument
18 $this->Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc');
H A DCamelcaselink.php16 public function connectTo($mode) argument
20 $mode,
H A DMultiplyentity.php19 public function connectTo($mode) argument
24 $mode,
H A DEmaillink.php16 public function connectTo($mode) argument
19 $this->Lexer->addSpecialPattern('<' . PREG_PATTERN_VALID_EMAIL . '>', $mode, 'emaillink');
H A DWindowssharelink.php24 public function connectTo($mode) argument
28 $mode,
/dokuwiki/inc/Cache/
H A DCacheParser.php11 public $mode = ''; // input mode (represents the processing the input file will undergo) variable in dokuwiki\\Cache\\CacheParser
18 * @param string $mode input mode
20 public function __construct($id, $file, $mode) argument
28 $this->mode = $mode;
31 …struct($file . $INPUT->server->str('HTTP_HOST') . $INPUT->server->str('SERVER_PORT'), '.' . $mode);
/dokuwiki/inc/Parsing/
H A DParser.php86 foreach (array_keys($this->modes) as $mode) {
87 if ($mode == 'base') continue;
88 $this->modes[$mode]->preConnect();
91 foreach (array_keys($this->modes) as $mode) {
92 if ($mode == 'base') continue;
95 if ($this->modes[$cm]->accepts($mode)) {
96 $this->modes[$mode]->connectTo($cm);
100 $this->modes[$mode]->postConnect();
H A DModeRegistry.php140 * @param string $mode The mode name
143 public function registerBlockEolMode(string $mode): void argument
145 $this->blockEolModes[] = $mode;
162 * @param string $mode The mode name
166 public function registerLineStartMarkers(string $mode, array $markers): void argument
168 $this->lineStartMarkers[$mode] = $markers;
230 foreach ($builtinModes as $mode) {
231 $class = 'dokuwiki\\Parsing\\ParserMode\\' . ucfirst($mode);
235 'mode' => $mode,
/dokuwiki/_test/tests/Parsing/
H A DHandlerTest.php15 $mode = new class extends \dokuwiki\Parsing\ParserMode\AbstractMode {
25 $handler->registerModeObject('resolved', $mode);
30 $this->assertSame('original', $mode->receivedModeName);
37 $mode = new class extends \dokuwiki\Parsing\ParserMode\AbstractMode {
47 $handler->registerModeObject('mymode', $mode);
52 $this->assertSame('mymode', $mode->receivedModeName);
/dokuwiki/inc/
H A Dcache.php27 public function __construct($id, $file, $mode) argument
30 parent::__construct($id, $file, $mode);
41 public function __construct($id, $file, $mode) argument
44 parent::__construct($id, $file, $mode);
H A Dcompatibility.php48 * @param string $mode
52 function gzopen($filename, $mode, $use_include_path = 0) argument
54 return gzopen64($filename, $mode, $use_include_path);
/dokuwiki/inc/Action/
H A DExport.php52 $mode = substr($this->actionname, 7);
53 switch ($mode) {
93 $output = p_cached_output(wikiFN($ID, $REV), $mode, $ID);
94 $headers = p_get_metadata($ID, "format $mode");
101 $data['mode'] = $mode;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DTripleDES.php131 * @param string $mode
133 public function __construct($mode) argument
135 switch (strtolower($mode)) {
155 $mode = 'cbc';
159 parent::__construct($mode);
161 if ($this->mode == self::MODE_STREAM) {
180 $mode = $this->openssl_translate_mode();
181 $this->cipher_name_openssl = $mode == 'ecb' ? 'des-ede3' : 'des-ede3-' . $mode;
/dokuwiki/inc/Extension/
H A DSyntaxPlugin.php109 * @param string $mode
112 public function accepts($mode) argument
126 return parent::accepts($mode);

123