Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

FUNCTION xpfTrimString (actualString  : STRING; 
                        prefixChars   : STRING; 
                        suffixChars   : STRING; 
                        options       : INTEGER)
                        trimmedString : STRING; 
                

This function will trim a string according to the given specification.The xpfTrimString() function has a variable number of arguments, i.e., it can be invoked with minimum 1 argument and maximum 4 arguments.

Arguments


 

 TypeNameComment
STRING
actualString
The actual string to be trimmed
STRING
prefixCharsOptional 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
suffixCharsOptional 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
optionsOptional argument. Default value is INDETERMINATE (?). Specifies the suffix of each substring. This suffix will be removed in the string splitting operation.

Return Value


 

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_trimmedString'.

Options


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_PREFIX_ALL_NON_PRINTABLE_CHARS_XPX'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_SUFFIX_ALL_NON_PRINTABLE_CHARS_XPX'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_SUFFIX_XPX'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_PREFIX_XPX'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_PREFIX_WHITE_SPACE_XPX'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_TRIM_STRING_SUFFIX_WHITE_SPACE_XPX'.

 

Example


This will remove all leading and trailing blanks

trimmed_string := xpfTrimString(mystring,' ',' ',XPXTRIM_STRING_PREFIX ~| XPXTRIM_STRING_SUFFIX);   

 

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels