From Jason Turner

[fstreams]

Diff to HTML by rtfpessoa

tmp/tmp6ogeetws/{from.md → to.md} RENAMED
@@ -213,11 +213,11 @@ basic_filebuf<charT,traits>* open(const char* s,
213
 
214
  *Effects:* If `is_open() != false`, returns a null pointer. Otherwise,
215
  initializes the `filebuf` as required. It then opens a file, if
216
  possible, whose name is the NTBS`s` (as if by calling
217
  `std::fopen(s,modstr)`). The NTBS`modstr` is determined from
218
- `mode & `~`ios_base::ate` as indicated in
219
  Table  [[tab:iostreams.file.open.modes]]. If `mode` is not some
220
  combination of flags shown in the table then the open fails.
221
 
222
  **Table: File open modes** <a id="tab:iostreams.file.open.modes">[tab:iostreams.file.open.modes]</a>
223
 
@@ -242,11 +242,11 @@ combination of flags shown in the table then the open fails.
242
  | + | + | | | + | `"a+b"` |
243
 
244
 
245
  If the open operation succeeds and `(mode & ios_base::ate) != 0`,
246
  positions the file to the end (as if by calling
247
- `std::fseek(file,0,SEEK_END)`).[^38]
248
 
249
  If the repositioning operation fails, calls `close()` and returns a null
250
  pointer to indicate failure.
251
 
252
  *Returns:* `this` if successful, a null pointer otherwise.
@@ -268,11 +268,11 @@ last virtual member function called on `*this` (between `underflow`,
268
  `overflow`, `seekoff`, and `seekpos`) was `overflow` then calls
269
  `a_codecvt.unshift` (possibly several times) to determine a termination
270
  sequence, inserts those characters and calls `overflow(traits::eof())`
271
  again. Finally, regardless of whether any of the preceding calls fails
272
  or throws an exception, the function closes the file (as if by calling
273
- `std::fclose(file)`).[^39] If any of the calls made by the function,
274
  including `std::fclose`, fails, `close` fails by returning a null
275
  pointer. If one of these calls throws an exception, the exception is
276
  caught and rethrown after closing the file.
277
 
278
  *Returns:* `this` on success, a null pointer otherwise.
@@ -518,11 +518,11 @@ namespace std {
518
  bool is_open() const;
519
  void open(const char* s, ios_base::openmode mode = ios_base::in);
520
  void open(const string& s, ios_base::openmode mode = ios_base::in);
521
  void close();
522
  private:
523
- basic_filebuf<charT,traits> sb; // exposition onlyr
524
  };
525
 
526
  template <class charT, class traits>
527
  void swap(basic_ifstream<charT, traits>& x,
528
  basic_ifstream<charT, traits>& y);
@@ -670,11 +670,11 @@ namespace std {
670
  bool is_open() const;
671
  void open(const char* s, ios_base::openmode mode = ios_base::out);
672
  void open(const string& s, ios_base::openmode mode = ios_base::out);
673
  void close();
674
  private:
675
- basic_filebuf<charT,traits> sb; // exposition onlyr
676
  };
677
 
678
  template <class charT, class traits>
679
  void swap(basic_ofstream<charT, traits>& x,
680
  basic_ofstream<charT, traits>& y);
@@ -826,11 +826,11 @@ namespace std {
826
  void open(const string& s,
827
  ios_base::openmode mode = ios_base::in|ios_base::out);
828
  void close();
829
 
830
  private:
831
- basic_filebuf<charT,traits> sb; // exposition onlyr
832
  };
833
 
834
  template <class charT, class traits>
835
  void swap(basic_fstream<charT, traits>& x,
836
  basic_fstream<charT, traits>& y);
 
213
 
214
  *Effects:* If `is_open() != false`, returns a null pointer. Otherwise,
215
  initializes the `filebuf` as required. It then opens a file, if
216
  possible, whose name is the NTBS`s` (as if by calling
217
  `std::fopen(s,modstr)`). The NTBS`modstr` is determined from
218
+ `mode & ~ios_base::ate` as indicated in
219
  Table  [[tab:iostreams.file.open.modes]]. If `mode` is not some
220
  combination of flags shown in the table then the open fails.
221
 
222
  **Table: File open modes** <a id="tab:iostreams.file.open.modes">[tab:iostreams.file.open.modes]</a>
223
 
 
242
  | + | + | | | + | `"a+b"` |
243
 
244
 
245
  If the open operation succeeds and `(mode & ios_base::ate) != 0`,
246
  positions the file to the end (as if by calling
247
+ `std::fseek(file,0,SEEK_END)`).[^39]
248
 
249
  If the repositioning operation fails, calls `close()` and returns a null
250
  pointer to indicate failure.
251
 
252
  *Returns:* `this` if successful, a null pointer otherwise.
 
268
  `overflow`, `seekoff`, and `seekpos`) was `overflow` then calls
269
  `a_codecvt.unshift` (possibly several times) to determine a termination
270
  sequence, inserts those characters and calls `overflow(traits::eof())`
271
  again. Finally, regardless of whether any of the preceding calls fails
272
  or throws an exception, the function closes the file (as if by calling
273
+ `std::fclose(file)`).[^40] If any of the calls made by the function,
274
  including `std::fclose`, fails, `close` fails by returning a null
275
  pointer. If one of these calls throws an exception, the exception is
276
  caught and rethrown after closing the file.
277
 
278
  *Returns:* `this` on success, a null pointer otherwise.
 
518
  bool is_open() const;
519
  void open(const char* s, ios_base::openmode mode = ios_base::in);
520
  void open(const string& s, ios_base::openmode mode = ios_base::in);
521
  void close();
522
  private:
523
+ basic_filebuf<charT,traits> sb; // exposition only
524
  };
525
 
526
  template <class charT, class traits>
527
  void swap(basic_ifstream<charT, traits>& x,
528
  basic_ifstream<charT, traits>& y);
 
670
  bool is_open() const;
671
  void open(const char* s, ios_base::openmode mode = ios_base::out);
672
  void open(const string& s, ios_base::openmode mode = ios_base::out);
673
  void close();
674
  private:
675
+ basic_filebuf<charT,traits> sb; // exposition only
676
  };
677
 
678
  template <class charT, class traits>
679
  void swap(basic_ofstream<charT, traits>& x,
680
  basic_ofstream<charT, traits>& y);
 
826
  void open(const string& s,
827
  ios_base::openmode mode = ios_base::in|ios_base::out);
828
  void close();
829
 
830
  private:
831
+ basic_filebuf<charT,traits> sb; // exposition only
832
  };
833
 
834
  template <class charT, class traits>
835
  void swap(basic_fstream<charT, traits>& x,
836
  basic_fstream<charT, traits>& y);