Located in File: /src/QueryPath/CssParser.php
This provides a simple scanner for traversing an input stream.
Constructor __construct (line 782)
Method getNameString (line 929)
A name string must be composed of only characters defined in CssToken:char: -_a-zA-Z0-9
Method getQuotedString (line 955)
See CSS Selectors specification, section 11, for the definition of string.
This will check for string1, string2, and the case where a string is unquoted (Oddly absent from the "official" grammar, though such strings are present as examples in the spec.)
Note: Though the grammar supplied by CSS 3 Selectors section 11 does not address the contents of a pseudo-class value, the spec itself indicates that a pseudo-class value is a "value between parenthesis" [6.6]. The examples given use URLs among other things, making them closer to the definition of 'string' than to 'name'. So we handle them here as strings.
Method nextToken (line 807)
This sets the current token to the value of the next token in the stream.
Method peek (line 792)