Class

Starts With

Returns true when the string `compareLeft` begins with the string `compareRight`, compared code point by code point, with no case folding and no Unicode normalization. Both operands are expressions, so the prefix can be read from another value, such as the code of a resource a value references, where `Matches` takes its pattern as data fixed at authoring time. Every string starts with the empty string. An operand that isn't a string, or holds a lone surrogate and so isn't well-formed Unicode, returns false, never an error, as for the other comparisons. Evaluation cost is linear in the length of the operands.

Subclass Of
Binary Comparison