System Debug Reference Manual (32650-90888)
454 Chapter10
System Debug Standard Functions
func strpos
Syntax
strmax (
source
)
Formal Declaration
strmax:u32 (
source
:str)
Parameters
source
Any string literal or variable. The result of this function is a constant. All
strings have the same maximum length.
Examples
$nmdebug > wl strmax("date"):"#"
#2048
$cmdat > = strmax(""),d
#2048
Limitations, Restrictions
The maximum number of characters in a string currently is 2048.
func strpos
String position. Returns the index of the first occurrence of one string in another.
Syntax
strpos (
source searchstring
[
position
])
If
searchstring
is not found in
source
then zero (0) is returned.
Formal Declaration
strpos:u32 (
source
:str
searchstring
:str [
position
:u32=1])
Parameters
source
The string in which
searchstring
is to be found.
searchstring
The string to be found in
source
. It may be either a single- or
double-quoted string literal, or a back-quoted regular expression.
position
The character position in
source
where the search is to begin. If this
parameter is not specified, the search starts at the first character. If this