Name
starts-with — Returns true if the first argument string starts with the second argument string, and otherwise returns false.
Synopsis
boolean
starts-with
(
|
strg string , |
prefix
string
) ; |
Description
For two given strings, this function checks if the first string starts with characters of second string. If any argument is not a string, it is converted to string using rules for string() XPATH function. Thus if the second argument has no string value, the function returns true, because it will be converted to an empty string first.
Parameters
strg
String whose first characters must be compared
prefix
String whose characters must be compared with first characters of
strg
Return Types
Boolean
Examples
Example 24.620.
starts-with('OpenLink Virtuoso', 'OpenLink')