]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Add str_truncate_utf8().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 31 May 2018 22:02:53 +0000 (00:02 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 28 Jun 2018 19:45:15 +0000 (21:45 +0200)
commitf93ef23770a75e9318805284c320f89e42ef8b5e
treeeb7f7b14d3b592dd9a37bd571ddaf7c3cc4c59aa
parent35c136daea614a55ac7542c27148beb15e58434d
lib: Add str_truncate_utf8().

It works similar to str_truncate(), but it makes sure the truncated string
remains valid UTF-8.
src/lib/str.c
src/lib/str.h
src/lib/test-str.c