Home
last modified time | relevance | path

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

1234

/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/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
24 public function __construct($id, $file, $mode, $syntax = null) argument
32 $this->mode = $mode;
37 '.' . $mode
/dokuwiki/inc/Parsing/ParserMode/
H A DQuotes.php16 public function connectTo($mode) argument
26 $mode,
31 $mode,
36 $mode,
43 $mode,
48 $mode,
H A DEol.php16 public function connectTo($mode) argument
18 if (in_array($mode, $this->registry->getBlockEolModes())) {
23 $this->Lexer->addSpecialPattern('(?:^[ \t]*)?\n', $mode, 'eol');
H A DAbstractFormatting.php37 return array_values(array_filter($modes, static fn($mode) => $mode !== $self));
41 public function connectTo($mode) argument
44 if ($mode === $this->getModeName()) {
50 $mode,
H A DAbstractMode.php138 * @param string $mode
141 public function connectTo($mode) argument
245 * @param string $mode
248 public function accepts($mode) argument
250 return in_array($mode, $this->allowedModes, true);
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 DNotoc.php16 public function connectTo($mode) argument
18 $this->Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc');
H A DGfmLinebreak.php38 public function connectTo($mode) argument
46 $mode,
H A DCamelcaselink.php16 public function connectTo($mode) argument
20 $mode,
H A DMultiplyentity.php19 public function connectTo($mode) argument
24 $mode,
H A DGfmHr.php34 public function connectTo($mode) argument
40 $this->Lexer->addSpecialPattern($pattern, $mode, 'gfm_hr');
H A DWindowssharelink.php24 public function connectTo($mode) argument
28 $mode,
H A DGfmHtmlEntity.php48 public function connectTo($mode) argument
50 $this->Lexer->addSpecialPattern(HtmlEntity::PATTERN, $mode, 'gfm_html_entity');
H A DEmaillink.php17 public function connectTo($mode) argument
19 …$this->Lexer->addSpecialPattern('<' . MailUtils::PREG_PATTERN_VALID_EMAIL . '>', $mode, 'emaillink…
/dokuwiki/inc/Parsing/
H A DParser.php114 foreach (array_keys($this->modes) as $mode) {
115 if ($mode == 'base') continue;
116 $this->modes[$mode]->preConnect();
119 foreach (array_keys($this->modes) as $mode) {
120 if ($mode == 'base') continue;
123 if ($this->modes[$cm]->accepts($mode)) {
124 $this->modes[$mode]->connectTo($cm);
128 $this->modes[$mode]->postConnect();
/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);
67 $mode = new class extends \dokuwiki\Parsing\ParserMode\AbstractMode {
78 $handler->registerModeObject('m', $mode);
/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);
H A DStyleUtils.php102 foreach ($config['stylesheets'] as $inifile => $mode) {
106 … $this->getValidatedStyles($stylesheets, $inifile, $mode, $incbase, $webbase)
131 * @param string $mode
136 protected function getValidatedStyles($stylesheets, $file, $mode, $incbase, $webbase) argument
143 $stylesheets[$mode][$incbase . $basename . '.' . $newExtension] = $webbase;
152 $stylesheets[$mode][fullpath($incbase . $file)] = $webbase;
/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;

1234