chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
partial tests for kvp.c
[disorder]
/
lib
/
charset.h
diff --git
a/lib/charset.h
b/lib/charset.h
index f77c58378be2002cc262e0cd85bb8a605d84d479..f7860df1a2a6c457afc91c12b6f51319b3583d80 100644
(file)
--- a/
lib/charset.h
+++ b/
lib/charset.h
@@
-20,10
+20,10
@@
#ifndef CHARSET_H
#define CHARSET_H
#ifndef CHARSET_H
#define CHARSET_H
+struct dynstr;
+
/* Character encoding conversion routines */
/* Character encoding conversion routines */
-uint32_t *utf82ucs4(const char *mb);
-char *ucs42utf8(const uint32_t *u);
char *mb2utf8(const char *mb);
char *utf82mb(const char *utf8);
/* various conversions, between multibyte strings (mb) in
char *mb2utf8(const char *mb);
char *utf82mb(const char *utf8);
/* various conversions, between multibyte strings (mb) in
@@
-59,8
+59,7
@@
static inline char *nullcheck(char *s) {
return s;
}
return s;
}
-int ucs4cmp(const uint32_t *a, const uint32_t *b);
-/* like strcmp */
+const char *truncate_for_display(const char *s, long max);
#endif /* CHARSET_H */
#endif /* CHARSET_H */