function Tokenizer::is_alpha
Checks whether a (single-byte) character is an ASCII letter or not.
Parameters
string $input A single-byte string:
Return value
bool True if it is a letter, False otherwise
2 calls to Tokenizer::is_alpha()
- Tokenizer::consumeData in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Consume a character and make a move. HTML5 8.2.4.1.
- Tokenizer::endTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Consume an end tag. See section 8.2.4.9.
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 1208
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
protected function is_alpha($input) {
$code = ord($input);
return $code >= 97 && $code <= 122 || $code >= 65 && $code <= 90;
}