| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
1 |
// Copyright 2006 Nemanja Trifunovic |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
2 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
3 |
/* |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
4 |
Permission is hereby granted, free of charge, to any person or organization |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
5 |
obtaining a copy of the software and accompanying documentation covered by |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
6 |
this license (the "Software") to use, reproduce, display, distribute, |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
7 |
execute, and transmit the Software, and to prepare derivative works of the |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
8 |
Software, and to permit third-parties to whom the Software is furnished to |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
9 |
do so, all subject to the following: |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
10 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
11 |
The copyright notices in the Software and this entire statement, including |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
12 |
the above license grant, this restriction and the following disclaimer, |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
13 |
must be included in all copies of the Software, in whole or in part, and |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
14 |
all derivative works of the Software, unless such copies or derivative |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
15 |
works are solely in the form of machine-executable object code generated by |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
16 |
a source language processor. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
17 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
18 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
19 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
20 |
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
21 |
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
22 |
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
23 |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
24 |
DEALINGS IN THE SOFTWARE. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
25 |
*/ |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
26 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
27 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
28 |
#ifndef UTF8_FOR_CPP_2675DCD0_9480_4c0c_B92A_CC14C027B731 |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
29 |
#define UTF8_FOR_CPP_2675DCD0_9480_4c0c_B92A_CC14C027B731 |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
30 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
31 |
/* |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
32 |
To control the C++ language version used by the library, you can define UTF_CPP_CPLUSPLUS macro |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
33 |
and set it to one of the values used by the __cplusplus predefined macro. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
34 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
35 |
For instance, |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
36 |
#define UTF_CPP_CPLUSPLUS 199711L |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
37 |
will cause the UTF-8 CPP library to use only types and language features available in the C++ 98 standard. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
38 |
Some library features will be disabled. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
39 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
40 |
If you leave UTF_CPP_CPLUSPLUS undefined, it will be internally assigned to __cplusplus. |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
41 |
*/ |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
42 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
43 |
#include "utf8/checked.h" |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
44 |
#include "utf8/unchecked.h" |
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
45 |
|
| dbf0fff9 |
Poul Sander |
2025-09-18 18:25 |
46 |
#endif // header guard |
|
|
1970-01-01 00:00 |
47 |
|