StrLength()
ID: 157
See: StrLength
using uCalcSoftware;
var uc = new uCalc();
var t = uc.NewTransformer();
t.Str("a b c d e f");
t.FromTo("{ a | d }", "xy");
Console.WriteLine(t);
Console.WriteLine($"Length: {t.StrLength()}");
Console.WriteLine("");
Console.WriteLine(t.Transform());
Console.WriteLine($"Length: {t.StrLength()}");
a b c d e f
Length: 11
xy b c xy e f
Length: 13 using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.Str("a b c d e f"); t.FromTo("{ a | d }", "xy"); Console.WriteLine(t); Console.WriteLine($"Length: {t.StrLength()}"); Console.WriteLine(""); Console.WriteLine(t.Transform()); Console.WriteLine($"Length: {t.StrLength()}");
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
auto t = uc.NewTransformer();
t.Str("a b c d e f");
t.FromTo("{ a | d }", "xy");
cout << t << endl;
cout << "Length: " << t.StrLength() << endl;
cout << "" << endl;
cout << t.Transform() << endl;
cout << "Length: " << t.StrLength() << endl;
}
a b c d e f
Length: 11
xy b c xy e f
Length: 13 #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.Str("a b c d e f"); t.FromTo("{ a | d }", "xy"); cout << t << endl; cout << "Length: " << t.StrLength() << endl; cout << "" << endl; cout << t.Transform() << endl; cout << "Length: " << t.StrLength() << endl; }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Dim t = uc.NewTransformer()
t.Str("a b c d e f")
t.FromTo("{ a | d }", "xy")
Console.WriteLine(t)
Console.WriteLine($"Length: {t.StrLength()}")
Console.WriteLine("")
Console.WriteLine(t.Transform())
Console.WriteLine($"Length: {t.StrLength()}")
End Sub
End Module
a b c d e f
Length: 11
xy b c xy e f
Length: 13 Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() t.Str("a b c d e f") t.FromTo("{ a | d }", "xy") Console.WriteLine(t) Console.WriteLine($"Length: {t.StrLength()}") Console.WriteLine("") Console.WriteLine(t.Transform()) Console.WriteLine($"Length: {t.StrLength()}") End Sub End Module