lexer: Move lex_ellipsize() into string module, as str_ellipsize().
[pspp] / src / libpspp / str.h
index 7917d58a70dd3a62e305ff84c6884aa85e7061cb..57783e0ea57a7615aa31315f07160d91be978caf 100644 (file)
@@ -34,6 +34,8 @@
 \f
 /* Miscellaneous. */
 
+struct substring;
+
 void buf_reverse (char *, size_t);
 int buf_compare_case (const char *, const char *, size_t);
 int buf_compare_rpad (const char *, size_t, const char *, size_t);
@@ -52,6 +54,8 @@ void str_lowercase (char *);
 bool str_format_26adic (unsigned long int number, bool uppercase,
                         char buffer[], size_t);
 
+void str_ellipsize (struct substring in, char *out, size_t out_size);
+
 static inline char *xstrdup_if_nonnull (const char *);
 
 void *mempset (void *, int, size_t);