Changes in src/libcfa/iostream [3849857:4040425]
- File:
-
- 1 edited
-
src/libcfa/iostream (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
r3849857 r4040425 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Apr 10 23:00:12201613 // Update Count : 9212 // Last Modified On : Wed Mar 2 18:05:27 2016 13 // Update Count : 85 14 14 // 15 15 … … 20 20 21 21 trait ostream( dtype ostype ) { 22 _Bool sepPrt( ostype * ); // return separator state (on/off) 23 void sepOn( ostype * ); // turn separator state on 24 void sepOff( ostype * ); // turn separator state off 25 void sepReset( ostype * ); // set separator state to default state 26 void sepReset( ostype *, _Bool ); // set separator and default state 27 void sepSet( ostype *, const char * ); // set separator to string (15 character maximum) 28 const char * sepGet( ostype * ); // get separator string 29 _Bool sepDisable( ostype * ); // set default state to off, and return previous state 30 _Bool sepEnable( ostype * ); // set default state to on, and return previous state 31 22 _Bool sepPrt( ostype * ); 23 void sepOn( ostype * ); 24 void sepOff( ostype * ); 25 void sepSet( ostype *, const char * ); 26 const char * sepGet( ostype * ); 27 void sepDisable( ostype * ); 28 void sepEnable( ostype * ); 32 29 int fail( ostype * ); 33 30 int flush( ostype * ); … … 70 67 forall( dtype ostype | ostream( ostype ) ) ostype * sepOn( ostype * ); 71 68 forall( dtype ostype | ostream( ostype ) ) ostype * sepOff( ostype * ); 72 forall( dtype ostype | ostream( ostype ) ) ostype * sepDisable( ostype * );73 forall( dtype ostype | ostream( ostype ) ) ostype * sepEnable( ostype * );74 69 75 70 // writes the range [begin, end) to the given stream … … 115 110 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, long double _Complex * ); 116 111 117 struct _Istream_ cstrUC{ char * s; };118 _Istream_ cstrUC cstr( char * );119 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_ cstrUC);112 struct _Istream_str1 { char * s; }; 113 _Istream_str1 str( char * ); 114 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_str1 ); 120 115 121 struct _Istream_ cstrC{ char * s; int size; };122 _Istream_ cstrC cstr( char *, int size );123 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_ cstrC);116 struct _Istream_str2 { char * s; int size; }; 117 _Istream_str2 str( char *, int size ); 118 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, _Istream_str2 ); 124 119 125 120 #endif // __IOSTREAM_H__
Note:
See TracChangeset
for help on using the changeset viewer.