function tf = contains(s, varargin)
%CONTAINS True if pattern is found in string
%   
%   TF = CONTAINS(S,PATTERN)
%   TF = CONTAINS(S,PATTERN,'IgnoreCase',IGNORE)
%   
%   Limitations:
%   Pattern objects are not supported.
%   
%   See also CONTAINS.
%   


%   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(@contains, s, varargin{:});
