TraceLab Component Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Among.cs
Go to the documentation of this file.
1 /*
2  * Port of Snowball stemmers on C#
3  * Original stemmers can be found on http://snowball.tartarus.org
4  * Licence still BSD: http://snowball.tartarus.org/license.php
5  *
6  * Most of stemmers are ported from Java by Iveonik Systems ltd. (www.iveonik.com)
7  */
8 using System;
9 using System.Collections.Generic;
10 using System.Text;
11 
12 namespace TraceLab.Components.DevelopmentKit.Preprocessors.Stemmers.Snowball.Languages
13 {
14 
15  internal class Among
16  {
17 
18  public readonly int s_size; /* search string */
19  public readonly char[] s; /* search string */
20  public readonly int substring_i; /* index to longest matching substring */
21  public readonly int result; /* result of the lookup */
22  public delegate bool boolDel();
23  public readonly boolDel method; /* method to use if substring matches */
24 
25  public Among(string s, int substring_i, int result, boolDel linkMethod)
26  {
27  this.s_size = s.Length;
28  this.s = s.ToCharArray();
29  this.substring_i = substring_i;
30  this.result = result;
31  this.method = linkMethod;
32  }
33  }
34 }