Mercurial > hg > isophonics-drupal-site
diff vendor/masterminds/html5/src/HTML5/Parser/InputStream.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/masterminds/html5/src/HTML5/Parser/InputStream.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/masterminds/html5/src/HTML5/Parser/InputStream.php Thu Feb 28 13:21:36 2019 +0000 @@ -1,4 +1,5 @@ <?php + namespace Masterminds\HTML5\Parser; /** @@ -9,10 +10,11 @@ * * Currently provided InputStream implementations include * FileInputStream and StringInputStream. + * + * @deprecated since 2.4, to remove in 3.0. Use a string in the scanner instead. */ interface InputStream extends \Iterator { - /** * Returns the current line that is being consumed. * @@ -47,12 +49,12 @@ * and returns the matched substring. * * @see strcspn - * @param string $bytes - * Bytes to match. - * @param int $max - * Maximum number of bytes to scan. + * + * @param string $bytes Bytes to match. + * @param int $max Maximum number of bytes to scan. + * * @return mixed Index or false if no match is found. You should use strong - * equality when checking the result, since index could be 0. + * equality when checking the result, since index could be 0. */ public function charsUntil($bytes, $max = null); @@ -63,20 +65,18 @@ * and returns the matched substring. * * @see strspn - * @param string $bytes - * A mask of bytes to match. If ANY byte in this mask matches the - * current char, the pointer advances and the char is part of the - * substring. - * @param int $max - * The max number of chars to read. + * + * @param string $bytes A mask of bytes to match. If ANY byte in this mask matches the + * current char, the pointer advances and the char is part of the + * substring. + * @param int $max The max number of chars to read. */ public function charsWhile($bytes, $max = null); /** * Unconsume one character. * - * @param int $howMany - * The number of characters to move the pointer back. + * @param int $howMany The number of characters to move the pointer back. */ public function unconsume($howMany = 1);