Changeset 2288 in Sophya
- Timestamp:
- Dec 5, 2002, 3:26:45 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.cc
r2286 r2288 240 240 else { 241 241 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 243 244 vecv_.push_back(MuTyV(str.substr(p,q-p))); 245 n++; 244 246 } 245 247 else { // C'est un nombre 246 if (str.find ('.',p) < q) { // c'est un flottant248 if (str.find_first_of(".eE",p) < q) { // c'est un flottant 247 249 r_8 x = atof(str.substr(p,q-p).c_str()); 248 250 vecv_.push_back(MuTyV(x)); … … 281 283 is.getline(buff, 256); 282 284 // cout << " DBG : buff=" << buff << " :state=" << is.rdstate() << endl; 283 line += buff; 285 line += buff; nel = 0; 284 286 if (is.good()) { 285 287 if ((line.length() > 0) && (line[0]!=clm)) { … … 290 292 nbadtot += nbad; 291 293 } 292 cout << " Decoding line = " << line << " Nel= " << nel << endl;294 // cout << " Decoding line = " << line << " Nel= " << nel << endl; 293 295 line = ""; 294 296 } … … 296 298 if ((line.length() > 0) && (line[0]!=clm)) { 297 299 nel = Append(line, nbad); 298 cout << " Decoding Eline = " << line << " Nel= " << nel << endl;300 // cout << " Decoding Eline = " << line << " Nel= " << nel << endl; 299 301 if (nel > 0) { 300 302 nr++; n += nel;
Note:
See TracChangeset
for help on using the changeset viewer.