You are here

private static function Inline::getHexRegex in Lockr 7.3

Gets a regex that matches a YAML number in hexadecimal notation.

Return value

string

2 calls to Inline::getHexRegex()
Inline::dump in vendor/symfony/yaml/Inline.php
Dumps a given PHP variable to a YAML string.
Inline::evaluateScalar in vendor/symfony/yaml/Inline.php
Evaluates scalars and replaces magic values.

File

vendor/symfony/yaml/Inline.php, line 884

Class

Inline
Inline implements a YAML parser/dumper for the YAML inline syntax.

Namespace

Symfony\Component\Yaml

Code

private static function getHexRegex() {
  return '~^0x[0-9a-f_]++$~i';
}