Augmentation vers version 3.3.0
This commit is contained in:
22
vendor/s9e/regexp-builder/src/Output/PHP.php
vendored
Normal file
22
vendor/s9e/regexp-builder/src/Output/PHP.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package s9e\RegexpBuilder
|
||||
* @copyright Copyright (c) 2016-2018 The s9e Authors
|
||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||
*/
|
||||
namespace s9e\RegexpBuilder\Output;
|
||||
|
||||
class PHP extends PrintableAscii
|
||||
{
|
||||
/** {@inheritdoc} */
|
||||
protected $maxValue = 0x10FFFF;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function escapeUnicode($cp)
|
||||
{
|
||||
return sprintf('\\x{%04' . $this->hexCase . '}', $cp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user