size_t append_len, pos = 0, appended = 0;
unichar_t c;
+ if (size == 0)
+ return;
+ if (data[0] == '\'' && tok->token->used == 0) {
+ /* Skip apostrophes in the beginning of the token.
+ We need to do it here so that we don't truncate the
+ token too early. */
+ data++;
+ size--;
+ if (size == 0)
+ return;
+ i_assert(data[0] != '\'');
+ }
+
i_assert(tok->max_length >= tok->token->used);
append_len = I_MIN(size, tok->max_length - tok->token->used);
"' ' '' ''' 'quoted text' 'word' 'hlo words' you're bad'''word '''pre post'''",
+ "'1234567890123456789012345678ä,"
+
/* whitespace: with Unicode(utf8) U+FF01(ef bc 81)(U+2000(e2 80 80) and
U+205A(e2 81 9a) and U+205F(e2 81 9f) */
"hello\xEF\xBC\x81world\r\nAnd\xE2\x80\x80there\twas: text "
"quoted", "text", "word", "hlo", "words", "you're", "bad",
"word", "pre", "post", NULL,
+ "1234567890123456789012345678ä",
+
"hello", "world", "And",
"there", "was", "text", "galore",
"and", "more", NULL,
"quoted", "text", "word", "hlo", "words", "you're", "bad",
"word", "pre", "post", NULL,
+ "1234567890123456789012345678ä",
+
"hello", "world", "And",
"there", "was", "text", "galore",
"and", "more", NULL,