You are here

public function TokenizerEscaping::escapeUnicode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php \Symfony\Component\CssSelector\Parser\Tokenizer\TokenizerEscaping::escapeUnicode()

Parameters

string $value:

Return value

string

1 call to TokenizerEscaping::escapeUnicode()
TokenizerEscaping::escapeUnicodeAndNewLine in vendor/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php

File

vendor/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php, line 42

Class

TokenizerEscaping
CSS selector tokenizer escaping applier.

Namespace

Symfony\Component\CssSelector\Parser\Tokenizer

Code

public function escapeUnicode($value) {
  $value = $this
    ->replaceUnicodeSequences($value);
  return preg_replace($this->patterns
    ->getSimpleEscapePattern(), '$1', $value);
}