Changeset 2288 in Sophya


Ignore:
Timestamp:
Dec 5, 2002, 3:26:45 PM (23 years ago)
Author:
cmv
Message:

debug decodage de string rz dans EnumeratedSeq 5/12/02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/utilarr.cc

    r2286 r2288  
    240240    else {
    241241      q = str.find_first_of(sep,p);
    242       if (!isdigit(str[p]) && !(str[p] == '+') && !(str[p] == '-') ) { // une chaine
     242      if ( !isdigit(str[p]) && !(str[p] == '+')
     243        && !(str[p] == '-') && !(str[p] == '.') ) { // une chaine
    243244        vecv_.push_back(MuTyV(str.substr(p,q-p)));
     245        n++;
    244246      }
    245247      else {  // C'est un nombre
    246         if (str.find('.',p) < q)   { // c'est un flottant
     248        if (str.find_first_of(".eE",p) < q)   { // c'est un flottant
    247249          r_8 x = atof(str.substr(p,q-p).c_str());
    248250          vecv_.push_back(MuTyV(x));
     
    281283    is.getline(buff, 256);
    282284    //    cout << " DBG : buff=" << buff << " :state=" << is.rdstate() << endl;
    283     line += buff;
     285    line += buff;  nel = 0;
    284286    if (is.good()) {
    285287      if ((line.length() > 0) && (line[0]!=clm)) {
     
    290292        nbadtot += nbad;
    291293      }
    292               cout << " Decoding line = " << line << " Nel= " << nel << endl;
     294      //              cout << " Decoding line = " << line << " Nel= " << nel << endl;
    293295      line = "";
    294296    }
     
    296298  if ((line.length() > 0) && (line[0]!=clm)) {
    297299    nel = Append(line, nbad);
    298         cout << " Decoding Eline = " << line << " Nel= " << nel << endl;
     300    //        cout << " Decoding Eline = " << line << " Nel= " << nel << endl;
    299301    if (nel > 0)  {
    300302      nr++;  n += nel;
Note: See TracChangeset for help on using the changeset viewer.