We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77103c7 commit 4523304Copy full SHA for 4523304
include/is_utf8.h
@@ -1,10 +1,21 @@
1
#ifndef IS_UTF8
2
+#define IS_UTF8
3
+
4
#include <stddef.h>
5
6
+#ifdef __cplusplus
7
+extern "C" {
8
+#endif
9
10
// Check whether the provided string is UTF-8.
11
// The function is designed for use cases where
12
// 99.99% of the inputs are valid UTF-8.
13
// Thus the function unconditionally scans the
14
// whole input.
-extern "C" bool is_utf8(const char *src, size_t len);
15
+bool is_utf8(const char *src, size_t len);
16
17
18
+}
19
20
21
#endif // IS_UTF8
0 commit comments