CodeExplorer replaceUnicodeSequences example
class TokenizerEscaping{ private TokenizerPatterns
$patterns;
public function __construct(TokenizerPatterns
$patterns) { $this->patterns =
$patterns;
} public function escapeUnicode(string
$value): string
{ $value =
$this->
replaceUnicodeSequences($value);
return preg_replace($this->patterns->
getSimpleEscapePattern(), '$1',
$value);
} public function escapeUnicodeAndNewLine(string
$value): string
{ $value =
preg_replace($this->patterns->
getNewLineEscapePattern(), '',
$value);
return $this->
escapeUnicode($value);
}