kernel/util: make convertutf available to C code

No reason to make it C++-only

Change-Id: Ia9c1aff68876fd0d9a4bcf82d69f5e6ec6878ca0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9738
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
PulkoMandy
2025-10-27 12:48:11 +00:00
committed by Adrien Destugues
parent 8ded2fd4bc
commit f80d1b0293
+10
View File
@@ -15,6 +15,11 @@
#include <SupportDefs.h> #include <SupportDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
ssize_t utf16le_to_utf8(const uint16* source, size_t sourceCodeUnitCount, ssize_t utf16le_to_utf8(const uint16* source, size_t sourceCodeUnitCount,
char* target, size_t targetLength); char* target, size_t targetLength);
@@ -22,4 +27,9 @@ ssize_t utf16be_to_utf8(const uint16* source, size_t sourceCodeUnitCount,
char* target, size_t targetLength); char* target, size_t targetLength);
#ifdef __cplusplus
};
#endif
#endif // CONVERT_UTF_H #endif // CONVERT_UTF_H