-
Notifications
You must be signed in to change notification settings - Fork 2
Strings
This utility give you access to a couple of procedures that helps you with Strings in some cases.
ExplodeStringToArray(Array a$(1), s$, delimiter$, cleanString.b=#True)
How it works:
Explodes a given String(s$) at every given delimiter(d$) and stores the String parts in a given pre-initialized Array(a$).
Parameters:
a$() - The array that will contain the splitted String.
s$ - A String that will be splitted.
delimiter$ - The string delimiter to use to separate the fields. It can be a multi-characters delimiter
cleanString.b - [Removes delimiters that next to one another]
Returns :
The amount of entries in the array.
IsNullOrEmpty(a$)
Parameters:
a$ - A String that will be analysed.
Returns :
A nonzero value if a$ is equal to #Null$, has a length of 0 or is filled with spaces characters (0x20).
Format(text.s, *val1=0, ..., *val11=0)
TEMP: This function isn't finished!
How it works:
???
Parameters:
text.s - ???
*val1 - ???
*val11 - ???
Formatting:
???
Returns:
The formatted String
● Added a placeholder function for Format(...).
● Added a string cleaner in ExplodeStringToArray(...).
● Added the IsNullOrEmpty(...) procedure.
● Added unit tests.
● Added the ExplodeStringToArray(...) procedure.