MinMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform.RuleClass
Sets the minimum number of matches that must be found in this rule
Syntax
Min(Value)
Parameters
Value
Int32
Minimum number of matches required of this rule
Returns
Type: RuleClass
Sets the minimum number of matches that must be found in this rule
Remarks
This sets the minimum number of individual matches that this rule should find in order for any matches of this rule to count. If less than this number of matches are found in the text, then none of the matches in this rule will count. For instance if a rule searches for matches of "a" in "a a r d v a r k", and the minimum is set to 5, then no matches of "a" will be counted at all, because there are not at least 5 occurences of "a" in the text. On the other hand, if Min is set to 3 or less, then all the matches count.

The default Min value is 0.

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

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

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

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

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

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