FromToMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform
Defines a transform rule
Syntax
FromTo(FromStr, ToStr)
Parameters
FromStr
String
Pattern that describes the text to match
ToStr
String
(Default = 0)
New text that the match should be changed to
Returns
Type: RuleClass
Defines a transform rule
Remarks
Whenever a piece of text matches the pattern described in FromStr, it is replaced with the text found in ToStr.

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

Private Function FromTo__(ByVal TransformHandle As IntPtr,ByVal FromStr As String , ByVal ToStr As String  ) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="FromTo")]

protected static extern IntPtr FromTo_(IntPtr TransformHandle, string FromStr ,  string ToStr  );
            
{DLLImport}function FromTo__(TransformHandle: System.Pointer;FromStr: AnsiString ; ToStr: AnsiString): System.Pointer; cdecl; external uCalcDLL name 'FromTo';

            
typedef uCalcPtr (* __FromTo)(void *TransformHandle, CONSTCHAR FromStr  ,  CONSTCHAR ToStr   ); 

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

static uCalcPtr FromTo_(void *  TransformHandle, MARSHALSTR FromStr  ,  MARSHALSTR ToStr);
            
See also
Prev | Next