"startsWith" (string::startsWith)

Returns true if the string starts with s, otherwise false.

Synopsis

bool string.startsWith(string s, CaseSensitivity cs = CaseSensitive);

Parameters

Parameter Description
s String to compare.
cs

Decides if the search is case sensitive. Can be either:

  • string::CaseSensitive
  • string::CaseInsensitive

Description

Returns true if the string starts with s, otherwise false.

Assignment

String