Strcount
string-functions strcount
syntax
- strcount(source, key)
definition
strcount(source, key) results in a uint32 data-item with the number of occurences of the substring key in the argument source.
description
The strcount function is case sensitive.
applies to
data item source and key with string value-type
conditions
The domain-unit of both arguments must match or be void (literals or parameters can be compared to data items of any domain unit).
example
attribute<uint32> strcountA (ADomain) := strcount(A, 't');
A | strcountA |
---|---|
‘Test’ | 1 |
‘88hallo99’ | 0 |
’+)’ | 0 |
‘twee woorden’ | 1 |
’ test met spatie’ | 4 |
ADomain, nr of rows = 5