Mercurial > libunicode
comparison unicode.hpp @ 10:ae1003c2a284
misc: extreme simplification
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 25 Mar 2020 09:56:05 +0100 |
parents | d9309daa0d7b |
children | 153c09cc6dcb |
comparison
equal
deleted
inserted
replaced
9:d9309daa0d7b | 10:ae1003c2a284 |
---|---|
1 /* | 1 /* |
2 * unicode.hpp -- UTF-8 to UTF-32 conversions and various operations | 2 * unicode.hpp -- UTF-8 to UTF-32 conversions and various operations |
3 * | 3 * |
4 * Copyright (c) 2013-2018 David Demelier <markand@malikania.fr> | 4 * Copyright (c) 2013-2020 David Demelier <markand@malikania.fr> |
5 * | 5 * |
6 * Permission to use, copy, modify, and/or distribute this software for any | 6 * Permission to use, copy, modify, and/or distribute this software for any |
7 * purpose with or without fee is hereby granted, provided that the above | 7 * purpose with or without fee is hereby granted, provided that the above |
8 * copyright notice and this permission notice appear in all copies. | 8 * copyright notice and this permission notice appear in all copies. |
9 * | 9 * |
21 | 21 |
22 /** | 22 /** |
23 * \file unicode.hpp | 23 * \file unicode.hpp |
24 * \brief UTF-8 to UTF-32 conversions | 24 * \brief UTF-8 to UTF-32 conversions |
25 * \author David Demelier <markand@malikania.fr> | 25 * \author David Demelier <markand@malikania.fr> |
26 * \warning These files are auto-generated! | |
27 */ | 26 */ |
28 | 27 |
29 #include <stdexcept> | 28 #include <stdexcept> |
30 #include <string> | 29 #include <string> |
31 #include <string_view> | 30 #include <string_view> |
82 | 81 |
83 /** | 82 /** |
84 * Iterate over all real characters in the UTF-8 string. | 83 * Iterate over all real characters in the UTF-8 string. |
85 * | 84 * |
86 * The function must have the following signature: | 85 * The function must have the following signature: |
87 * void f(char ch) | 86 * void f(char32_t ch) |
88 * | 87 * |
89 * \param str the UTF-8 string | 88 * \param str the UTF-8 string |
90 * \param function the function callback | 89 * \param function the function callback |
91 * \throw std::invalid_argument on invalid sequence | 90 * \throw std::invalid_argument on invalid sequence |
92 */ | 91 */ |