@@ 253-262 (lines=10) @@ | ||
250 | // independent character evaluation (order not important) |
|
251 | ||
252 | // establish state-dependent character evaluations |
|
253 | if ($this->formula{$index} == self::QUOTE_DOUBLE) { |
|
254 | if (strlen($value > 0)) { |
|
255 | // unexpected |
|
256 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
257 | $value = ""; |
|
258 | } |
|
259 | $inString = true; |
|
260 | ++$index; |
|
261 | continue; |
|
262 | } |
|
263 | ||
264 | if ($this->formula{$index} == self::QUOTE_SINGLE) { |
|
265 | if (strlen($value) > 0) { |
|
@@ 264-273 (lines=10) @@ | ||
261 | continue; |
|
262 | } |
|
263 | ||
264 | if ($this->formula{$index} == self::QUOTE_SINGLE) { |
|
265 | if (strlen($value) > 0) { |
|
266 | // unexpected |
|
267 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
268 | $value = ""; |
|
269 | } |
|
270 | $inPath = true; |
|
271 | ++$index; |
|
272 | continue; |
|
273 | } |
|
274 | ||
275 | if ($this->formula{$index} == self::BRACKET_OPEN) { |
|
276 | $inRange = true; |
|
@@ 282-292 (lines=11) @@ | ||
279 | continue; |
|
280 | } |
|
281 | ||
282 | if ($this->formula{$index} == self::ERROR_START) { |
|
283 | if (strlen($value) > 0) { |
|
284 | // unexpected |
|
285 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
286 | $value = ""; |
|
287 | } |
|
288 | $inError = true; |
|
289 | $value .= self::ERROR_START; |
|
290 | ++$index; |
|
291 | continue; |
|
292 | } |
|
293 | ||
294 | // mark start and end of arrays and array rows |
|
295 | if ($this->formula{$index} == self::BRACE_OPEN) { |