Changeset 161
- Timestamp:
- 1999-02-22T11:26:40+13:00 (25 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/text_t.cpp
r138 r161 12 12 /* 13 13 $Log$ 14 Revision 1.7 1999/02/21 22:26:39 rjmcnab 15 16 Made getint() a constant function. 17 14 18 Revision 1.6 1999/02/03 01:13:26 sjboddie 15 19 … … 135 139 } 136 140 137 int text_t::getint () 141 int text_t::getint () const 138 142 { 139 143 int i = 0; 140 144 int mult = 1; // become -1 for negative numbers 141 145 142 iterator here = text.begin();143 iterator end = text.end();146 const_iterator here = text.begin(); 147 const_iterator end = text.end(); 144 148 145 149 // do plus and minus signs -
trunk/gsdl/lib/text_t.h
r138 r161 111 111 text_t &operator=(int i) {setint (i);return *this;} 112 112 text_t &operator+= (int i) {appendint(i);return *this;} 113 int getint () ;113 int getint () const; 114 114 115 115 // support for arrays of chars
Note:
See TracChangeset
for help on using the changeset viewer.