- Timestamp:
- 04/29/11 13:06:49 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Console.cc
r10429 r10496 133 133 { 134 134 const string siz = fLogO.GetSizeStr(); 135 return fContinous ? 136 Tools::Form("[%d]", GetLine()) : 137 Tools::Form("[%d:%s]", GetLine(), siz.c_str()); 135 136 string rc = "["; 137 rc += GetLine(); 138 return fContinous ? rc+']' : rc+':'+siz+']'; 138 139 } 139 140 -
trunk/FACT++/src/Readline.cc
r10485 r10496 536 536 string Readline::GetLinePrompt() const 537 537 { 538 return Tools::Form("[%d]", fLine); 538 string rc = "["; 539 rc += fLine; 540 return rc+"]"; 539 541 } 540 542 -
trunk/FACT++/src/ReadlineWindow.cc
r10429 r10496 290 290 291 291 // Compile a proper format string 292 const string fmt = Tools::Form("%%-%ds", max); 292 string fmt = "%-"; 293 fmt += max; 294 fmt + 's'; 293 295 294 296 // loop over all entries and display them -
trunk/FACT++/src/StateMachineImp.cc
r10490 r10496 712 712 { 713 713 const StateNames::const_iterator i = fStateNames.find(state); 714 return i==fStateNames.end() || i->second.first.empty() ? Tools::Form("%d", state) : i->second.first; 714 715 string rc; 716 rc += state; 717 return i==fStateNames.end() || i->second.first.empty() ? rc : i->second.first; 715 718 } 716 719 … … 748 751 { 749 752 const string &str = GetStateName(state); 750 if (str==Tools::Form("%d", state)) 753 754 string s; 755 s += state; 756 if (str==s) 751 757 return str; 752 return str.empty() ? Tools::Form("%d", state) : (str+Tools::Form("[%d]", state)); 758 759 return str.empty() ? s : (str+'['+s+']'); 753 760 } 754 761 -
trunk/FACT++/src/WindowLog.cc
r10429 r10496 273 273 u = 'M'; 274 274 } 275 return Tools::Form("%d%c", s, u); 275 276 string rc; 277 rc += s; 278 return rc + u; 276 279 } 277 280
Note:
See TracChangeset
for help on using the changeset viewer.