diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-08 08:26:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-08 08:26:54 +0200 |
commit | 98c4038df36fb73601c58ccd885d1c2d3703cf6e (patch) | |
tree | 627256e1f79a5bcefef72d22cea01bfa490af398 /libbutl/char-scanner.mxx | |
parent | d7b7fd602b981dd6816b0e5c7c341e2cef272c17 (diff) |
Factor "buffered streambuf" interface from fdbuf to bufstreambuf
Also rename fdbuf to fdstreambuf for consistency.
Diffstat (limited to 'libbutl/char-scanner.mxx')
-rw-r--r-- | libbutl/char-scanner.mxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libbutl/char-scanner.mxx b/libbutl/char-scanner.mxx index 60994cf..27f692b 100644 --- a/libbutl/char-scanner.mxx +++ b/libbutl/char-scanner.mxx @@ -24,9 +24,8 @@ export module butl.char_scanner; import std.core; import std.io; #endif -import butl.fdstream; #else -#include <libbutl/fdstream.mxx> +#include <libbutl/bufstreambuf.hxx> #endif #include <libbutl/export.hxx> @@ -59,9 +58,9 @@ LIBBUTL_MODEXPORT namespace butl // 0x0D is treated "as if" it was followed by 0x0A and multiple 0x0D // are treated as one. // - // Note also that if the stream happens to be ifdstream, then it includes - // a number of optimizations that assume nobody else is messing with the - // stream. + // Note also that if the stream happens to be bufstreambuf-based, then it + // includes a number of optimizations that assume nobody else is messing + // with the stream. // // The line and position arguments can be used to override the start line // and position in the stream (useful when re-scanning data saved with the @@ -106,8 +105,9 @@ LIBBUTL_MODEXPORT namespace butl std::uint64_t line; std::uint64_t column; - // Logical character position (see ifdstream for details on the logical - // part) if the scanned stream is ifdstream and always zero otherwise. + // Logical character position (see bufstreambuf for details on the + // logical part) if the scanned stream is bufstreambuf-based and always + // zero otherwise. // std::uint64_t position; @@ -240,7 +240,7 @@ LIBBUTL_MODEXPORT namespace butl // the hairy details; realistically, you would probably only direct-scan // ASCII fragments). // - fdbuf* buf_; // NULL if not ifdstream. + bufstreambuf* buf_; // NULL if not bufstreambuf-based. const char_type* gptr_; const char_type* egptr_; |