starts-with
Returns Boolean true if the string supplied as argument starts with the sub-string supplied as argument; false otherwise.

Languages
Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.
Parameters
Name | Description |
---|---|
string | The input string. |
substr | The sub-string to check for. |
Example
If the input string is category and substr is cat, the function returns true.