| /plugin/elasticsearch/vendor/ezimuel/guzzlestreams/tests/ |
| D | StreamTest.php | 23 $stream = new Stream($handle); 24 $this->assertTrue($stream->isReadable()); 25 $this->assertTrue($stream->isWritable()); 26 $this->assertTrue($stream->isSeekable()); 27 $this->assertEquals('php://temp', $stream->getMetadata('uri')); 28 $this->assertIsArray($stream->getMetadata()); 29 $this->assertEquals(4, $stream->getSize()); 30 $this->assertFalse($stream->eof()); 31 $stream->close(); 37 $stream = new Stream($handle); [all …]
|
| /plugin/scrape/vendor/symfony/css-selector/Parser/ |
| D | Parser.php | 43 $stream = $this->tokenizer->tokenize($reader); 45 return $this->parseSelectorList($stream); 95 private function parseSelectorList(TokenStream $stream): array argument 97 $stream->skipWhitespace(); 101 $selectors[] = $this->parserSelectorNode($stream); 103 if ($stream->getPeek()->isDelimiter([','])) { 104 $stream->getNext(); 105 $stream->skipWhitespace(); 114 private function parserSelectorNode(TokenStream $stream): Node\SelectorNode argument 116 [$result, $pseudoElement] = $this->parseSimpleSelector($stream); [all …]
|
| /plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/ |
| D | LexerTest.php | 25 $stream = $lexer->tokenize('{{ foo }}', 'foo'); 26 $this->assertEquals('foo', $stream->getFilename()); 27 $this->assertEquals('{{ foo }}', $stream->getSource()); 35 $stream = $lexer->tokenize(new Source($template, 'index')); 37 $stream->expect(Token::BLOCK_START_TYPE); 38 $this->assertSame('§', $stream->expect(Token::NAME_TYPE)->getValue()); 46 $stream = $lexer->tokenize(new Source($template, 'index')); 48 $stream->expect(Token::VAR_START_TYPE); 49 $this->assertSame('§', $stream->expect(Token::NAME_TYPE)->getValue()); 63 $stream = $lexer->tokenize(new Source($template, 'index')); [all …]
|
| D | TokenStreamTest.php | 38 $stream = new TokenStream([], 'foo', '{{ foo }}'); 39 $this->assertEquals('foo', $stream->getFilename()); 40 $this->assertEquals('{{ foo }}', $stream->getSource()); 41 $this->assertEquals('foo', $stream->getSourceContext()->getName()); 42 $this->assertEquals('{{ foo }}', $stream->getSourceContext()->getCode()); 47 $stream = new TokenStream(self::$tokens); 49 while (!$stream->isEOF()) { 50 $token = $stream->next(); 63 $stream = new TokenStream([ 66 while (!$stream->isEOF()) { [all …]
|
| /plugin/asciidocjs/node_modules/token-stream/ |
| D | README.md | 1 # token-stream 5 …s](https://img.shields.io/travis/jadejs/token-stream/master.svg)](https://travis-ci.org/jadejs/tok… 6 …s](https://img.shields.io/gemnasium/jadejs/token-stream.svg)](https://gemnasium.com/jadejs/token-s… 7 …[NPM version](https://img.shields.io/npm/v/token-stream.svg)](https://www.npmjs.org/package/token-… 11 npm install token-stream 16 var TokenStream = require('token-stream'); 18 var stream = new TokenStream([ 24 assert(stream.peek() === 'a'); 25 assert(stream.lookahead(0) == 'a'); 26 assert(stream.lookahead(1) == 'b'); [all …]
|
| /plugin/findologicxmlexport/vendor/hoa/stream/Test/Unit/ |
| D | Stream.php | 152 $stream = new SUT($name, null, true) 154 ->when($result = $stream->open()) 157 ->isIdenticalTo($stream) 173 $stream = new SUT($name), 174 $resource = $stream->getStream(), 175 $context = $stream->getStreamContext() 177 ->when($result = $stream->close()) 181 ->boolean($stream->isOpened()) 183 ->variable(SUT::getStreamHandler($stream)) 185 ->variable($stream->getStreamName()) [all …]
|
| /plugin/asciidocjs/node_modules/token-stream/test/ |
| D | index.js | 9 var stream = new TokenStream([ variable 16 stream.lookahead(9); 18 assert(stream.peek() === 'a'); 19 assert(stream.lookahead(0) == 'a'); 20 assert(stream.lookahead(1) == 'b'); 22 assert(stream.advance() === 'a'); 23 assert(stream.peek() === 'b'); 24 assert(stream.lookahead(0) == 'b'); 25 assert(stream.lookahead(1) == 'c'); 27 stream.defer('z'); [all …]
|
| /plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/ |
| D | AsseticTokenParser.php | 57 $stream = $this->parser->getStream(); 58 while (!$stream->test(\Twig_Token::BLOCK_END_TYPE)) { 59 if ($stream->test(\Twig_Token::STRING_TYPE)) { 61 $inputs[] = $stream->next()->getValue(); 62 } elseif ($stream->test(\Twig_Token::NAME_TYPE, 'filter')) { 64 $stream->next(); 65 $stream->expect(\Twig_Token::OPERATOR_TYPE, '='); 66 …ers = array_merge($filters, array_filter(array_map('trim', explode(',', $stream->expect(\Twig_Toke… 67 } elseif ($stream->test(\Twig_Token::NAME_TYPE, 'output')) { 69 $stream->next(); [all …]
|
| /plugin/authgooglesheets/vendor/monolog/monolog/src/Monolog/Handler/ |
| D | StreamHandler.php | 35 protected $stream; variable in Monolog\\Handler\\StreamHandler 48 …* @param resource|string $stream If a missing path can't be created, an UnexpectedValueExc… 54 …public function __construct($stream, $level = Logger::DEBUG, bool $bubble = true, ?int $filePermis… argument 71 if (is_resource($stream)) { 72 $this->stream = $stream; 74 stream_set_chunk_size($this->stream, $this->streamChunkSize); 75 } elseif (is_string($stream)) { 76 $this->url = Utils::canonicalizePath($stream); 90 if ($this->url && is_resource($this->stream)) { 91 fclose($this->stream); [all …]
|
| /plugin/jplayer/vendor/happyworm/jplayer/lib/aurora/ |
| D | flac.js | 67 var stream = this.bitstream; 68 if (!stream.available(32)) 72 if ((stream.read(15) & 0x7FFF) !== 0x7FFC) 75 var isVarSize = stream.read(1), // variable block size stream code 76 bsCode = stream.read(4), // block size 77 srCode = stream.read(4), // sample rate code 78 chMode = stream.read(4), // channel mode 79 bpsCode = stream.read(3); // bits per sample 81 stream.advance(1); // reserved bit 110 while (stream.read(1) === 1) [all …]
|
| /plugin/elasticsearch/vendor/ezimuel/guzzlestreams/src/ |
| D | Stream.php | 9 private $stream; variable in GuzzleHttp\\Stream\\Stream 50 $stream = fopen('php://temp', 'r+'); 52 fwrite($stream, $resource); 53 fseek($stream, 0); 55 return new self($stream, $options); 97 * @param resource $stream Stream resource to wrap. 102 public function __construct($stream, $options = []) argument 104 if (!is_resource($stream)) { 116 $this->attach($stream); 129 if (!$this->stream) { [all …]
|
| D | StreamDecoratorTrait.php | 13 * @param StreamInterface $stream Stream to decorate 15 public function __construct(StreamInterface $stream) argument 17 $this->stream = $stream; 27 $this->stream = $this->createStream(); 28 return $this->stream; 62 $result = call_user_func_array(array($this->stream, $method), $args); 65 return $result === $this->stream ? $this : $result; 70 $this->stream->close(); 75 return $this->stream->getMetadata($key); 80 return $this->stream->detach(); [all …]
|
| D | GuzzleStreamWrapper.php | 13 private $stream; variable in GuzzleHttp\\Stream\\GuzzleStreamWrapper 21 * @param StreamInterface $stream The stream to get a resource for 26 public static function getResource(StreamInterface $stream) argument 30 if ($stream->isReadable()) { 31 $mode = $stream->isWritable() ? 'r+' : 'r'; 32 } elseif ($stream->isWritable()) { 40 'guzzle' => ['stream' => $stream], 63 $this->stream = $options['guzzle']['stream']; 70 return $this->stream->read($count); 75 return (int) $this->stream->write($data); [all …]
|
| D | Utils.php | 51 * @param StreamInterface $stream Stream to read 56 public static function copyToString(StreamInterface $stream, $maxLen = -1) argument 61 while (!$stream->eof()) { 62 $buf = $stream->read(1048576); 72 while (!$stream->eof() && $len < $maxLen) { 73 $buf = $stream->read($maxLen - $len); 124 * @param StreamInterface $stream Stream to calculate the hash for 132 StreamInterface $stream, argument 136 $pos = $stream->tell(); 138 if ($pos > 0 && !$stream->seek(0)) { [all …]
|
| /plugin/authgooglesheets/vendor/guzzlehttp/psr7/src/ |
| D | StreamWrapper.php | 18 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper 26 * @param StreamInterface $stream The stream to get a resource for 32 public static function getResource(StreamInterface $stream) argument 36 if ($stream->isReadable()) { 37 $mode = $stream->isWritable() ? 'r+' : 'r'; 38 } elseif ($stream->isWritable()) { 45 return fopen('guzzle://stream', $mode, null, self::createStreamContext($stream)); 51 * @param StreamInterface $stream 55 public static function createStreamContext(StreamInterface $stream) argument 58 'guzzle' => ['stream' => $stream] [all …]
|
| D | Stream.php | 25 private $stream; variable in GuzzleHttp\\Psr7\\Stream 42 * @param resource $stream Stream resource to wrap. 47 public function __construct($stream, $options = []) argument 49 if (!is_resource($stream)) { 61 $this->stream = $stream; 62 $meta = stream_get_meta_data($this->stream); 91 if (!isset($this->stream)) { 95 $contents = stream_get_contents($this->stream); 106 if (isset($this->stream)) { 107 if (is_resource($this->stream)) { [all …]
|
| D | StreamDecoratorTrait.php | 15 * @param StreamInterface $stream Stream to decorate 17 public function __construct(StreamInterface $stream) argument 19 $this->stream = $stream; 33 $this->stream = $this->createStream(); 34 return $this->stream; 70 $result = call_user_func_array([$this->stream, $method], $args); 73 return $result === $this->stream ? $this : $result; 78 $this->stream->close(); 83 return $this->stream->getMetadata($key); 88 return $this->stream->detach(); [all …]
|
| D | LimitStream.php | 23 * @param StreamInterface $stream Stream to wrap 30 StreamInterface $stream, argument 34 $this->stream = $stream; 42 if ($this->stream->eof()) { 51 return $this->stream->tell() >= $this->offset + $this->limit; 60 if (null === ($length = $this->stream->getSize())) { 91 $this->stream->seek($offset); 100 return $this->stream->tell() - $this->offset; 112 $current = $this->stream->tell(); 116 if ($this->stream->isSeekable()) { [all …]
|
| D | InflateStream.php | 24 public function __construct(StreamInterface $stream) argument 27 $header = $stream->read(10); 28 $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); 30 $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); 31 $resource = StreamWrapper::getResource($stream); 33 …$this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resou… 37 * @param StreamInterface $stream 42 private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) argument 49 while ($stream->read(1) !== chr(0)) {
|
| /plugin/matrixnotifierwas/vendor/guzzlehttp/psr7/src/ |
| D | Stream.php | 22 private $stream; variable in GuzzleHttp\\Psr7\\Stream 45 * @param resource $stream Stream resource to wrap. 50 public function __construct($stream, array $options = []) argument 52 if (!is_resource($stream)) { 61 $this->stream = $stream; 62 $meta = stream_get_meta_data($this->stream); 97 if (!isset($this->stream)) { 105 return Utils::tryGetContents($this->stream); 110 if (isset($this->stream)) { 111 if (is_resource($this->stream)) { [all …]
|
| D | StreamDecoratorTrait.php | 12 * @property StreamInterface $stream 17 * @param StreamInterface $stream Stream to decorate 19 public function __construct(StreamInterface $stream) argument 21 $this->stream = $stream; 33 $this->stream = $this->createStream(); 35 return $this->stream; 72 $callable = [$this->stream, $method]; 76 return $result === $this->stream ? $this : $result; 81 $this->stream->close(); 89 return $this->stream->getMetadata($key); [all …]
|
| D | StreamWrapper.php | 20 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper 28 * @param StreamInterface $stream The stream to get a resource for 34 public static function getResource(StreamInterface $stream) argument 38 if ($stream->isReadable()) { 39 $mode = $stream->isWritable() ? 'r+' : 'r'; 40 } elseif ($stream->isWritable()) { 47 return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream)); 55 public static function createStreamContext(StreamInterface $stream) argument 58 'guzzle' => ['stream' => $stream], 81 $this->stream = $options['guzzle']['stream']; [all …]
|
| D | LimitStream.php | 23 private $stream; variable in GuzzleHttp\\Psr7\\LimitStream 26 * @param StreamInterface $stream Stream to wrap 33 StreamInterface $stream, argument 37 $this->stream = $stream; 45 if ($this->stream->eof()) { 54 return $this->stream->tell() >= $this->offset + $this->limit; 62 if (null === ($length = $this->stream->getSize())) { 92 $this->stream->seek($offset); 100 return $this->stream->tell() - $this->offset; 112 $current = $this->stream->tell(); [all …]
|
| /plugin/findologicxmlexport/vendor/hoa/stream/Test/Integration/Filter/ |
| D | Filter.php | 59 $stream = fopen($filename, 'r'), 63 SUT::append($stream, $name), 64 $result = stream_get_contents($stream) 78 $stream = fopen($filename, 'r'), 82 SUT::prepend($stream, $name), 83 $result = stream_get_contents($stream) 97 $stream = fopen($filename, 'r'), 102 SUT::append($stream, $name1), 103 SUT::append($stream, $name2), 104 $result = stream_get_contents($stream) [all …]
|
| /plugin/codemirror/dist/modes/ |
| D | troff.min.js.map | 1 …stream","eatSpace","sol","ch","next","match","skipTo","eatWhile","eat","skipToEnd","cur","current"…
|