function S = insertBefore(STR, varargin)
%INSERTBEFORE Insert text before a specified position.
%   S = INSERTBEFORE(STR, POS, TEXT)
%   
%   Limitations:
%   Pattern objects are not supported.
%   
%   See also INSERTBEFORE, codistributed/STRING.
%   


%   Copyright 2016-2020 The MathWorks, Inc.

narginchk(2, inf);
% PATTERN is currently not supported
matlab.bigdata.internal.util.errorIfPatternInput('distributed', STR, varargin{:});
S = codistributed.pElementwiseUnaryOp(@insertBefore, STR, varargin{:});
