|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > ARS. - Array's > ARS. - String Builder Operations |
📘 SPR String Builder Operations Manual
The ARS String Builder works with string arrays as well as with the two number arrays, Extended and Integer.
For string arrays, no delimiter is used, meaning the strings just stick together.
For number arrays, Extended and Integer use a semicolon, while Integer uses a comma as a delimiter.
The String Builder takes all elements of the array and concatenates them with a delimiter in between. 🚀
•What is a String Builder?
•String Builder Commands Overview
•Code Examples
•Illustrations
A String Builder in SPR is a tool used for efficient string manipulation. Unlike traditional string concatenation,
which can be inefficient due to the immutability of strings, a String Builder allows you to modify and build strings dynamically.
This is particularly useful when you need to perform multiple modifications or concatenations on a string.
' Creates a new String from the conten of the Array.
ARS.BuildStr|$$ARS
Here are some practical examples of using String Builder operations in SPR:
' Create a new String Builder.
ARS.BuildStr|$$ARS
Below is an illustration of how String Builder operations work using Unicode characters:
String Builder:
+----------------------------------------+
| Hello, World! | How are you?
+----------------------------------------+