Lines Matching refs:flags

44 …   * @param int    $flags    A bit field of PARSE_* constants to customize the YAML parser behavior
50 public function parseFile(string $filename, int $flags = 0) argument
63 return $this->parse(file_get_contents($filename), $flags);
73 * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
79 public function parse(string $value, int $flags = 0) argument
96 $data = $this->doParse($value, $flags);
121 private function doParse(string $value, int $flags) argument
148 …if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLi…
162 Inline::initialize($flags, $this->getRealCurrentLineNb(), $this->filename);
183 …>parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true) ?? '', $flags);
184 … } elseif (null !== $subTag = $this->getLineTag(ltrim($values['value'], ' '), $flags)) {
187 … $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags)
199 $data[] = $this->parseBlock($this->getRealCurrentLineNb(), $block, $flags);
201 $data[] = $this->parseValue($values['value'], $flags, $context);
250 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $refValue instanceof \stdClass) {
265 … $parsed = $this->parseBlock($this->getRealCurrentLineNb() + 1, $value, $flags);
267 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsed instanceof \stdClass) {
280 … if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsedItem instanceof \stdClass) {
305 …value'], '#') || (null !== $subTag = $this->getLineTag($values['value'], $flags)) || '<<' === $key…
323 … $value = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(), $flags);
327 … if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $value instanceof \stdClass) {
345 $value = $this->parseValue(rtrim($values['value']), $flags, $context);
371 $value = Inline::parse($this->lines[0], $flags, $this->refs);
432 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && !\is_object($data) && 'mapping' === $context) {
445 private function parseBlock(int $offset, string $yaml, int $flags) argument
464 return $parser->doParse($yaml, $flags);
635 * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
642 private function parseValue(string $value, int $flags, string $context) argument
683 return Inline::parse($value, $flags, $this->refs);
719 $parsedValue = Inline::parse($value, $flags, $this->refs);
1008 …preg_match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset =… argument
1010 if (false === $ret = preg_match($pattern, $subject, $matches, $flags, $offset)) {
1052 private function getLineTag(string $value, int $flags, bool $nextLineCheck = true): ?string argument
1069 if (Yaml::PARSE_CUSTOM_TAGS & $flags) {