Rupert -
In the TestStand expression language there is a SearchAndReplace function which returns the modified string. What is the code snippet, is it C, C++, expression?
Scott Richardson (NI)
SearchAndReplace(string, searchString, replacementString,
, , , , )
This function searches for and replaces one or more substrings with the replacementString.
Parameter 1: A string in which to perform substring replacements.
Parameter 2: The substring to find and then replace with the replacement string.
Parameter 3: The replacement string.
Parameter 4: An optional number that specifies the zero-based character index at which to begin searching. The default is 0.
Parameter 5: An op
tional Boolean that specifies whether to ignore character case when searching. The default is False.
Parameter 6: An optional number that specifies the maximum number of occurrences of substring to replace. A value of -1 signals the function to replace all occurrences of the substring. The default is -1.
Parameter 7: An optional Boolean that specifies whether to search the string in reverse. The default is False. If you pass True, the start index passed to parameter 3 specifies the zero-based index from the end of the string of the character at which to begin searching in reverse.
Parameter 8: An optional number in which the function stores the number of substrings that it replaced.
Returns: The modified string.
Scott Richardson