Changeset 449 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Oct 1, 1999, 3:47:18 PM (26 years ago)
Author:
ercodmgr
Message:

Fin lecture NtupleASCII, amelioration/niveau de print ds NamedObjMgr Reza 1/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.cc

    r384 r449  
    480480
    481481// >>>> Substitution d'alias (1er mot)
    482 int als = 0;
    483 while (als < 2) {
    484   p = s.find_first_not_of(" ");
    485   s = s.substr(p);
     482p = 0;
     483q = s.find_first_of(" \t");
     484l = s.length();
     485string w1 =  (q < l) ? s.substr(p,q-p) : s.substr(p);
     486it = mAliases.find(w1);
     487if (it != mAliases.end())  {
     488  s =  (q < l) ? ((*it).second + s.substr(q)) : (*it).second ;
     489  l = s.length();
     490  p=s.find_first_not_of(" \t");
     491  if (p < l) s = s.substr(p);
    486492  p = 0;
    487493  q = s.find_first_of(" ");
    488   l = s.length();
    489   string w1 =  (q < l) ? s.substr(p,q-p) : s.substr(p);
    490   it = mAliases.find(w1);
    491   if (it != mAliases.end())  s =  (*it).second + s.substr(q);
    492   else als++;
    493   als++;
    494494  }
    495495
Note: See TracChangeset for help on using the changeset viewer.