chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtnl: drop "sd_" prefix from cleanup macros
[elogind.git]
/
src
/
shared
/
utf8.h
diff --git
a/src/shared/utf8.h
b/src/shared/utf8.h
index f56077438aa6970d7d6950b5452c5d9db97a85ff..c0eb73a21d32ea5a483fea51fa39ff6de96ddc4d 100644
(file)
--- a/
src/shared/utf8.h
+++ b/
src/shared/utf8.h
@@
-25,8
+25,11
@@
#include "macro.h"
#include "macro.h"
+#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
+
const char *utf8_is_valid(const char *s) _pure_;
char *ascii_is_valid(const char *s) _pure_;
const char *utf8_is_valid(const char *s) _pure_;
char *ascii_is_valid(const char *s) _pure_;
+char *utf8_escape_invalid(const char *s);
bool utf8_is_printable(const char* str, size_t length) _pure_;
bool utf8_is_printable(const char* str, size_t length) _pure_;