Changeset bb1eabc for libcfa/src/iostream.cfa
- Timestamp:
- May 4, 2026, 7:26:38 AM (9 days ago)
- Branches:
- master
- Children:
- 244335b
- Parents:
- 8403b32
- File:
-
- 1 edited
-
libcfa/src/iostream.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r8403b32 rbb1eabc 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun May 3 08:08:29202613 // Update Count : 22 4112 // Last Modified On : Sun May 3 22:02:37 2026 13 // Update Count : 2271 14 14 // 15 15 … … 698 698 } // if 699 699 if ( f.flags.quote ) { // print as string 700 char qv[] = "' '"; 701 qv[1] = f.val; 700 char qv[] = { f.qleft, f.val, f.qright ? : f.qleft, '\0' }; 702 701 f.flags.quote = false; // already quoted 703 702 _Ostream_Manip(const char *) fmtuc @= { qv, f.wd, f.pc, 's', {f.all} }; … … 743 742 int len = strlen( f.val ); 744 743 char qv[len + 3]; // space for quotes and '\0' 745 qv[0] = '"'; // copy string surrounded with quotes 746 strcpy( &qv[1], f.val ); 747 qv[len + 1] = '"'; 748 qv[len + 2] = '\0'; 744 qv[0] = f.qleft; strcpy( &qv[1], f.val ); 745 qv[len + 1] = f.qright ? : f.qleft; qv[len + 2] = '\0'; // copy string surrounded with quotes 749 746 f.flags.quote = false; // already quoted 750 747 _Ostream_Manip(const char *) fmtuc @= { qv, f.wd, f.pc, 's', {f.all} };
Note:
See TracChangeset
for help on using the changeset viewer.