Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Escaper

Fonctions membres publiques statiques

static requiresDoubleQuoting (string $value)
static escapeWithDoubleQuotes (string $value)
static requiresSingleQuoting (string $value)
static escapeWithSingleQuotes (string $value)

Champs de données

const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|\x7f|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9"

Description détaillée

Escaper encapsulates escaping rules for single and double-quoted YAML strings.

Auteur
Matthew Lewinski matth.nosp@m.ew@l.nosp@m.ewins.nosp@m.ki.o.nosp@m.rg

Documentation des fonctions membres

◆ escapeWithDoubleQuotes()

escapeWithDoubleQuotes ( string $value)
static

Escapes and surrounds a PHP value with double quotes.

Paramètres
string$valueA PHP value

◆ escapeWithSingleQuotes()

escapeWithSingleQuotes ( string $value)
static

Escapes and surrounds a PHP value with single quotes.

Paramètres
string$valueA PHP value

◆ requiresDoubleQuoting()

requiresDoubleQuoting ( string $value)
static

Determines if a PHP value would require double quoting in YAML.

Paramètres
string$valueA PHP value

◆ requiresSingleQuoting()

requiresSingleQuoting ( string $value)
static

Determines if a PHP value would require single quoting in YAML.

Paramètres
string$valueA PHP value

La documentation de cette classe a été générée à partir du fichier suivant :