protected internal virtual void copy_from(SnowballProgram other)
 {
     current        = other.current;
     cursor         = other.cursor;
     limit          = other.limit;
     limit_backward = other.limit_backward;
     bra            = other.bra;
     ket            = other.ket;
 }
Exemple #2
0
 public Among(System.String s, int substring_i, int result, System.String methodname, SnowballProgram methodobject)
 {
     this.s_size      = s.Length;
     this.s           = s;
     this.substring_i = substring_i;
     this.result      = result;
     if (methodname.Length == 0)
     {
         this.method = null;
     }
     else
     {
         var m = methodobject.GetType().GetType().GetMethod(methodname); //.GetDeclaredMethod(methodname);
         if (m == null)
         {
             throw new Exception();
         }
         method = Expression.Lambda <Func <bool> >(Expression.Call(Expression.Constant(methodobject), m)).Compile();
     }
 }