System Debug Reference Manual (32650-90888)

448 Chapter10
System Debug Standard Functions
func strdel
Parameters
source
The string to which
tail
is appended.
tail
The string to append to the tail of
source
.
Examples
$nmdebug > var stuff "Cream"
$nmdebug > wl strapp("Ice ", stuff)
Ice Cream
Append the string contained in the variable stuff to the string "Ice".
$nmdebug > = strapp("Hello, ", strapp("How", " Are You?") )
"Hello, How Are You?"
Print the result of concatenating the string literals.
Limitations, Restrictions
If the resultant string is larger than the maximum supported string length (see the STRMAX
function), it is truncated.
func strdel
String delete. Returns a string with a substring deleted from the source string.
Syntax
strdel (
source position length
)
Formal Declaration
strdel:str (
source
:str
position
:u16
length
:u16)
Parameters
source
The string from which to delete the substring.
position
The index of the starting character to delete. String indices are 1-based.
(That is, indices are 1, 2, 3, ... rather than 0, 1, 2, ....)
length
The number of characters to delete. If this value is larger than the actual
number of characters in the string, the string is deleted from the starting
position to the end without an error indication.