Lines Matching refs:flags
46 …* @param int $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser beha…
52 public function parseFile(string $filename, int $flags = 0) argument
65 return $this->parse(file_get_contents($filename), $flags);
75 …* @param int $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser behavior
81 public function parse(string $value, int $flags = 0) argument
97 $data = $this->doParse($value, $flags);
116 private function doParse(string $value, int $flags) argument
144 …if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLi…
158 Inline::initialize($flags, $this->getRealCurrentLineNb(), $this->filename);
186 $data[] = $this->parseBlock($currentLineNumber, rtrim($sequenceYaml), $flags);
188 …>parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true) ?? '', $flags);
189 … } elseif (null !== $subTag = $this->getLineTag(ltrim($values['value'], ' '), $flags)) {
192 … $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags)
208 $data[] = $this->parseBlock($this->getRealCurrentLineNb(), $block, $flags);
210 $data[] = $this->parseValue($values['value'], $flags, $context);
259 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $refValue instanceof \stdClass) {
274 … $parsed = $this->parseBlock($this->getRealCurrentLineNb() + 1, $value, $flags);
276 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsed instanceof \stdClass) {
289 … if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsedItem instanceof \stdClass) {
314 …value'], '#') || (null !== $subTag = $this->getLineTag($values['value'], $flags)) || '<<' === $key…
332 … $value = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(), $flags);
336 … if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $value instanceof \stdClass) {
354 $value = $this->parseValue(rtrim($values['value']), $flags, $context);
373 return Inline::parse($this->lexInlineQuotedString(), $flags, $this->refs);
386 $parsedMapping = Inline::parse($this->lexInlineMapping(), $flags, $this->refs);
407 … $parsedSequence = Inline::parse($this->lexInlineSequence(), $flags, $this->refs);
435 $value = Inline::parse($this->lines[0], $flags, $this->refs);
505 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && 'mapping' === $context && !\is_object($data)) {
518 private function parseBlock(int $offset, string $yaml, int $flags) argument
537 return $parser->doParse($yaml, $flags);
714 …* @param int $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser behav…
721 private function parseValue(string $value, int $flags, string $context) argument
761 return Inline::parse($this->lexInlineMapping($cursor), $flags, $this->refs);
765 return Inline::parse($this->lexInlineSequence($cursor), $flags, $this->refs);
772 … $parsedValue = Inline::parse($this->lexInlineQuotedString($cursor), $flags, $this->refs);
808 $parsedValue = Inline::parse($value, $flags, $this->refs);
1082 …preg_match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset =… argument
1084 if (false === $ret = preg_match($pattern, $subject, $matches, $flags, $offset)) {
1126 private function getLineTag(string $value, int $flags, bool $nextLineCheck = true): ?string argument
1143 if (Yaml::PARSE_CUSTOM_TAGS & $flags) {