XFDL string functionsAdded by IBM on October 10, 2012 | Version 1 (Original)
|String functions manipulate strings. For example, a string function could count lines and words or compare strings to other strings.
Counts the number of lines that a string would occupy a given width, and returns the number of lines. The count assumes that the font is a monospaced font, and that the line wraps at the ends of words, not in the middle of words.
Counts the number of words in a specified string.
Pads or truncates an ASCII string to a specified length.
Takes a string and replaces a substring of it (marked by start and end) with a new string. Returns the resulting string.
Returns the length of string.
Determines if the wildcard string wild matches the non-wildcard string real and returns the Boolean result.
Returns the position of the first character in string1 that matches any of the characters in string2. Note that the count is zero based.
Returns the position of the first character of the last occurrence of the substring string2 in the string string1. Note that the count is zero based.
Returns the position of the first character of the first occurrence of string2 in string1. Note that the count is zero based.
Returns the substring of string from the position indicated in start through the position indicated in end. If start is less than zero then the substring begins on the first character of string. If end is greater than or equal to the length of string then the substring ends on the last character of string.
Returns the lowercase of string.
Returns the uppercase of string.
Returns a copy of string with all leading and trailing white space (blank characters, tab characters, newline characters, or carriage returns) removed.
Returns a URL-decoded version of string.
Returns a URL-encoded version of string.