mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
736 B
22 lines
736 B
namespace Iveonik.Stemmers
|
|
{
|
|
internal class Among
|
|
{
|
|
public readonly int s_size; /* search string */
|
|
public readonly char[] s; /* search string */
|
|
public readonly int substring_i; /* index to longest matching substring */
|
|
public readonly int result; /* result of the lookup */
|
|
public delegate bool boolDel();
|
|
public readonly boolDel method; /* method to use if substring matches */
|
|
|
|
public Among(string s, int substring_i, int result, boolDel linkMethod)
|
|
{
|
|
this.s_size = s.Length;
|
|
this.s = s.ToCharArray();
|
|
this.substring_i = substring_i;
|
|
this.result = result;
|
|
this.method = linkMethod;
|
|
}
|
|
}
|
|
}
|