ParseAgainMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform.RuleClass
Determines if modified text should be parsed again after it is modified
Syntax
ParseAgain(TrueFalse)
Parameters
TrueFalse
BOOLEAN
(Default = False)
Value that determines if modified text should be parsed again
Returns
Type: RuleClass
Determines if modified text should be parsed again after it is modified
Remarks
After text is modified with the replacement text of a rule, if this value is false (default) , then uCalc will continue parsing from the position just after the insertion of the modified text. If this property is set to true, then the parser will rewind to the location where the match was found, and parse again, which will allow it to potentially find matches of this or other rules.

Special care should be taken so that an infinite reparsing session doesn't take place. For instance, if a rule changes A to B, and another rule changes B to A, and this property is set ot true, and there is an occurence of A, then A will change to B. B will be parsed again and changed to A. The cycle will repeat itself indefinitely.

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

Private Function ParseAgain__(ByVal RuleHandle As IntPtr,ByVal TrueFalse As Int32) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="ParseAgain")]

protected static extern IntPtr ParseAgain_(IntPtr RuleHandle, bool TrueFalse);
            
{DLLImport}function ParseAgain__(RuleHandle: System.Pointer;TrueFalse: Integer): System.Pointer; cdecl; external uCalcDLL name 'ParseAgain';

            
typedef uCalcPtr (* __ParseAgain)(void *RuleHandle, bool TrueFalse); 

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

static uCalcPtr ParseAgain_(void *  RuleHandle, bool TrueFalse);
            
See also
Prev | Next