Changes in libcfa/src/strstream.cfa [f5d9c37:cce4648]
- File:
-
- 1 edited
-
libcfa/src/strstream.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/strstream.cfa
rf5d9c37 rcce4648 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:00 202313 // Update Count : 10 512 // Last Modified On : Sun Oct 10 16:13:20 2021 13 // Update Count : 101 14 14 // 15 15 … … 32 32 33 33 // private 34 inline bool getNL$( ostrstream & os ) { return os.sawNL$; }35 inline void setNL$( ostrstream & os, bool state ) { os.sawNL$ = state; }36 inline bool getANL$( ostrstream & os ) { return os.nlOnOff$; }37 34 inline bool sepPrt$( ostrstream & os ) { setNL$( os, false ); return os.sepOnOff$; } 38 35 inline void sepReset$( ostrstream & os ) { os.sepOnOff$ = os.sepDefault$; } … … 40 37 inline const char * sepGetCur$( ostrstream & os ) { return os.sepCur$; } 41 38 inline void sepSetCur$( ostrstream & os, const char sepCur[] ) { os.sepCur$ = sepCur; } 39 inline bool getNL$( ostrstream & os ) { return os.sawNL$; } 40 inline void setNL$( ostrstream & os, bool state ) { os.sawNL$ = state; } 41 inline bool getANL$( ostrstream & os ) { return os.nlOnOff$; } 42 42 inline bool getPrt$( ostrstream & os ) { return os.prt$; } 43 43 inline void setPrt$( ostrstream & os, bool state ) { os.prt$ = state; } 44 44 45 45 // public 46 void nlOn( ostrstream & os ) { os.nlOnOff$ = true; }47 void nlOff( ostrstream & os ) { os.nlOnOff$ = false; }48 49 46 void ?{}( ostrstream & os, char buf[], size_t size ) { 50 47 os.buf$ = buf; … … 61 58 } // ?{} 62 59 63 void sep ( ostrstream & os ) { os.sepOnOff$ = ! getNL$( os ); }64 void nosep( ostrstream & os ) { os.sepOnOff$ = false; }60 void sepOn( ostrstream & os ) { os.sepOnOff$ = ! getNL$( os ); } 61 void sepOff( ostrstream & os ) { os.sepOnOff$ = false; } 65 62 66 bool sepOn( ostrstream & os ) { 63 bool sepDisable( ostrstream & os ) { 64 bool temp = os.sepDefault$; 65 os.sepDefault$ = false; 66 sepReset$( os ); 67 return temp; 68 } // sepDisable 69 70 bool sepEnable( ostrstream & os ) { 67 71 bool temp = os.sepDefault$; 68 72 os.sepDefault$ = true; 69 73 if ( os.sepOnOff$ ) sepReset$( os ); // start of line ? 70 74 return temp; 71 } // sep On75 } // sepEnable 72 76 73 bool sepOff( ostrstream & os ) { 74 bool temp = os.sepDefault$; 75 os.sepDefault$ = false; 76 sepReset$( os ); 77 return temp; 78 } // sepOff 77 void nlOn( ostrstream & os ) { os.nlOnOff$ = true; } 78 void nlOff( ostrstream & os ) { os.nlOnOff$ = false; } 79 79 80 80 const char * sepGet( ostrstream & os ) { return os.separator$; }
Note:
See TracChangeset
for help on using the changeset viewer.