Changeset d0cfcbe1
- Timestamp:
- Aug 18, 2023, 12:12:22 PM (8 months ago)
- Branches:
- master
- Children:
- 5ad2c6c7
- Parents:
- 18ebc28
- Location:
- libcfa/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
r18ebc28 rd0cfcbe1 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 14 18:24:21202313 // Update Count : 5 3412 // Last Modified On : Fri Aug 18 10:41:17 2023 13 // Update Count : 541 14 14 // 15 15 … … 45 45 46 46 inline bool getNL$( ofstream & os ) { return os.sawNL$; } 47 inline void setNL$( ofstream & os, bool state ) { os.sawNL$ = state; }47 inline bool setNL$( ofstream & os, bool state ) { bool temp = os.sawNL$; os.sawNL$ = state; return temp; } 48 48 inline bool getANL$( ofstream & os ) { return os.nlOnOff$; } 49 inline bool setANL$( ofstream & os, bool state ) { bool temp = os.nlOnOff$; os.nlOnOff$ = state; return temp; } 49 50 50 51 inline bool sepPrt$( ofstream & os ) { setNL$( os, false ); return os.sepOnOff$; } … … 55 56 56 57 inline bool getPrt$( ofstream & os ) { return os.prt$; } 57 inline void setPrt$( ofstream & os, bool state ) { os.prt$ = state; }58 inline bool setPrt$( ofstream & os, bool state ) { bool temp = os.prt$; os.prt$ = state; return temp; } 58 59 59 60 inline void lock( ofstream & os ) with( os ) { lock( os.lock$ ); } … … 212 213 213 214 bool getANL$( ifstream & os ) { return os.nlOnOff$; } 215 bool setANL$( ifstream & os, bool state ) { bool temp = os.nlOnOff$; os.nlOnOff$ = state; return temp; } 214 216 215 217 inline void lock( ifstream & os ) with( os ) { lock( os.lock$ ); } -
libcfa/src/fstream.hfa
r18ebc28 rd0cfcbe1 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 5 11:42:40202313 // Update Count : 25 412 // Last Modified On : Fri Aug 18 10:41:15 2023 13 // Update Count : 258 14 14 // 15 15 … … 41 41 // private 42 42 bool getNL$( ofstream & ); 43 voidsetNL$( ofstream &, bool );43 bool setNL$( ofstream &, bool ); 44 44 bool getANL$( ofstream & ); 45 bool setANL$( ofstream &, bool ); 45 46 46 47 bool sepPrt$( ofstream & ); … … 51 52 52 53 bool getPrt$( ofstream & ); 53 voidsetPrt$( ofstream &, bool );54 bool setPrt$( ofstream &, bool ); 54 55 55 56 void lock( ofstream & ); … … 108 109 // private 109 110 bool getANL$( ifstream & ); 111 bool setANL$( ifstream &, bool ); 110 112 111 113 void lock( ifstream & ); -
libcfa/src/iostream.hfa
r18ebc28 rd0cfcbe1 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 14 17:35:40 202313 // Update Count : 5 0812 // Last Modified On : Fri Aug 18 10:44:50 2023 13 // Update Count : 512 14 14 // 15 15 … … 31 31 const char * sepGetCur$( ostype & ); // get current separator string 32 32 void sepSetCur$( ostype &, const char [] ); // set current separator string 33 bool getNL$( ostype & ); // checknewline34 void setNL$( ostype &, bool ); // sawnewline33 bool getNL$( ostype & ); // get newline 34 bool setNL$( ostype &, bool ); // set newline 35 35 bool getANL$( ostype & ); // get auto newline (on/off) 36 bool setANL$( ostype &, bool ); // set auto newline (on/off), and return previous state 36 37 bool getPrt$( ostype & ); // get fmt called in output cascade 37 voidsetPrt$( ostype &, bool ); // set fmt called in output cascade38 bool setPrt$( ostype &, bool ); // set fmt called in output cascade 38 39 // public 39 40 void nlOn( ostype & ); // turn auto-newline state on … … 319 320 // private 320 321 bool getANL$( istype & ); // get scan newline (on/off) 322 bool setANL$( istype &, bool ); // set scan newline (on/off) 321 323 // public 322 324 void nlOn( istype & ); // read newline -
libcfa/src/strstream.cfa
r18ebc28 rd0cfcbe1 10 10 // Created On : Thu Apr 22 22:24:35 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 29 10:59:00202313 // Update Count : 1 0512 // Last Modified On : Fri Aug 18 10:42:49 2023 13 // Update Count : 112 14 14 // 15 15 … … 33 33 // private 34 34 inline bool getNL$( ostrstream & os ) { return os.sawNL$; } 35 inline void setNL$( ostrstream & os, bool state ) { os.sawNL$ = state; }35 inline bool setNL$( ostrstream & os, bool state ) { bool temp = os.sawNL$; os.sawNL$ = state; return temp; } 36 36 inline bool getANL$( ostrstream & os ) { return os.nlOnOff$; } 37 inline bool setANL$( ostrstream & os, bool state ) { bool temp = os.nlOnOff$; os.nlOnOff$ = state; return temp; } 37 38 inline bool sepPrt$( ostrstream & os ) { setNL$( os, false ); return os.sepOnOff$; } 38 39 inline void sepReset$( ostrstream & os ) { os.sepOnOff$ = os.sepDefault$; } … … 41 42 inline void sepSetCur$( ostrstream & os, const char sepCur[] ) { os.sepCur$ = sepCur; } 42 43 inline bool getPrt$( ostrstream & os ) { return os.prt$; } 43 inline void setPrt$( ostrstream & os, bool state ) { os.prt$ = state; }44 inline bool setPrt$( ostrstream & os, bool state ) { bool temp = os.prt$; os.prt$ = state; return temp; } 44 45 45 46 // public … … 132 133 // private 133 134 bool getANL$( istrstream & is ) { return is.nlOnOff$; } 135 bool setANL$( istrstream & is, bool state ) { bool temp = is.nlOnOff$; is.nlOnOff$ = state; return temp; } 134 136 135 137 // public -
libcfa/src/strstream.hfa
r18ebc28 rd0cfcbe1 10 10 // Created On : Thu Apr 22 22:20:59 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 29 10:58:58202313 // Update Count : 5 112 // Last Modified On : Fri Aug 18 10:41:14 2023 13 // Update Count : 55 14 14 // 15 15 … … 47 47 void sepSetCur$( ostrstream &, const char [] ); 48 48 bool getNL$( ostrstream & ); 49 voidsetNL$( ostrstream &, bool );49 bool setNL$( ostrstream &, bool ); 50 50 bool getANL$( ostrstream & ); 51 bool setANL$( ostrstream &, bool ); 51 52 bool getPrt$( ostrstream & ); 52 voidsetPrt$( ostrstream &, bool );53 bool setPrt$( ostrstream &, bool ); 53 54 54 55 // public … … 87 88 // private 88 89 bool getANL$( istrstream & ); 90 bool setANL$( istrstream &, bool ); 89 91 90 92 // public
Note: See TracChangeset
for help on using the changeset viewer.