@@ 239-248 (lines=10) @@ | ||
236 | // independent character evaluation (order not important) |
|
237 | ||
238 | // establish state-dependent character evaluations |
|
239 | if ($this->formula[$index] == self::QUOTE_DOUBLE) { |
|
240 | if (strlen($value) > 0) { |
|
241 | // unexpected |
|
242 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
243 | $value = ''; |
|
244 | } |
|
245 | $inString = true; |
|
246 | ++$index; |
|
247 | ||
248 | continue; |
|
249 | } |
|
250 | ||
251 | if ($this->formula[$index] == self::QUOTE_SINGLE) { |
|
@@ 251-260 (lines=10) @@ | ||
248 | continue; |
|
249 | } |
|
250 | ||
251 | if ($this->formula[$index] == self::QUOTE_SINGLE) { |
|
252 | if (strlen($value) > 0) { |
|
253 | // unexpected |
|
254 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
255 | $value = ''; |
|
256 | } |
|
257 | $inPath = true; |
|
258 | ++$index; |
|
259 | ||
260 | continue; |
|
261 | } |
|
262 | ||
263 | if ($this->formula[$index] == self::BRACKET_OPEN) { |
|
@@ 271-281 (lines=11) @@ | ||
268 | continue; |
|
269 | } |
|
270 | ||
271 | if ($this->formula[$index] == self::ERROR_START) { |
|
272 | if (strlen($value) > 0) { |
|
273 | // unexpected |
|
274 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_UNKNOWN); |
|
275 | $value = ''; |
|
276 | } |
|
277 | $inError = true; |
|
278 | $value .= self::ERROR_START; |
|
279 | ++$index; |
|
280 | ||
281 | continue; |
|
282 | } |
|
283 | ||
284 | // mark start and end of arrays and array rows |