aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-05 11:24:39 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-05 11:24:39 +0300
commitf426af00bfb872bf7374fe71f419713ec15f88c7 (patch)
treedf0a9e64169e9fc4e4ffdbeeae4a32451cec63b9 /mod
parent9ce32d7d20850290deeef2a27a989a87c01a94cd (diff)
Add handler::name_value_scanner::position()
Diffstat (limited to 'mod')
-rw-r--r--mod/module.cxx6
-rw-r--r--mod/module.hxx3
2 files changed, 9 insertions, 0 deletions
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_;