Changeset 665
- Timestamp:
- 1999-10-15T11:52:39+13:00 (25 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/text_t.cpp
r629 r665 28 28 /* 29 29 $Log$ 30 Revision 1.15 1999/10/14 22:52:39 sjboddie 31 joinchar can join using text_t string now too 32 30 33 Revision 1.14 1999/09/24 02:30:03 rjmcnab 31 34 added function has_unicode_letdig … … 427 430 { 428 431 if (!first) outtext.push_back (c); 432 first = false; 433 outtext += *here; 434 here++; 435 } 436 } 437 438 void joinchar (const text_tarray &inlist, text_t c, text_t &outtext) 439 { 440 outtext.clear (); 441 442 text_tarray::const_iterator here = inlist.begin (); 443 text_tarray::const_iterator end = inlist.end (); 444 bool first = true; 445 while (here != end) 446 { 447 if (!first) outtext += c; 429 448 first = false; 430 449 outtext += *here; -
trunk/gsdl/lib/text_t.h
r629 r665 238 238 void joinchar (const text_tlist &inlist, unsigned short c, text_t &outtext); 239 239 void joinchar (const text_tarray &inlist, unsigned short c, text_t &outtext); 240 void joinchar (const text_tarray &inlist, text_t c, text_t &outtext); 240 241 241 242 // count the occurances of a character within a range
Note:
See TracChangeset
for help on using the changeset viewer.