class PhpStringTokenParser
static protected | $replacements |
static string | parse(string $str) Parses a string token. | |
static string | parseEscapeSequences(string $str, string|null $quote) Parses escape sequences in strings (all string types apart from single quoted). | |
static string | parseDocString(string $startToken, string $str) Parses a constant doc string. |
Parses a string token.
string | $str | String token content |
string | The parsed string |
Parses escape sequences in strings (all string types apart from single quoted).
string | $str | String without quotes |
string|null | $quote | Quote type |
string | String with escape sequences parsed |
Parses a constant doc string.
string | $startToken | Doc string start token content (<<<SMTHG) |
string | $str | String token content |
string | Parsed string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Extractor/PhpStringTokenParser.html