String Util Library + ParseInt Function

This commit is contained in:
Spooks
2024-03-07 16:38:06 -07:00
parent 0c36944fc1
commit cb04c86fb2
3 changed files with 208 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
let sampleText = "Hello, World!";
let lengthOfText = "Length of text: " + to_string(StringUtils.GetLength(sampleText));
print(lengthOfText);
let start = 7;
let end = 12;
let substringResult = StringUtils.substring(sampleText, start, end);
print(substringResult);
let searchStr = "World";
let result2 = to_string(StringUtils.indexOf(sampleText, searchStr));
print(result2);
let upperCaseText = "Text in upper case: " + StringUtils.toUpperCase(sampleText);
print(upperCaseText);
let lowerCaseText = "Text in lower case: " + StringUtils.toLowerCase(sampleText);
print(lowerCaseText);