This function scans a string for a character that does not appear in the string. This character can be used as a delimiter.
char = UNIQUE(string,[prefer],[EXTEND])
Parameters
Single character that does not appear in string.
String to be examined.
List of preferred characters. If specified, the left-most unique character is returned. The default is to use an internal preference.
If specified and none of the characters that are specified in prefer is unique, the preference list is extended to all 256 possible characters.
ARG n MISSING OR INVALID
NO UNIQUE CHARACTER
Example
/* Return 3 values on the Stack */ a = ..... /* arbitrary values assigned */ b = ..... c = ..... d = unique(a||b||c) queue d||a||d||b||d||c||d /* Retrieve the values from the Stack */ parse pull 1 d +1 a (d) b (d) c (d)
Copyright © 2014 CA Technologies.
All rights reserved.
|
|