System Debug Reference Manual (32650-90888)
456 Chapter10
System Debug Standard Functions
func strrtrim
Examples
$nmdebug > var digits:str "0123456789"
$nmdebug > wl strrpt(digits, 7)
0123456789012345678901234567890123456789012345678901234567890123456789
Print out the string of digits "0 .. 9" repeated seven times.
Limitations, Restrictions
If the resultant string is larger than the maximum supported string length (see the STRMAX
function), it is truncated at the maximum length.
func strrtrim
String right trim. Deletes trailing blanks from the source string.
Syntax
strrtrim (
source
)
Formal Declaration
strrtrim:str (
source
:str)
Parameters
source
The string from which all trailing blanks are to be deleted.
Examples
$nmdebug > wl strrtrim(" A string with extra blanks. "):"qo"
" A string with extra blanks."
%cmdebug > = strltrim(strrtrim(" ABCD "))
"ABCD"
Delete both leading and trailing blanks.
Limitations, Restrictions
none