|
@@ 1433-1440 (lines=8) @@
|
| 1430 |
|
// Translated BOOLEAN values to TRUE AND FALSE |
| 1431 |
|
$this->xh[$the_parser]['value'] = (bool) $this->xh[$the_parser]['ac']; |
| 1432 |
|
} |
| 1433 |
|
elseif ($name=='DOUBLE') |
| 1434 |
|
{ |
| 1435 |
|
// we have a DOUBLE |
| 1436 |
|
// we must check that only 0123456789-.<space> are characters here |
| 1437 |
|
$this->xh[$the_parser]['value'] = preg_match('/^[+-]?[eE0-9\t \.]+$/', $this->xh[$the_parser]['ac']) |
| 1438 |
|
? (float) $this->xh[$the_parser]['ac'] |
| 1439 |
|
: 'ERROR_NON_NUMERIC_FOUND'; |
| 1440 |
|
} |
| 1441 |
|
else |
| 1442 |
|
{ |
| 1443 |
|
// we have an I4/INT |
|
@@ 1441-1448 (lines=8) @@
|
| 1438 |
|
? (float) $this->xh[$the_parser]['ac'] |
| 1439 |
|
: 'ERROR_NON_NUMERIC_FOUND'; |
| 1440 |
|
} |
| 1441 |
|
else |
| 1442 |
|
{ |
| 1443 |
|
// we have an I4/INT |
| 1444 |
|
// we must check that only 0123456789-<space> are characters here |
| 1445 |
|
$this->xh[$the_parser]['value'] = preg_match('/^[+-]?[0-9\t ]+$/', $this->xh[$the_parser]['ac']) |
| 1446 |
|
? (int) $this->xh[$the_parser]['ac'] |
| 1447 |
|
: 'ERROR_NON_NUMERIC_FOUND'; |
| 1448 |
|
} |
| 1449 |
|
$this->xh[$the_parser]['ac'] = ''; |
| 1450 |
|
$this->xh[$the_parser]['lv'] = 3; // indicate we've found a value |
| 1451 |
|
break; |