Demonstrates the default `QuoteSensitive(true)` behavior, where a pattern match is ignored inside a string literal.
ID: 970
using uCalcSoftware;
var uc = new uCalc();
var t = new uCalc.Transformer();
t.FromTo("fox", "CAT");
// The 'fox' inside the quotes is not replaced.
Console.WriteLine(t.Transform("The quick brown fox jumps over the 'lazy fox'."));
The quick brown CAT jumps over the 'lazy fox'. using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); t.FromTo("fox", "CAT"); // The 'fox' inside the quotes is not replaced. Console.WriteLine(t.Transform("The quick brown fox jumps over the 'lazy fox'."));
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
uCalc::Transformer t;
t.FromTo("fox", "CAT");
// The 'fox' inside the quotes is not replaced.
cout << t.Transform("The quick brown fox jumps over the 'lazy fox'.") << endl;
}
The quick brown CAT jumps over the 'lazy fox'. #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; t.FromTo("fox", "CAT"); // The 'fox' inside the quotes is not replaced. cout << t.Transform("The quick brown fox jumps over the 'lazy fox'.") << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t As New uCalc.Transformer()
t.FromTo("fox", "CAT")
'// The 'fox' inside the quotes is not replaced.
Console.WriteLine(t.Transform("The quick brown fox jumps over the 'lazy fox'."))
End Sub
End Module
The quick brown CAT jumps over the 'lazy fox'. Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t As New uCalc.Transformer() t.FromTo("fox", "CAT") '// The 'fox' inside the quotes is not replaced. Console.WriteLine(t.Transform("The quick brown fox jumps over the 'lazy fox'.")) End Sub End Module