| 1 | <?php |
||
| 10 | abstract class PrintableAscii extends BaseImplementation |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string 'x' for lowercase hexadecimal symbols, 'X' for uppercase |
||
| 14 | */ |
||
| 15 | protected $hexCase; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Escape given ASCII codepoint |
||
| 19 | * |
||
| 20 | * @param integer $cp |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 6 | protected function escapeAscii($cp) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Escape given control code |
||
| 30 | * |
||
| 31 | * @param integer $cp |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 6 | protected function escapeControlCode($cp) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Output the representation of a unicode character |
||
| 43 | * |
||
| 44 | * @param integer $cp Unicode codepoint |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | abstract protected function escapeUnicode($cp); |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 32 | protected function outputValidValue($value) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | 34 | protected function setOptions(array $options) |
|
| 74 | } |