aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/parser/expat/xml-error.cxx
blob: 429e10edd045afdb42091a232a500246cf0f1815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// file      : xsde/cxx/parser/expat/xml-error.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#include <xsde/cxx/parser/expat/xml-error.hxx>

namespace xsde
{
  namespace cxx
  {
    namespace parser
    {
      namespace expat
      {
        static const char* const text_[] =
        {
          "character unrepresentable in application encoding"
        };

        const char*
        xml_error_text (xml_error e)
        {
          return e < 0x10000
            ? XML_ErrorString (static_cast<XML_Error> (e))
            : text_[e & 0xFFFF];
        }
      }
    }
  }
}