Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:starts-with

Check whether string 1 starts with string 2


Syntax

fn:starts-with(string $string, string $startString) => boolean
fn:starts-with(string $string, string $startString, string $collation) => boolean

Top of page

Description

This function checks whether or not the value of $string starts with the value of $startString. If the value of $startString is a string of length zero, the function returns true. If the value of $string is a string of length zero, but the value of $startString is not, the function returns false. If the value of either string is the empty sequence, the function returns the empty sequence.

Top of page

Arguments

$string

string value

$startString

string value to be searched for in $string

$collation

optional valid collation string literal

Top of page

Example

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page