chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing: if RLIMIT_RTTIME is not defined by the libc, then we need a new define for...
[elogind.git]
/
src
/
shared
/
utf8.h
diff --git
a/src/shared/utf8.h
b/src/shared/utf8.h
index e3eef11bb93137e3171f47c192ecad68f591e282..c0eb73a21d32ea5a483fea51fa39ff6de96ddc4d 100644
(file)
--- a/
src/shared/utf8.h
+++ b/
src/shared/utf8.h
@@
-25,13
+25,14
@@
#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_;
-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);