Code Block |
---|
language | cpp |
---|
theme | Confluence |
---|
|
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 |
---|
| US:_a_actualString |
---|
| US:_a_actualString |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_a_prefixChars |
---|
| US:_a_prefixChars |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_a_suffixChars |
---|
| US:_a_suffixChars |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_a_options |
---|
| US:_a_options |
---|
nopanel | true |
---|
|
Return Value
...
Insert excerpt |
---|
| US:_r_trimmedString |
---|
| US:_r_trimmedString |
---|
nopanel | true |
---|
|
Options
...
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_PREFIX_ALL_NON_PRINTABLE_CHARS |
---|
| US:_o_XPX_TRIM_STRING_PREFIX_ALL_NON_PRINTABLE_CHARS |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX_ALL_NON_PRINTABLE_CHARS |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX_ALL_NON_PRINTABLE_CHARS |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_PREFIX |
---|
| US:_o_XPX_TRIM_STRING_PREFIX |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_PREFIX_WHITE_SPACE |
---|
| US:_o_XPX_TRIM_STRING_PREFIX_WHITE_SPACE |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX_WHITE_SPACE |
---|
| US:_o_XPX_TRIM_STRING_SUFFIX_WHITE_SPACE |
---|
nopanel | true |
---|
|
Example
...
<example missing>
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
showSpace | false |
---|
cql | label = "string" and parent = "5636522" |
---|
|
xpfTrimString
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
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 |