Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpxTrimString (VAR actualString : STRING; prefixChars : STRING; suffixChars : STRING; options : INTEGER) status : INTEGER; |
Use this This function will trim a string according to the actualString based on the given prefix/suffix and optionsgiven specification. The actualString will be overwritten by the resulting string.
Arguments
...
Insert excerpt
Type | Name | Comment |
STRING | actualString | On input: the untrimmed string. On output: the trimmed string. |
STRING | prefixChars | 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. The default value is "xpxTRIM_STRING_PREFIX_ALL_NON_PRINTABLE_CHARS ~| xpxTRIM_STRING_SUFFIX_ALL_NON_PRINTABLE_CHARS ~| xpxTRIM_STRING_PREFIX_WHITE_SPACE ~| xpxTRIM_STRING_SUFFIX_WHITE_SPACE" |
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
...
1 | Option | Comment |
2 |
|
...
| |
3 |
|
...
| |
4 |
|
...
The set of characters specified in the "suffixChars" argument will be removed from the end of the given string | |
5 |
|
...
The set of characters specified in the "prefixChars" argument will be removed from the start of the given string | |
6 |
|
...
| |
7 |
|
...
Example
...
|
Example
...
Code Block | ||
---|---|---|
| ||
<Missing Example> |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
...