diff options
Diffstat (limited to 'include/u8c/u8enc.h')
-rw-r--r-- | include/u8c/u8enc.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/u8c/u8enc.h b/include/u8c/u8enc.h index 6083c2a..f4bdfa5 100644 --- a/include/u8c/u8enc.h +++ b/include/u8c/u8enc.h @@ -3,9 +3,9 @@ This file is part of u8c. - u8c is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + u8c is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - u8c is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + u8c is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. @@ -13,9 +13,16 @@ If not, see <https://www.gnu.org/licenses/>. */ -# if !defined(u8c_sym_u8enc) -# define u8c_sym_u8enc +/* UTF-8 encode */ +# if !defined(u8c_sym_enc) +# define u8c_sym_enc # include <stddef.h> # include <stdint.h> -extern uint_least8_t u8c_u8enc(uint_least32_t * codeps,size_t * utfsz,uint_least8_t * * utf); +# if defined(__cplusplus) +extern "C" { +# endif +extern uint_least8_t u8c_u8enc(size_t * sz,uint_least8_t * * out,uint_least32_t * in); +# if defined(__cplusplus) +} +# endif # endif |