Strcount - ObjectVision/GeoDMS GitHub Wiki
String functions strcount
- strcount(source, key)
strcount(source, key) results in a uint32 data item with the number of occurences of the substring key in the argument source.
The strcount function is case sensitive.
data item source and key with string value type
The domain unit of both arguments must match or be void (literals or parameters can be compared to data items of any domain unit).
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