diff options
Diffstat (limited to 'src/HTML5')
-rw-r--r-- | src/HTML5/Parser/CharacterReference.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/HTML5/Parser/CharacterReference.php b/src/HTML5/Parser/CharacterReference.php new file mode 100644 index 0000000..72e1815 --- /dev/null +++ b/src/HTML5/Parser/CharacterReference.php @@ -0,0 +1,37 @@ +<?php +namespace HTML5\Parser; + +/** + * Manage entity references. + */ +class CharacterReference { + /** + * Given a name (e.g. 'amp'), lookup the UTF-8 character ('&') + * + * @param string $name + * The name to look up. + * @return string + * The character sequence. In UTF-8 this may be more than one byte. + */ + public static function lookupName($name) { + return ''; + } + /** + * Given a Unicode codepoint, return the UTF-8 character. + */ + public static function lookupCode($codePoint) { + return ''; + } + + /** + * Given a decimal number, return the UTF-8 character. + */ + public static function lookupDecimal($int) { + } + + /** + * Given a hexidecimal number, return the UTF-8 character. + */ + public static function lookupHex($hexdec) { + } +} |