|
verify
>>-verify(reference-+----------------------------------------------+-)--><
+-,--+--------+--+---------------------------+-+
+-option-+ +-,--+-------+--+---------+-+
+-start-+ +-,length-+
Returns a number that, by default, indicates whether the receiving string
is composed only of characters from
[reference]
. It returns
The
[option]
can be either
If you specify The default for
[start]
is
The default for [length] is the length of the string from [start] to the end of the string. Thus, the search proceeds to the end of the receiving string. You can override this by specifying a different [length] , which must be a non-negative whole number. If the receiving string is null, the method returns
String class - verify method
"123"~verify("1234567890") -> 0
"1Z3"~verify("1234567890") -> 2
"AB4T"~verify("1234567890") -> 1
"AB4T"~verify("1234567890","M") -> 3
"AB4T"~verify("1234567890","N") -> 1
"1P3Q4"~verify("1234567890", ,3) -> 4
"123"~verify("",N,2) -> 2
"ABCDE"~verify("", ,3) -> 3
"AB3CD5"~verify("1234567890","M",4) -> 6
"ABCDEF"~verify("ABC","N",2,3) -> 4
"ABCDEF"~verify("ADEF","M",2,3) -> 4
|