Changeset 63e129c
- Timestamp:
- Jan 28, 2024, 3:56:21 PM (11 months ago)
- Branches:
- master
- Children:
- b771581
- Parents:
- baa1d5d
- Location:
- libcfa/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
rbaa1d5d r63e129c 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Nov 15 10:51:14 202313 // Update Count : 55 212 // Last Modified On : Sun Jan 28 09:56:08 2024 13 // Update Count : 554 14 14 // 15 15 … … 209 209 void ?{}( ifstream & is, void * file ) with( is ) { 210 210 file$ = file; 211 nlOnOff$ = false; 211 nlOnOff$ = false; // => skip newlines when reading single characters 212 212 } // ?{} 213 213 -
libcfa/src/iostream.cfa
rbaa1d5d r63e129c 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jan 27 18:02:40202413 // Update Count : 19 0912 // Last Modified On : Sun Jan 28 11:58:54 2024 13 // Update Count : 1917 14 14 // 15 15 … … 944 944 istype & nl( istype & is ) { 945 945 fmt( is, "%*[^\n]" ); // ignore characters to newline 946 if ( ! eof( is ) && getANL$( is ) ) fmt( is, "%*c" );// read newline946 if ( ! eof( is ) ) fmt( is, "%*c" ); // read newline 947 947 return is; 948 948 } // nl … … 1101 1101 return is; 1102 1102 } // ?|? 1103 1104 // istype & ?|?( istype & is, _Istream_Char f ) with(f) {1105 // if ( ignore ) {1106 // fmt( is, "%*c" ); // argument variable unused1107 // } else {1108 // int len = -1, args = fmt( is, fmt, &c, &len );1109 // if ( args != -1 && len == -1 ) throwResume ExceptionInst( missing_data );1110 // } // if1111 // return is;1112 // } // ?|?1113 1103 } // distribution 1114 1104 -
libcfa/src/iostream.hfa
rbaa1d5d r63e129c 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jan 27 17:55:22202413 // Update Count : 73 212 // Last Modified On : Sun Jan 28 11:56:29 2024 13 // Update Count : 733 14 14 // 15 15 … … 455 455 } // distribution 456 456 457 // struct _Istream_Char {458 // char & c;459 // bool ignore; // do not change input argument460 // char fmt[7]; // \L%c\R%n\0461 // }; // _Istream_Char462 463 // static inline {464 // _Istream_Char quoted( char & c, const char Ldelimiter = '\'', const char Rdelimiter = '\0' ) {465 // return (_Istream_Char)@{ .c : c, .ignore : false,466 // fmt : { Ldelimiter, '%', 'c', (Rdelimiter == '\0' ? Ldelimiter : Rdelimiter), '%', 'n', '\0' } };467 // }468 // _Istream_Char ignore( char ) {469 // return (_Istream_Char)@{ .c : *0p, .ignore : true };470 // }471 // _Istream_Char & ignore( _Istream_Char & fmt ) { fmt.ignore = true; return fmt; }472 // } // distribution473 474 // forall( istype & | basic_istream( istype ) ) {475 // istype & ?|?( istype & is, _Istream_Char f );476 // }477 478 457 forall( T & | sized( T ) ) 479 458 struct _Istream_Manip {
Note: See TracChangeset
for help on using the changeset viewer.