Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
a035db22322ea2dd94b5948d85f1ca81efb871d7...2f5938c98d0986eb2a267de0441ab1405c6e39ca
Commits (1)
The ole extern "C" trick eh?
· 2f5938c9
Deucе
authored
Feb 10, 2022
2f5938c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/conio/utf8_codepages.h
src/conio/utf8_codepages.h
+6
-0
No files found.
src/conio/utf8_codepages.h
View file @
2f5938c9
...
...
@@ -42,6 +42,9 @@ struct codepage_def {
const
uint32_t
*
cp_ext_unicode_table
;
};
#ifdef __cplusplus
extern
"C"
{
#endif
extern
const
struct
codepage_def
ciolib_cp
[
CIOLIB_CP_COUNT
];
uint8_t
*
cp_to_utf8
(
enum
ciolib_codepage
cp
,
const
char
*
cpstr
,
size_t
buflen
,
size_t
*
outlen
);
...
...
@@ -49,5 +52,8 @@ char *utf8_to_cp(enum ciolib_codepage cp, const uint8_t *utf8str, char unmapped,
uint8_t
cpchar_from_unicode_cpoint
(
enum
ciolib_codepage
cp
,
uint32_t
cpoint
,
char
unmapped
);
uint32_t
cpoint_from_cpchar
(
enum
ciolib_codepage
cp
,
uint8_t
ch
);
uint32_t
cpoint_from_cpchar_ext
(
enum
ciolib_codepage
cp
,
uint8_t
ch
);
#ifdef __cplusplus
}
#endif
#endif