chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared/architecture.h: fix preprocessor directives
[elogind.git]
/
src
/
shared
/
utf8.h
diff --git
a/src/shared/utf8.h
b/src/shared/utf8.h
index 7a5608c9ee13c4c98276029e507f5b1721a614d8..c0eb73a21d32ea5a483fea51fa39ff6de96ddc4d 100644
(file)
--- a/
src/shared/utf8.h
+++ b/
src/shared/utf8.h
@@
-25,16
+25,15
@@
#include "macro.h"
#include "macro.h"
-char *utf8_is_valid(const char *s) _pure_;
+#define UTF8_REPLACEMENT_CHARACTER "\xef\xbf\xbd"
+
+const char *utf8_is_valid(const char *s) _pure_;
char *ascii_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_;
-char *utf8_filter(const char *s);
-char *ascii_filter(const char *s);
-
char *utf16_to_utf8(const void *s, size_t length);
int utf8_encoded_valid_unichar(const char *str);
char *utf16_to_utf8(const void *s, size_t length);
int utf8_encoded_valid_unichar(const char *str);
-int is_utf8_encoding_whitelisted(char c, const char *white);
-int udev_encode_string(const char *str, char *str_enc, size_t len);
+int utf8_encoded_to_unichar(const char *str);