Ignore:
Timestamp:
03/16/05 14:00:04 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r6572 r6831  
    399399void MDataChain::AddParenthesis(TString &test, const TString op) const
    400400{
     401    // Signiture of an exponential number 1e12
     402    static const TRegexp rexp("[.0123456789]e[+-][0123456789]");
     403
    401404    const TString low = op(1, op.Length());
    402405    if (low.Length()==0)
     
    425428            if (cnt>0 || low.First(check[i])<0)
    426429                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;
    427435            break;
    428436        }
     
    437445                cnt--;
    438446            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())
    439452                continue;
    440453            break;
Note: See TracChangeset for help on using the changeset viewer.