function tf = startsWith(s, varargin)
%STARTSWITH True if string starts with pattern
%   
%   TF = STARTSWITH(S,PATTERN)
%   TF = STARTSWITH(S,PATTERN,'IgnoreCase',IGNORE)
%   
%   Limitations:
%   Pattern objects are not supported.
%   
%   See also STARTSWITH.
%   


%   Copyright 2016-2020 The MathWorks, Inc.

narginchk(2, 4);
% PATTERN is currently not supported
matlab.bigdata.internal.util.errorIfPatternInput('distributed', s, varargin{:});
tf = codistributed.pElementwiseUnaryOp(@startsWith, s, varargin{:});
