1. Search and replace function for strings, with multiple matches/replacements per string. Wildcards in the search string would be nice too.
2. More complex, nested string expressions, similar to what you can do numerically in a MATH box.
Can you give some examples of each these?
1. Assume SS0 = "12345678901234567890". Then a STRREP function such that STRREP SS0 "1" "AA" returns "AA234567890AA234567890" and can be assigned to SS0 or SL1 or whatever. I originally got the idea while trying to replace NULLs (ASCII 0x00) with spaces. However, I came to think that maybe replacing NULLs is a special case for two reasons. They may give your C-based searches grief, and second, because 0x00 may be the default for unused character positions in the string. Thus, the specific case of NULL replacement might be better addressed by a STRPAD function (pad with so many of a specified character, or pad to some specified total string length).
2. In the same scenario mentioned above, I did a STRTRIM to get rid of the NULLs, followed by appending enough spaces to fill out the string to the allocated length (not the string .MaxLen) using STRPRINT, then STRTRUNC to the desired length. Kind of roundabout.
STRPRINT now essentially takes a list of discrete items and smashes them into the string, with or without intervening spaces, while allowing for some printf style formatting functions. I'm asking for STRPRINT to take
STRTRUNC(STRTRIM(SS0) + STRFILL(" ", 20), 20)
or even
STRTRIM(SS0) + STRFILL(" ", 20 - SS0.Length)
and the like as its expression. (My STRPAD function could also be used here, this is just an example of the more complex expressions I'm asking for) That way you could get a lot done in one shot. Analogous to how a MATH box replaces a stack of 6 individual instruction boxes like ADD and MUL.
*Note that STRFILL() function to generate in an expression a string containing repeats of a specific character or substring.