chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install: make InstallContext::{will_install,have_installed} OrderedHashmaps
[elogind.git]
/
src
/
shared
/
utf8.h
diff --git
a/src/shared/utf8.h
b/src/shared/utf8.h
index c0eb73a21d32ea5a483fea51fa39ff6de96ddc4d..c087995930eb0a75f2c7473829d45df97f5f9ff1 100644
(file)
--- a/
src/shared/utf8.h
+++ b/
src/shared/utf8.h
@@
-31,7
+31,10
@@
const char *utf8_is_valid(const char *s) _pure_;
char *ascii_is_valid(const char *s) _pure_;
char *utf8_escape_invalid(const char *s);
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_newline(const char* str, size_t length, bool newline) _pure_;
+_pure_ static inline bool utf8_is_printable(const char* str, size_t length) {
+ return utf8_is_printable_newline(str, length, true);
+}
char *utf16_to_utf8(const void *s, size_t length);
char *utf16_to_utf8(const void *s, size_t length);