diff options
author | Technosophos <[email protected]> | 2013-04-10 11:09:40 -0500 |
---|---|---|
committer | Technosophos <[email protected]> | 2013-04-10 11:09:40 -0500 |
commit | 00fc6a82f4dbbb4ac475489a7bd86bf1e665eaa4 (patch) | |
tree | 72930535c5d97601414007c18c0501fb4154befe /src | |
parent | 04fde93f07af13fdf5ddf5d5d539467135221d2a (diff) |
Added CharacterReference utility class.
Diffstat (limited to 'src')
-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) { + } +} |