diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-05-03 19:08:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-05-03 19:08:49 +0200 |
commit | ed23e3d3ca8b6780eef9ea0f04da978ccc885173 (patch) | |
tree | 9f4d375401da11e88d6d5b6a22ca5593663d621b | |
parent | 960adfbc3e19b684f5f3839782f2c1399eabd533 (diff) |
Add qname::empty() member function
-rw-r--r-- | xml/qname.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xml/qname.hxx b/xml/qname.hxx index 9aff532..dcb5c82 100644 --- a/xml/qname.hxx +++ b/xml/qname.hxx @@ -38,6 +38,9 @@ namespace xml std::string& name () {return name_;} std::string& prefix () {return prefix_;} + bool + empty () const {return name_.empty () && ns_.empty ();} + // String representation in the [<namespace>#]<name> form. // std::string |