public static function SassString::isa in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/script/literals/SassString.php \SassString::isa()
Returns a value indicating if a token of this type can be matched at the start of the subject string.
Parameters
string the subject string:
Return value
mixed match at the start of the string or false if no match
Overrides SassLiteral::isa
1 call to SassString::isa()
- SassScriptLexer::lex in phpsass/
script/ SassScriptLexer.php - Lex an expression into SassScript tokens.
File
- phpsass/
script/ literals/ SassString.php, line 103
Class
- SassString
- SassString class. Provides operations and type testing for Sass strings. @package PHamlP @subpackage Sass.script.literals
Code
public static function isa($subject) {
return preg_match(self::MATCH, $subject, $matches) ? $matches[0] : false;
}