Extracting a value from a simple key-value pair.
ID: 1163
See: After
using uCalcSoftware;
var uc = new uCalc();
using (var s = new uCalc.String("ID: 12345")) {
// Get the text after the "ID: " prefix
var value = s.After("ID: ");
Console.WriteLine(value);
}
12345 using uCalcSoftware; var uc = new uCalc(); using (var s = new uCalc.String("ID: 12345")) { // Get the text after the "ID: " prefix var value = s.After("ID: "); Console.WriteLine(value); }
#include
#include "uCalc.h"
using namespace std;
using namespace uCalcSoftware;
int main() {
uCalc uc;
{
uCalc::String s("ID: 12345");
s.Owned(); // Causes s to be released when it goes out of scope
// Get the text after the "ID: " prefix
auto value = s.After("ID: ");
cout << value << endl;
}
}
12345 #include <iostream> #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; { uCalc::String s("ID: 12345"); s.Owned(); // Causes s to be released when it goes out of scope // Get the text after the "ID: " prefix auto value = s.After("ID: "); cout << value << endl; } }
Imports System
Imports uCalcSoftware
Public Module Program
Public Sub Main()
Dim uc As New uCalc()
Using s As New uCalc.String("ID: 12345")
'// Get the text after the "ID: " prefix
Dim value = s.After("ID: ")
Console.WriteLine(value)
End Using
End Sub
End Module
12345 Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Using s As New uCalc.String("ID: 12345") '// Get the text after the "ID: " prefix Dim value = s.After("ID: ") Console.WriteLine(value) End Using End Sub End Module