~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/plugins/fts-lucene/Snowball.cc

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
 
114
114
        buffer_t buf = { 0, 0, { 0, 0, 0, 0, 0 } };
115
115
        i_assert(sizeof(wchar_t) == sizeof(unichar_t));
116
 
        buffer_create_data(&buf, utf8text, sizeof(utf8text));
 
116
        buffer_create_from_data(&buf, utf8text, sizeof(utf8text));
117
117
        uni_ucs4_to_utf8((const unichar_t *)token->termBuffer(), len, &buf);
118
118
 
119
119
    const sb_symbol* stemmed = sb_stemmer_stem(stemmer, utf8text, buf.used);