MPSTR truncates a string at a logical boundary and returns a mixed character string. It does not truncate a double-byte character between bytes. The length of the returned string is equal to the length of the expression x, or to the value specified by y. The processing of the string is determined by the rules selected by the expression r, as described below.
|
The expression r specifies the rules to be used for processing the string. The characters that can be used in r and the rules for them are as follows:
If both V and S are specified, V takes precedence over S, regardless of the order in which they were specified.
If S is specified without V, the string x is assumed to be a valid string. If the string is not valid, undefined results occur.