ReplacementTextMethod
Returns the replacement part of a syntax construct defined with
DefineSyntax
Example 1: Inspecting the parts of a syntax construct
uc.DefineSyntax("This {etc} ::= That")
Console.WriteLine(uc.GetItemOf("This", 0, true).Text())
Console.WriteLine(uc.GetItemOf("This", 0, true).ReplacementText())
uc.DefineSyntax("This {etc} ::= That");
Console.WriteLine(uc.GetItemOf("This", 0, true).Text());
Console.WriteLine(uc.GetItemOf("This", 0, true).ReplacementText());
uc.DefineSyntax('This {etc} ::= That');
WriteLn(uc.GetItemOf('This', 0, true).Text());
WriteLn(uc.GetItemOf('This', 0, true).ReplacementText());
uc.DefineSyntax("This {etc} ::= That");
cout << uc.GetItemOf("This", 0, true).Text() << endl;
cout << uc.GetItemOf("This", 0, true).ReplacementText() << endl;
uc.DefineSyntax("This {etc} ::= That");
Console::WriteLine(uc.GetItemOf("This", 0, true).Text());
Console::WriteLine(uc.GetItemOf("This", 0, true).ReplacementText());
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="ReplacementText")> _
Private Function ReplacementText__(ByVal ItemHandle As IntPtr) As IntPtr
End Function
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="ReplacementText")]
protected static extern IntPtr ReplacementText_(IntPtr ItemHandle);
{DLLImport}function ReplacementText__(ItemHandle: System.Pointer): PAnsiChar; cdecl; external uCalcDLL name 'ReplacementText';
typedef const char * (* __ReplacementText)(void *ItemHandle);
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "ReplacementText")]
static STR_RETURN ReplacementText_(void * ItemHandle);