Line data Source code
1 : // Copyright (c) 2000-2022 Made to Order Software Corp. All Rights Reserved
2 : //
3 : // https://snapwebsites.org/project/libutf8
4 : // contact@m2osw.com
5 : //
6 : // This program is free software; you can redistribute it and/or modify
7 : // it under the terms of the GNU General Public License as published by
8 : // the Free Software Foundation; either version 2 of the License, or
9 : // (at your option) any later version.
10 : //
11 : // This program is distributed in the hope that it will be useful,
12 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : // GNU General Public License for more details.
15 : //
16 : // You should have received a copy of the GNU General Public License along
17 : // with this program; if not, write to the Free Software Foundation, Inc.,
18 : // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 : #pragma once
20 :
21 : /** \file
22 : * \brief The declarations of the UTF-8 library.
23 : *
24 : * This file is the declarations of the UTF-8 library which are just a few
25 : * functions used to convert a string from one format to another.
26 : */
27 :
28 : // libexcept
29 : //
30 : #include <libexcept/exception.h>
31 :
32 :
33 :
34 : namespace libutf8
35 : {
36 :
37 :
38 :
39 129000 : DECLARE_LOGIC_ERROR(libutf8_logic_exception);
40 :
41 911820 : DECLARE_MAIN_EXCEPTION(libutf8_exception);
42 :
43 216114 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_decoding);
44 695706 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_encoding);
45 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_invalid_parameter);
46 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_io);
47 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_missing);
48 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_overflow);
49 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_twice);
50 0 : DECLARE_EXCEPTION(libutf8_exception, libutf8_exception_unsupported);
51 :
52 :
53 :
54 : } // libutf8 namespace
55 : // vim: ts=4 sw=4 et
|