1Copyright (c) 2019 Ondřej Čertík
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to deal
5in the Software without restriction, including without limitation the rights
6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
10The above copyright notice and this permission notice shall be included in
11all copies or substantial portions of the Software.
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21--------------------------------------------------------------------------------
23The utf8_decode_step() function and the two defines UTF8_ACCEPT and UTF8_REJECT
24were taken from the [utf-8-misc](https://github.com/hoehrmann/utf-8-misc)
25project and are licensed as follows:
27Copyright (c) 2014 Taylor R Campbell
30Redistribution and use in source and binary forms, with or without
31modification, are permitted provided that the following conditions
331. Redistributions of source code must retain the above copyright
34 notice, this list of conditions and the following disclaimer.
352. Redistributions in binary form must reproduce the above copyright
36 notice, this list of conditions and the following disclaimer in the
37 documentation and/or other materials provided with the distribution.
39THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
40AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
43LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
44CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
45SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
46INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49POSSIBILITY OF SUCH DAMAGE.
51--------------------------------------------------------------------------------
53The enumeration classes `style`, `fg`, `bg`, `fgB` and `bgB` were taken from
54the [rang](https://github.com/agauniyal/rang) project, which is licensed as:
56This is free and unencumbered software released into the public domain.
58Anyone is free to copy, modify, publish, use, compile, sell, or
59distribute this software, either in source code form or as a compiled
60binary, for any purpose, commercial or non-commercial, and by any
63In jurisdictions that recognize copyright laws, the author or authors
64of this software dedicate any and all copyright interest in the
65software to the public domain. We make this dedication for the benefit
66of the public at large and to the detriment of our heirs and
67successors. We intend this dedication to be an overt act of
68relinquishment in perpetuity of all present and future rights to this
69software under copyright law.
71THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
72EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
74IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
75OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
76ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
77OTHER DEALINGS IN THE SOFTWARE.
79For more information, please refer to <http://unlicense.org>
81--------------------------------------------------------------------------------
83The file examples/kilo.cpp was taken from the
84[kilo-src](https://github.com/snaptoken/kilo-src) project, which is licensed
87Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com>
91Redistribution and use in source and binary forms, with or without
92modification, are permitted provided that the following conditions are met:
94* Redistributions of source code must retain the above copyright notice,
95 this list of conditions and the following disclaimer.
97* Redistributions in binary form must reproduce the above copyright notice,
98 this list of conditions and the following disclaimer in the documentation
99 and/or other materials provided with the distribution.
101THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
102ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
103WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
104DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
105ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
106(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
107LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
108ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
109(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
110SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.