time | Calls | line |
---|
| | 173 | function f = fixIRI(f,fs)
|
< 0.001 | 4 | 174 | needMultipleSlash = startsWith(f,'file:','IgnoreCase',true);
|
< 0.001 | 4 | 175 | pattern = ['^(\w{2,}:\' fs ')\' fs '*'];
|
< 0.001 | 4 | 176 | rep = ['$1\' fs];
|
< 0.001 | 4 | 177 | if ischar(f)
|
< 0.001 | 4 | 178 | if(~needMultipleSlash)
|
< 0.001 | 4 | 179 | f = regexprep(f, pattern , rep);
|
< 0.001 | 4 | 180 | end
|
| | 181 | else
|
| | 182 | f(~needMultipleSlash) = regexprep(f(~needMultipleSlash),pattern,rep);
|
< 0.001 | 4 | 183 | end
|
< 0.001 | 4 | 184 | end
|
Other subfunctions in this file are not included in this listing.