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

%   Copyright 2008-2021 The MathWorks, Inc.

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


% For each link object (including ModelRefs), update the filesep on all paths
for i=1:length(h.LinkablesDirect)
    h.LinkablesDirect(i).replacePathString(oldStr,newStr);
end
