lexer: Factor out functions for counting columns.
[pspp] / src / libpspp / str.h
index 8cde5779143773e5dd3aeb02d914a01a4740ae16..aaf83d71a448fcb9e429a165d92fa617ffbfd8fc 100644 (file)
@@ -150,6 +150,8 @@ int ss_first_mblen (struct substring);
 ucs4_t ss_get_mb (struct substring *);
 ucs4_t ss_at_mb (struct substring, size_t ofs);
 int ss_at_mblen (struct substring, size_t ofs);
+size_t ss_utf8_count_columns (struct substring);
+struct substring ss_utf8_columns (struct substring, size_t start, size_t n);
 \f
 /* Variable length strings. */