function PHPExcel_Writer_Excel5_Parser::_advance in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php \PHPExcel_Writer_Excel5_Parser::_advance()
* Advance to the next valid token. * * @access private
6 calls to PHPExcel_Writer_Excel5_Parser::_advance()
- PHPExcel_Writer_Excel5_Parser::parse in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * The parsing method. It parses a formula. * * @access public *
- PHPExcel_Writer_Excel5_Parser::_condition in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * It parses a condition. It assumes the following rule: * Cond -> Expr [(">" | "<") Expr] * * @access private *
- PHPExcel_Writer_Excel5_Parser::_expression in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * It parses a expression. It assumes the following rule: * Expr -> Term [("+" | "-") Term] * -> "string" * -> "-" Term : Negative value * -> "+" Term : Positive…
- PHPExcel_Writer_Excel5_Parser::_fact in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * It parses a factor. It assumes the following rule: * Fact -> ( Expr ) * | CellRef * | CellRange * | Number * | Function * * @access private *
- PHPExcel_Writer_Excel5_Parser::_func in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * It parses a function call. It assumes the following rule: * Func -> ( Expr [,Expr]* ) * * @access private *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php, line 1040
Class
- PHPExcel_Writer_Excel5_Parser
- PHPExcel_Writer_Excel5_Parser
Code
function _advance() {
$i = $this->_current_char;
$formula_length = strlen($this->_formula);
// eat up white spaces
if ($i < $formula_length) {
while ($this->_formula[$i] == " ") {
++$i;
}
if ($i < $formula_length - 1) {
$this->_lookahead = $this->_formula[$i + 1];
}
$token = '';
}
while ($i < $formula_length) {
$token .= $this->_formula[$i];
if ($i < $formula_length - 1) {
$this->_lookahead = $this->_formula[$i + 1];
}
else {
$this->_lookahead = '';
}
if ($this
->_match($token) != '') {
//if ($i < strlen($this->_formula) - 1) {
// $this->_lookahead = $this->_formula{$i+1};
//}
$this->_current_char = $i + 1;
$this->_current_token = $token;
return 1;
}
if ($i < $formula_length - 2) {
$this->_lookahead = $this->_formula[$i + 2];
}
else {
// if we run out of characters _lookahead becomes empty
$this->_lookahead = '';
}
++$i;
}
//die("Lexical error ".$this->_current_char);
}