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


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