Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:contains

Check whether one string contains another.


Syntax

fn:contains(string $string, string? $searchString) => boolean
fn:contains(string $string, string? $searchString, string $collation) => boolean

Top of page

Description

This function checks whether the value of $string contains the value of $searchString anywhere. It returns true if it is found and false if not. There are some special cases in which this function returns the following values:

true the value of $string is a string of length zero
false the value of $searchString is a string of length zero

It is an error if either string value is an empty sequence.

Top of page

Arguments

$string

string value

$searchString

string value that is searched for in $string

$collation

optional valid collation string literal

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page