StartAfterMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform.RuleClass
Sets the number of matches this rule must find before matches start counting
Syntax
StartAfter(Value)
Parameters
Value
Int32
Number of matches that must be found before matches start counting
Returns
Type: RuleClass
Sets the number of matches this rule must find before matches start counting
Remarks
This sets a number of individual matches that this rule should find first. These first few matches are not counted in the results. Onlny matches starting after this number of initial matches are counted. If less than this number of matches are found in the text, no match will count. For instance if a rule searches for matches of "a" in "a a r d v a r k", starting after 2, then only the 3*rd "a" (the one between "v" and "r") will count. If StartAfter is set to 3, there will be no matches. If StartAfter is 1, then then the 2*nd and 3*rd occurences of "a" will count as matches.

The default StartAfter value is 0. This means all matches that are found will count.

DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="StartAfter")> _

Private Function StartAfter__(ByVal RuleHandle As IntPtr,ByVal Value As Int32) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="StartAfter")]

protected static extern IntPtr StartAfter_(IntPtr RuleHandle, Int32 Value);
            
{DLLImport}function StartAfter__(RuleHandle: System.Pointer;Value: Int32): System.Pointer; cdecl; external uCalcDLL name 'StartAfter';

            
typedef uCalcPtr (* __StartAfter)(void *RuleHandle, int32_t Value); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "StartAfter")]

static uCalcPtr StartAfter_(void *  RuleHandle, Int32 Value);
            
See also
Prev | Next