From 1a4099b78717b16f632b0e7e0980a27811221e52 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Jul 2014 09:57:09 +0200 Subject: Implement anyType and anySimpleType content representation anyType as a DOM fragment, similar to wildcards. anySimpleType as a text string. --- libxsd/xsd/cxx/xml/string.hxx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'libxsd/xsd/cxx/xml/string.hxx') diff --git a/libxsd/xsd/cxx/xml/string.hxx b/libxsd/xsd/cxx/xml/string.hxx index dbc78b4..9f4767b 100644 --- a/libxsd/xsd/cxx/xml/string.hxx +++ b/libxsd/xsd/cxx/xml/string.hxx @@ -56,21 +56,16 @@ namespace xsd public : template string (const std::basic_string& s) - : s_ (transcode_to_xmlch (s)) - { - } + : s_ (transcode_to_xmlch (s)) {} template - string (const C* s) - : s_ (transcode_to_xmlch (s)) - { - } + string (const C* s): s_ (transcode_to_xmlch (s)) {} const XMLCh* - c_str () const - { - return s_.get (); - } + c_str () const {return s_.get ();} + + XMLCh* + release () {return s_.release ();} private: string (const string&); -- cgit v1.1