summaryrefslogtreecommitdiff
path: root/xsd/libxsd/xsd/cxx/xml/char-utf8.hxx
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
commit4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch)
treebbadf39aed0610c8f8f7b41fefff47773b8ac205 /xsd/libxsd/xsd/cxx/xml/char-utf8.hxx
parent23d41842168ac1a1580111b9c5c73500ceee3d57 (diff)
parentaad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff)
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0' with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'xsd/libxsd/xsd/cxx/xml/char-utf8.hxx')
-rw-r--r--xsd/libxsd/xsd/cxx/xml/char-utf8.hxx56
1 files changed, 0 insertions, 56 deletions
diff --git a/xsd/libxsd/xsd/cxx/xml/char-utf8.hxx b/xsd/libxsd/xsd/cxx/xml/char-utf8.hxx
deleted file mode 100644
index afc923a..0000000
--- a/xsd/libxsd/xsd/cxx/xml/char-utf8.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-// file : xsd/cxx/xml/char-utf8.hxx
-// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC
-// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
-
-#ifndef XSD_CXX_XML_TRANSCODER
-#define XSD_CXX_XML_TRANSCODER
-#define XSD_CXX_XML_TRANSCODER_CHAR_UTF8
-
-#include <string>
-#include <cstddef> // std::size_t
-
-#include <xercesc/util/XercesDefs.hpp> // XMLCh
-
-#include <xsd/cxx/xml/exceptions.hxx> // invalid_utf16_string
-
-namespace xsd
-{
- namespace cxx
- {
- namespace xml
- {
- struct invalid_utf8_string {};
-
- // UTF-16 to/from UTF-8 transcoder.
- //
- template <typename C>
- struct char_utf8_transcoder
- {
- static std::basic_string<C>
- to (const XMLCh* s, std::size_t length);
-
- static XMLCh*
- from (const C* s, std::size_t length);
-
- private:
- static const unsigned char first_byte_mask_[5];
- };
-
- typedef char_utf8_transcoder<char> char_transcoder;
- }
- }
-}
-
-#include <xsd/cxx/xml/char-utf8.txx>
-
-#else
-# ifndef XSD_CXX_XML_TRANSCODER_CHAR_UTF8
- //
- // If you get this error, it usually means that either you compiled
- // your schemas with different --char-encoding values or you included
- // some of the libxsd headers (e.g., xsd/cxx/xml/string.hxx) directly
- // without first including the correct xsd/cxx/xml/char-*.hxx header.
- //
-# error conflicting character encoding detected
-# endif
-#endif // XSD_CXX_XML_TRANSCODER