diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-15 17:23:37 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-15 17:27:56 +0300 |
commit | 3bf1846063ad30ecc0fc90d34490bf70776faef0 (patch) | |
tree | 8a2a248be187671f8d9fd75d3367bfb9de782e45 /libbutl/char-scanner.ixx | |
parent | 5bff24a8862f61e40f827591be5c81228efab4c6 (diff) |
Add manifest_rewriter class
Diffstat (limited to 'libbutl/char-scanner.ixx')
-rw-r--r-- | libbutl/char-scanner.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/char-scanner.ixx b/libbutl/char-scanner.ixx index a33cf2b..ce57a05 100644 --- a/libbutl/char-scanner.ixx +++ b/libbutl/char-scanner.ixx @@ -65,4 +65,10 @@ namespace butl if (save_ != nullptr && c != xchar::traits_type::eof ()) save_->push_back (static_cast<char_type> (c)); } + + inline std::uint64_t char_scanner:: + pos_ () const + { + return buf_ != nullptr ? buf_->tellg () : 0; + } } |