aboutsummaryrefslogtreecommitdiff
path: root/cutl/xml/parser.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-14 11:08:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-03-14 11:08:13 +0200
commitdac3640ed08cf18eaa6eb26605a27e6c7387b2c2 (patch)
treec22798e70696a99e24c603ffff05473937efe4bf /cutl/xml/parser.ixx
parentce298ad2e8dbc3601d180c178bee9d606b8edab2 (diff)
Add next_expect() functions to XML parser
Diffstat (limited to 'cutl/xml/parser.ixx')
-rw-r--r--cutl/xml/parser.ixx21
1 files changed, 21 insertions, 0 deletions
diff --git a/cutl/xml/parser.ixx b/cutl/xml/parser.ixx
new file mode 100644
index 0000000..61bb05b
--- /dev/null
+++ b/cutl/xml/parser.ixx
@@ -0,0 +1,21 @@
+// file : cutl/xml/parser.ixx
+// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+namespace cutl
+{
+ namespace xml
+ {
+ inline void parser::
+ next_expect (event_type e, const qname_type& qn)
+ {
+ return next_expect (e, qn.namespace_ (), qn.name ());
+ }
+
+ inline void parser::
+ next_expect (event_type e, const std::string& n)
+ {
+ return next_expect (e, std::string (), n);
+ }
+ }
+}