Changeset 1860 for trunk/gsdl/lib/text_t.h
- Timestamp:
- 2001-01-26T07:26:45+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/text_t.h
r1596 r1860 21 21 * along with this program; if not, write to the Free Software 22 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 * 24 * $Id$ 23 25 * 24 26 *********************************************************************/ … … 97 99 unsigned short getencoding () {return encoding;}; 98 100 101 usvector& text_as_usvector() { return text ; }; 102 const usvector& text_as_usvector() const { return text ; }; 103 99 104 // basic container support 100 105 iterator begin () {return text.begin();} … … 162 167 char *getcarr(size_type &len) const; 163 168 char *getcstr() const; 164 }; 165 169 170 }; 171 172 // new stream converter ... 173 ostream& operator<< (ostream &o, const text_t text); 166 174 167 175 inline text_t operator+(const text_t &t1, const text_t &t2) … … 216 224 text_t::iterator findchar (text_t::iterator first, text_t::iterator last, 217 225 unsigned short c); 226 227 text_t::iterator findword (text_t::iterator first, text_t::iterator last, 228 const text_t &word); 218 229 219 230 // get a string up to the next delimiter (which is skipped)
Note:
See TracChangeset
for help on using the changeset viewer.