-
Notifications
You must be signed in to change notification settings - Fork 1
Strcount
mtbeek32 edited this page Feb 19, 2024
·
5 revisions
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
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.