Changeset 1403
- Timestamp:
- Apr 29, 2004, 6:30:57 AM (21 years ago)
- Location:
- trunk/src/gcc/libstdc++-v3/config/os/os2emx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/libstdc++-v3/config/os/os2emx/ctype_base.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1402 r1403 32 32 // 33 33 34 // Information as gleaned from /emx/include/ctype.h 35 36 #define __ctype_ALNUM 0x0001 37 #define __ctype_ALPHA 0x0002 38 #define __ctype_CNTRL 0x0004 39 #define __ctype_DIGIT 0x0008 40 #define __ctype_XDIGIT 0x0010 41 #define __ctype_PUNCT 0x0020 42 #define __ctype_UPPER 0x0040 43 #define __ctype_LOWER 0x0080 44 #define __ctype_GRAPH 0x0100 45 #define __ctype_PRINT 0x0200 46 #define __ctype_SPACE 0x0400 34 // Information as gleaned from ctype.h 47 35 36 #define __ctype_UPPER 0x0001 /* Upper case alphabetic character. */ 37 #define __ctype_LOWER 0x0002 /* Lower case alphabetic character. */ 38 #define __ctype_DIGIT 0x0004 /* Digits 0-9. */ 39 #define __ctype_SPACE 0x0008 /* White space and line ends. */ 40 #define __ctype_PUNCT 0x0010 /* Punctuation marks. */ 41 #define __ctype_CNTRL 0x0020 /* Control and format characters. */ 42 #define __ctype_XDIGIT 0x0080 /* Hex digits. */ 43 #define __ctype_ALPHA 0x0100 /* Letters and linguistic marks. */ 44 #define __ctype_ALNUM 0x0200 /* Alphanumeric. */ 45 #define __ctype_GRAPH 0x0400 /* All except controls and space. */ 46 #define __ctype_PRINT 0x0800 /* Everything except controls. */ 47 48 48 struct ctype_base 49 49 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libstdc++-v3/config/os/os2emx/ctype_inline.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1402 r1403 35 35 // functions go in ctype.cc 36 36 37 37 38 bool 38 39 ctype<char>:: 39 40 is(mask __m, char __c) const 40 { return _M_table[__c] & __m; } 41 { 42 return (_M_table[static_cast<unsigned char>(__c) ] & __m); 43 } 41 44 45 42 46 const char* 43 47 ctype<char>:: … … 45 49 { 46 50 while (__low < __high) 47 *__vec++ = _M_table[ *__low++];51 *__vec++ = _M_table[static_cast<unsigned char>(*__low++)]; 48 52 return __high; 49 53 } … … 53 57 scan_is(mask __m, const char* __low, const char* __high) const 54 58 { 55 while (__low < __high && ! (_M_table[*__low] & __m))59 while (__low < __high && !this->is(__m, *__low)) 56 60 ++__low; 57 61 return __low; … … 62 66 scan_not(mask __m, const char* __low, const char* __high) const 63 67 { 64 while (__low < __high 65 && (_M_table[*__low] & __m) != 0) 68 while (__low < __high && this->is(__m, *__low) != 0) 66 69 ++__low; 67 70 return __low; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/libstdc++-v3/config/os/os2emx/ctype_noninline.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1402 r1403 161 161 { return __ctype_data_inst.ctable; } 162 162 163 ctype<char>::ctype(__c_locale, const mask* __table, bool __del, size_t __refs)164 : __ctype_abstract_base<char>(__refs),165 163 ctype<char>::ctype(__c_locale, const mask* __table, bool __del, 164 size_t __refs) 165 : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 166 166 _M_toupper (__ctype_data_inst.toupper), 167 167 _M_tolower (__ctype_data_inst.tolower), … … 172 172 173 173 ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) 174 : __ctype_abstract_base<char>(__refs), 175 _M_del(__table != 0 && __del), 174 : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 176 175 _M_toupper (__ctype_data_inst.toupper), 177 176 _M_tolower (__ctype_data_inst.tolower), … … 210 209 return __high; 211 210 } 211 212 213 214 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.