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

Version 1 Next »

 xpfTrimString

xpfTrimString
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

Available options:

TRIM_STRING_PREFIX : remove the given prefixChars at the beginning of the string
TRIM_STRING_SUFFIX : remove the given suffixChars at the end of the string
TRIM_STRING_PREFIX_ALL_NON_PRINTABLE_CHARS  : Remove all non printable characters at the beginning of the string
                                                                                       Non printable characters are the character with the following ASCII values:
                                                                                      ( 0 < char <= 31) and (127 < char <= 160) 
TRIM_STRING_SUFFIX_ALL_NON_PRINTABLE_CHARS  : Remove all non printable characters at end of the string
TRIM_STRING_PREFIX_WHITE_SPACE    : Remove all spaces at the beginning of the string
TRIM_STRING_SUFFIX_WHITE_SPACE    : Remove all spaces at the end of the string

The function:
FUNCTION xpxTrimString (VAR actualString : STRING;
                        prefixChars      : STRING;
                        suffixChars      : STRING;
                        options          : INTEGER)
                        status           : INTEGER;

has the same functionality, same arguments and options, as the xpfTrimString function, except the "actualString" will be trimmed, i.e., this function will not return the trimmed string, but change the "actualString".

Hans Karsten
  • No labels