Changeset 6831 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 03/16/05 14:00:04 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r6572 r6831 399 399 void MDataChain::AddParenthesis(TString &test, const TString op) const 400 400 { 401 // Signiture of an exponential number 1e12 402 static const TRegexp rexp("[.0123456789]e[+-][0123456789]"); 403 401 404 const TString low = op(1, op.Length()); 402 405 if (low.Length()==0) … … 425 428 if (cnt>0 || low.First(check[i])<0) 426 429 continue; 430 431 // Check if operator belongs to an exponential number 432 const TString sub(check(i-2, 4)); 433 if (!sub(rexp).IsNull()) 434 continue; 427 435 break; 428 436 } … … 437 445 cnt--; 438 446 if (cnt>0 || low.First(check[j])<0) 447 continue; 448 449 // Check if operator belongs to an exponential number 450 const TString sub(check(j-2, 4)); 451 if (!sub(rexp).IsNull()) 439 452 continue; 440 453 break;
Note:
See TracChangeset
for help on using the changeset viewer.