Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/plugin/mdpage/vendor/cebe/markdown/tests/
DParserTest.php22 $parser = new TestParser();
23 $parser->markers = [
28 $this->assertEquals("<p>Result is A</p>\n", $parser->parse('Result is [abc]'));
29 $this->assertEquals("<p>Result is B</p>\n", $parser->parse('Result is [[abc]]'));
30 $this->assertEquals('Result is A', $parser->parseParagraph('Result is [abc]'));
31 $this->assertEquals('Result is B', $parser->parseParagraph('Result is [[abc]]'));
33 $parser = new TestParser();
34 $parser->markers = [
39 $this->assertEquals("<p>Result is A</p>\n", $parser->parse('Result is [abc]'));
40 $this->assertEquals("<p>Result is B</p>\n", $parser->parse('Result is [[abc]]'));
[all …]
/plugin/asciidocjs/node_modules/yargs-parser/
DCHANGELOG.md5 ## [21.1.1](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.1.0...yargs-parser-v21.1…
10parser/issues/454)) ([d69f9c3](https://github.com/yargs/yargs-parser/commit/d69f9c3a91c3ad2f9494d0…
12 ## [21.1.0](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.0.1...yargs-parser-v21.1…
17 …ed ([#443](https://github.com/yargs/yargs-parser/issues/443)) ([a89259f](https://github.com/yargs/…
22 …ed ([#438](https://github.com/yargs/yargs-parser/issues/438)) ([c474bc1](https://github.com/yargs/…
23 …de ([#450](https://github.com/yargs/yargs-parser/issues/450)) ([d07bcdb](https://github.com/yargs/…
24 …ns ([#434](https://github.com/yargs/yargs-parser/issues/434)) ([4f1060b](https://github.com/yargs/…
26 ### [21.0.1](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.0.0...yargs-parser-v21.…
31 …ct ([#432](https://github.com/yargs/yargs-parser/issues/432)) ([b00eb87](https://github.com/yargs/…
33 ## [21.0.0](https://www.github.com/yargs/yargs-parser/compare/yargs-parser-v20.2.9...yargs-parser-v…
[all …]
/plugin/eventum/XML/
DRPC.php248 $parser = (int) $parser_resource;
251 if ($XML_RPC_xh[$parser]['isf'] >= 2) {
257 if (count($XML_RPC_xh[$parser]['stack']) == 0) {
259 $XML_RPC_xh[$parser]['isf'] = 2;
260 $XML_RPC_xh[$parser]['isf_reason'] = 'missing top level xmlrpc element';
265 if (!in_array($XML_RPC_xh[$parser]['stack'][0], $XML_RPC_valid_parents[$name])) {
267 $XML_RPC_xh[$parser]['isf'] = 2;
268 …$XML_RPC_xh[$parser]['isf_reason'] = "xmlrpc element $name cannot be child of {$XML_RPC_xh[$parser
275 $XML_RPC_xh[$parser]['cm']++;
278 $XML_RPC_xh[$parser]['qt'] = 0;
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/lib/Twig/
DTokenParserBroker.php24 protected $parser; variable in Twig_TokenParserBroker
39 foreach ($parsers as $parser) {
40 if (!$parser instanceof TokenParserInterface) {
43 $this->parsers[$parser->getTag()] = $parser;
53 public function addTokenParser(TokenParserInterface $parser) argument
55 $this->parsers[$parser->getTag()] = $parser;
58 public function removeTokenParser(TokenParserInterface $parser) argument
60 $name = $parser->getTag();
61 if (isset($this->parsers[$name]) && $parser === $this->parsers[$name]) {
94 $parser = $broker->getTokenParser($tag);
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
DExpressionParserTest.php29 $parser = new Parser($env);
31 $parser->parse($env->tokenize(new Source($template, 'index')));
59 $parser = new Parser($env);
61 …$this->assertEquals($expected, $parser->parse($stream)->getNode('body')->getNode(0)->getNode('expr…
71 $parser = new Parser($env);
73 $parser->parse($env->tokenize(new Source($template, 'index')));
167 $parser = new Parser($env);
169 $parser->parse($stream);
179 $parser = new Parser($env);
181 …$this->assertEquals($expected, $parser->parse($stream)->getNode('body')->getNode(0)->getNode('expr…
[all …]
DParserTest.php29 $parser = $this->getParser();
30 …$parser->setMacro('parent', $this->getMockBuilder('\Twig\Node\MacroNode')->disableOriginalConstruc…
45 …$parser = new Parser(new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMoc…
46 $parser->parse($stream);
61 …$parser = new Parser(new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMoc…
62 $parser->parse($stream);
70 $parser = $this->getParser();
72 $this->assertEquals($expected, $parser->filterBodyNodes($input));
99 $parser = $this->getParser();
101 $parser->filterBodyNodes($input);
[all …]
/plugin/findologicxmlexport/vendor/symfony/yaml/Tests/
DParserTest.php23 protected $parser; variable in Symfony\\Component\\Yaml\\Tests\\ParserTest
27 $this->parser = new Parser();
32 $this->parser = null;
42 $this->assertEquals($expected, var_export($this->parser->parse($yaml), true), $comment);
67 $content = $this->parser->parse($yaml);
85 $this->assertEquals('foo', $this->parser->parse($yaml));
400 $this->assertSame($expected, $this->parser->parse($yaml));
421 $this->assertSame($expected, $this->parser->parse($yaml));
430 …$this->assertEquals(['foo' => new B(), 'bar' => 1], $this->parser->parse($input, Yaml::PARSE_OBJEC…
439 …$this->assertEquals(['foo' => null, 'bar' => 1], $this->parser->parse($input), '->parse() does not…
[all …]
/plugin/dw2pdf/vendor/setasign/fpdi/src/PdfReader/
DPdfReader.php33 protected $parser; variable in setasign\\Fpdi\\PdfReader\\PdfReader
50 * @param PdfParser $parser
52 public function __construct(PdfParser $parser) argument
54 $this->parser = $parser;
62 if ($this->parser !== null) {
63 $this->parser->cleanUp();
74 return $this->parser;
85 return \implode('.', $this->parser->getPdfVersion());
99 $catalog = $this->parser->getCatalog();
101 $pages = PdfType::resolve(PdfDictionary::get($catalog, 'Pages'), $this->parser);
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/
DExpressionParser.php48 protected $parser; variable in Twig\\ExpressionParser
54 public function __construct(Parser $parser, $env = null) argument
56 $this->parser = $parser;
65 $this->env = $parser->getEnvironment();
74 $token = $this->parser->getCurrentToken();
77 $this->parser->getStream()->next();
84 $expr = \call_user_func($op['callable'], $this->parser, $expr);
91 $token = $this->parser->getCurrentToken();
103 $token = $this->parser->getCurrentToken();
107 $this->parser->getStream()->next();
[all …]
/plugin/dw2pdf/vendor/setasign/fpdi/src/PdfParser/CrossReference/
DCrossReference.php44 protected $parser; variable in setasign\\Fpdi\\PdfParser\\CrossReference\\CrossReference
54 * @param PdfParser $parser
58 public function __construct(PdfParser $parser, $fileHeaderOffset = 0) argument
60 $this->parser = $parser;
168 $parser = $this->parser;
170 $parser->getTokenizer()->clearStack();
171 $parser->getStreamReader()->reset($offset + $this->fileHeaderOffset);
175 $object = $parser->readValue(null, PdfIndirectObject::class);
206 $this->parser->getStreamReader()->reset($offset);
207 $this->parser->getTokenizer()->clearStack();
[all …]
/plugin/webdavclient/vendor/sabre/vobject/tests/VObject/Recur/
DRRuleIteratorTest.php660 $parser = new RRuleIterator('FREQ=DAILY', new DateTime('2014-08-02 00:00:13'));
661 $parser->next();
664 $parser->current()
668 $parser->key()
671 $parser->rewind();
675 $parser->current()
679 $parser->key()
687 $parser = new RRuleIterator($rule, $dt);
690 $parser->fastForward(new DateTime($fastForward));
694 while($parser->valid()) {
[all …]
/plugin/davcard/vendor/sabre/vobject/tests/VObject/Recur/
DRRuleIteratorTest.php660 $parser = new RRuleIterator('FREQ=DAILY', new DateTime('2014-08-02 00:00:13'));
661 $parser->next();
664 $parser->current()
668 $parser->key()
671 $parser->rewind();
675 $parser->current()
679 $parser->key()
687 $parser = new RRuleIterator($rule, $dt);
690 $parser->fastForward(new DateTime($fastForward));
694 while($parser->valid()) {
[all …]
/plugin/davcal/vendor/sabre/vobject/tests/VObject/Recur/
H A DRRuleIteratorTest.php660 $parser = new RRuleIterator('FREQ=DAILY', new DateTime('2014-08-02 00:00:13'));
661 $parser->next();
664 $parser->current()
668 $parser->key()
671 $parser->rewind();
675 $parser->current()
679 $parser->key()
687 $parser = new RRuleIterator($rule, $dt);
690 $parser->fastForward(new DateTime($fastForward));
694 while($parser->valid()) {
[all …]
/plugin/openid/Auth/Yadis/
DXRDS.php92 public $parser = null; variable in Auth_Yadis_Service
104 $c = $this->parser->content($elem);
137 $uri_string = $this->parser->content($elem);
138 $attrs = $this->parser->attributes($elem);
177 $attributes = $this->parser->attributes($this->element);
203 return $this->parser->evalXPath($name, $this->element);
216 $expires_element = $xrd_element->parser->evalXPath('/xrd:Expires');
255 public $parser; variable in Auth_Yadis_XRDS
273 $this->parser = $xmlParser;
298 $parser = Auth_Yadis_getXMLParser();
[all …]
/plugin/pagecss/vendor/csstidy-2.2.1/
H A Dclass.csstidy_print.php48 public $parser; variable in csstidy_print
83 $this->parser = $css;
186 if (!$this->parser->get_cfg('preserve_css')) {
196 if ($this->parser->get_cfg('timestamp')) {
197 …array_unshift($this->tokens, array(COMMENT, ' CSSTidy ' . $this->parser->version . ': ' . date('r'…
208 $this->parser->log('Optimised @import : Removed "url("', 'Information');
224 $this->parser->log('Optimised @namespace : Removed "url("', 'Information');
245 if ($this->parser->get_cfg('lowercase_s'))
252 if ($this->parser->get_cfg('case_properties') === 2) {
254 } elseif ($this->parser->get_cfg('case_properties') === 1) {
[all …]
H A Dclass.csstidy_optimise.php49 public $parser; variable in csstidy_optimise
64 $this->parser = $css;
80 if ($this->parser->get_cfg('reverse_left_and_right') > 0) {
92 if ($this->parser->get_cfg('preserve_css')) {
96 if ((int)$this->parser->get_cfg('merge_selectors') === 2) {
104 if ($this->parser->get_cfg('discard_invalid_selectors')) {
112 if ($this->parser->get_cfg('optimise_shorthands') > 0) {
119 if ($this->parser->get_cfg('optimise_shorthands') < 2) {
125 if ($this->parser->get_cfg('optimise_shorthands') < 3) {
145 $shorthands = & $this->parser->data['csstidy']['shorthands'];
[all …]
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/
H A DParserTraceListener.php14 public $parser; variable in Antlr\\Antlr4\\Runtime\\ParserTraceListener
16 public function __construct(Parser $parser) argument
18 $this->parser = $parser;
23 $stream = $this->parser->getTokenStream();
28 $this->parser->getRuleNames()[$context->getRuleIndex()],
38 $this->parser->getCurrentRuleName()
44 $stream = $this->parser->getTokenStream();
49 $this->parser->getRuleNames()[$context->getRuleIndex()],
/plugin/icalevents/vendor/sabre/vobject/tests/VObject/Recur/
DRRuleIteratorTest.php942 $parser = new RRuleIterator('FREQ=DAILY', new DateTime('2014-08-02 00:00:13'));
943 $parser->next();
946 $parser->current()
950 $parser->key()
953 $parser->rewind();
957 $parser->current()
961 $parser->key()
969 $parser = new RRuleIterator($rule, $dt);
972 $parser->fastForward(new DateTime($fastForward));
976 while ($parser->valid()) {
[all …]
/plugin/findologicxmlexport/vendor/twig/twig/src/TokenParser/
DBlockTokenParser.php37 $stream = $this->parser->getStream();
39 if ($this->parser->hasBlock($name)) {
40 …printf("The block '%s' has already been defined line %d.", $name, $this->parser->getBlock($name)->…
42 $this->parser->setBlock($name, $block = new BlockNode($name, new Node([]), $lineno));
43 $this->parser->pushLocalScope();
44 $this->parser->pushBlockStack($name);
47 $body = $this->parser->subparse([$this, 'decideBlockEnd'], true);
57 new PrintNode($this->parser->getExpressionParser()->parseExpression(), $lineno),
63 $this->parser->popBlockStack();
64 $this->parser->popLocalScope();
/plugin/fedauth/Auth/Yadis/
DXRDS.php91 $this->parser = null;
104 $c = $this->parser->content($elem);
137 $uri_string = $this->parser->content($elem);
138 $attrs = $this->parser->attributes($elem);
177 $attributes = $this->parser->attributes($this->element);
203 return $this->parser->evalXPath($name, $this->element);
216 $expires_element = $xrd_element->$parser->evalXPath('/xrd:Expires');
260 $this->parser = $xmlParser;
284 $parser = Auth_Yadis_getXMLParser();
292 if (!($parser && $parser->init($xml_string, $ns_map))) {
[all …]
/plugin/findologicxmlexport/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/
DAnnotationReader.php141 private $parser; variable in Doctrine\\Common\\Annotations\\AnnotationReader
176 * @param DocParser $parser
180 public function __construct(DocParser $parser = null) argument
202 $this->parser = $parser ?: new DocParser();
217 $this->parser->setTarget(Target::TARGET_CLASS);
218 $this->parser->setImports($this->getClassImports($class));
219 $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
220 $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
222 return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName());
249 $this->parser->setTarget(Target::TARGET_PROPERTY);
[all …]
/plugin/asciidocjs/node_modules/is-expression/
Dindex.js18 var parser = new acorn.Parser(options, src, 0);
21 parser.strict = true;
25 parser.skipLineComment = function (startSkip) {
30 parser.nextToken();
31 parser.parseExpression();
33 if (parser.type !== acorn.tokTypes.eof) {
34 parser.unexpected();
/plugin/authucenter/lib/uc_client/lib/
Dxml.class.php33 var $parser; variable in XML
48 $this->parser = xml_parser_create('ISO-8859-1');
49 xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false);
50 xml_set_object($this->parser, $this);
51 xml_set_element_handler($this->parser, 'open','close');
52 xml_set_character_data_handler($this->parser, 'data');
56 xml_parser_free($this->parser);
62 return xml_parse($this->parser, $data, true) && !$this->failed ? $this->document : '';
65 function open(&$parser, $tag, $attributes) { argument
86 function data(&$parser, $data) { argument
[all …]
/plugin/bibtex/OSBib/
DPARSEXML.php79 $this->parser = xml_parser_create('UTF-8');
80 xml_set_object($this->parser, $this);
81 xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false);
82 xml_set_element_handler($this->parser, "startElement", "endElement");
83 xml_set_character_data_handler($this->parser, "characterData");
85 xml_parse($this->parser, $xmlString);
86 xml_parser_free($this->parser);
94 function startElement($parser, $name, $attrs)
106 function endElement($parser, $name)
124 function characterData($parser, $data)
/plugin/webdav/vendor/sabre/vobject/lib/
DReader.php45 $parser = new Parser\MimeDir();
46 $parser->setCharset($charset);
47 $result = $parser->parse($data, $options);
69 $parser = new Parser\Json();
70 $result = $parser->parse($data, $options);
90 $parser = new Parser\XML();
91 $result = $parser->parse($data, $options);

12345678910>>...22