Lines Matching refs:buffer
18 * Try to get token in buffer at offset position.
20 * @param string $buffer
24 abstract public function getToken(string $buffer, int $offset): ?Token;
45 * @param string $buffer
50 protected function matchPattern(string $buffer, int $offset, string $pattern): ?string {
52 $pattern, $buffer, $match, PREG_OFFSET_CAPTURE, $offset
64 protected function matchPatterns(string $buffer, int $offset, array $patterns): ?Token {
67 $buffer, $offset, $pattern
78 protected function matchCharacters(string $buffer, int $offset, array $chars): ?Token {
79 if (isset($buffer[$offset])) {
80 $char = $buffer[$offset];