function replacePathString(h, oldStr, newStr)
%REPLACEPATHSTRING - undocumented internal function

%   Copyright 2008-2019 The MathWorks, Inc.

h.Src.replacePathString(oldStr,newStr);
h.Inc.replacePathString(oldStr,newStr);
h.Other.replacePathString(oldStr,newStr);

% for each of the link objects, update the filesep on all paths
for i=1:length(h.LinkObj)
    h.LinkObj(i).replacePathString(oldStr,newStr);
end

% for each of the model refs, update the filesep on all paths
for i=1:length(h.ModelRefs)
    h.ModelRefs(i).replacePathString(oldStr,newStr);
end
