~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to src/plugins/fts-lucene/SnowballFilter.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/{control,rules}: enable PIE hardening.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*------------------------------------------------------------------------------
 
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
 
3
*
 
4
* Distributable under the terms of either the Apache License (Version 2.0) or
 
5
* the GNU Lesser General Public License, as specified in the COPYING file.
 
6
------------------------------------------------------------------------------*/
 
7
#ifndef _lucene_analysis_snowball_filter_
 
8
#define _lucene_analysis_snowball_filter_
 
9
 
 
10
#include "CLucene/analysis/AnalysisHeader.h"
 
11
#include "libstemmer.h"
 
12
 
 
13
CL_NS_DEF2(analysis,snowball)
 
14
 
 
15
/** A filter that stems words using a Snowball-generated stemmer.
 
16
 *
 
17
 * Available stemmers are listed in {@link net.sf.snowball.ext}.  The name of a
 
18
 * stemmer is the part of the class name before "Stemmer", e.g., the stemmer in
 
19
 * {@link EnglishStemmer} is named "English".
 
20
 *
 
21
 * Note: todo: This is not thread safe...
 
22
 */
 
23
class CLUCENE_CONTRIBS_EXPORT SnowballFilter: public TokenFilter {
 
24
        struct sb_stemmer * stemmer;
 
25
public:
 
26
 
 
27
  /** Construct the named stemming filter.
 
28
   *
 
29
   * @param in the input tokens to stem
 
30
   * @param name the name of a stemmer
 
31
   */
 
32
        SnowballFilter(TokenStream* in, const char* language, bool deleteTS);
 
33
 
 
34
        ~SnowballFilter();
 
35
 
 
36
    /** Returns the next input Token, after being stemmed */
 
37
    Token* next(Token* token);
 
38
};
 
39
 
 
40
CL_NS_END2
 
41
#endif