The contains() function tests whether one string contains another as a substring. For example, the expression «contains('Santorini','ant') » returns true .
Argument | Data Type | Meaning |
---|---|---|
value | xs:string? | The containing string |
substring | xs:string? | The test string |
collation (optional) | xs:string | The collation to be used |
Result | xs:boolean | true if the containing string has a substring that is equal to the test string, false otherwise |