Changeset 1279 for branches/New_Config_Format-branch/gsdl/lib/text_t.cpp
- Timestamp:
- 2000-07-13T10:21:53+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New_Config_Format-branch/gsdl/lib/text_t.cpp
r1076 r1279 28 28 /* 29 29 $Log$ 30 Revision 1.17.2.1 2000/07/12 22:20:56 sjboddie 31 merged changes to trunk into New_Config_Format branch 32 33 Revision 1.18 2000/04/14 02:50:12 sjboddie 34 added text_t versions of joinchar to work with sets and lists 35 30 36 Revision 1.17 2000/04/06 19:58:03 cs025 31 37 Correcting a correction - reinstated all lib files due to silly … … 434 440 { 435 441 if (!first) outtext.push_back (c); 442 first = false; 443 outtext += *here; 444 here++; 445 } 446 } 447 448 void joinchar (const text_tlist &inlist, text_t c, text_t &outtext) 449 { 450 outtext.clear (); 451 452 text_tlist::const_iterator here = inlist.begin (); 453 text_tlist::const_iterator end = inlist.end (); 454 bool first = true; 455 while (here != end) 456 { 457 if (!first) outtext += c; 458 first = false; 459 outtext += *here; 460 here++; 461 } 462 } 463 464 void joinchar (const text_tset &inlist, text_t c, text_t &outtext) 465 { 466 outtext.clear (); 467 468 text_tset::const_iterator here = inlist.begin (); 469 text_tset::const_iterator end = inlist.end (); 470 bool first = true; 471 while (here != end) 472 { 473 if (!first) outtext += c; 436 474 first = false; 437 475 outtext += *here;
Note:
See TracChangeset
for help on using the changeset viewer.