From f426af00bfb872bf7374fe71f419713ec15f88c7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 5 Aug 2021 11:24:39 +0300 Subject: Add handler::name_value_scanner::position() --- mod/module.cxx | 6 ++++++ mod/module.hxx | 3 +++ 2 files changed, 9 insertions(+) diff --git a/mod/module.cxx b/mod/module.cxx index 06799d7..9209f3f 100644 --- a/mod/module.cxx +++ b/mod/module.cxx @@ -406,4 +406,10 @@ namespace brep else throw cli::eos_reached (); } + + size_t handler::name_value_scanner:: + position () + { + return i_ - name_values_.begin (); + } } diff --git a/mod/module.hxx b/mod/module.hxx index b3ed67b..3056425 100644 --- a/mod/module.hxx +++ b/mod/module.hxx @@ -135,6 +135,9 @@ namespace brep virtual void skip (); + virtual size_t + position (); + private: const name_values& name_values_; name_values::const_iterator i_; -- cgit v1.1