Changeset 449 in Sophya for trunk/SophyaPI/PIext/piacmd.cc
- Timestamp:
- Oct 1, 1999, 3:47:18 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r384 r449 480 480 481 481 // >>>> 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); 482 p = 0; 483 q = s.find_first_of(" \t"); 484 l = s.length(); 485 string w1 = (q < l) ? s.substr(p,q-p) : s.substr(p); 486 it = mAliases.find(w1); 487 if (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); 486 492 p = 0; 487 493 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++;494 494 } 495 495
Note:
See TracChangeset
for help on using the changeset viewer.