...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfTrimString (actualString : STRING; -- actual string to be trimmed prefixChars : STRING; -- optional; used in the TRIM_STRING_PREFIX option suffixChars : STRING; -- optional; used in the TRIM_STRING_SUFFIX option options : INTEGER) trimmedString : STRING; -- resulting trimmed string |
Use this function to ....
Arguments
Insert excerpt
Arguments
...
Type | Name | Comment |
STRING | actualString | The actual string to be trimmed |
STRING | prefixChars | Optional argument. Default is INDETERMINATE (?). This argument specifies a set of characters that will be used in trimming the start (prefix) of the actualString. This argument is only effective when the option xpxTRIM_STRING_PREFIX is specified. |
STRING | suffixChars | Optional argument. Default is INDETERMINATE (?). This argument specifies a set of characters that will be used in trimming the end (suffix) of the actualString. This argument is only effective when the option xpxTRIM_STRING_SUFFIX is specified. |
INTEGER | options | Optional argument. Default value is INDETERMINATE (?). Specifies the suffix of each substring. This suffix will be removed in the string splitting operation. |
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example
<example missing>
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
xpfTrimString
...
-- This removes all leading and trailing white spaces
trimmed_string := xpfTrimString(mystring,?,?,xpxTRIM_STRING_PREFIX_WHITE_SPACE
...
~| xpxTRIM_STRING_SUFFIX_WHITE_SPACE
...
)
...
;
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|