From 2615896faa646e5830abf2c269150e1165c66515 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 18 Dec 2020 18:48:46 +0300 Subject: Switch to build2 --- libxsd/xsd/cxx/xml/string.hxx | 89 ------------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 libxsd/xsd/cxx/xml/string.hxx (limited to 'libxsd/xsd/cxx/xml/string.hxx') diff --git a/libxsd/xsd/cxx/xml/string.hxx b/libxsd/xsd/cxx/xml/string.hxx deleted file mode 100644 index 252bb82..0000000 --- a/libxsd/xsd/cxx/xml/string.hxx +++ /dev/null @@ -1,89 +0,0 @@ -// file : xsd/cxx/xml/string.hxx -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -#ifndef XSD_CXX_XML_STRING_HXX -#define XSD_CXX_XML_STRING_HXX - -#include -#include // std::size_t - -#include // XMLCh - -#include // XSD_CXX11 - -#ifdef XSD_CXX11 -# include // std::unique_ptr -#else -# include -#endif - -namespace xsd -{ - namespace cxx - { - namespace xml - { - // Transcode a null-terminated string. - // - template - std::basic_string - transcode (const XMLCh* s); - - // Transcode a potentially non-null-terminated string. - // - template - std::basic_string - transcode (const XMLCh* s, std::size_t length); - - - // For VC wchar_t and XMLCh are the same type so we cannot overload - // the transcode name. You should not use these functions anyway and - // instead use the xml::string class below. - // - template - XMLCh* - transcode_to_xmlch (const C*); - - template - XMLCh* - transcode_to_xmlch (const std::basic_string& s); - - // - // - class string - { - public : - template - string (const std::basic_string& s) - : s_ (transcode_to_xmlch (s)) {} - - template - string (const C* s): s_ (transcode_to_xmlch (s)) {} - - const XMLCh* - c_str () const {return s_.get ();} - - XMLCh* - release () {return s_.release ();} - - private: - string (const string&); - - string& - operator= (const string&); - - private: -#ifdef XSD_CXX11 - std::unique_ptr s_; -#else - auto_array s_; -#endif - }; - } - } -} - -#endif // XSD_CXX_XML_STRING_HXX - -#include -#include -- cgit v1.1