time | Calls | line |
---|
| | 131 | function f = refinePath(f, fs)
|
0.006 | 1942 | 132 | persistent singleDotPattern multipleFileSepPattern
|
| | 133 |
|
0.001 | 1942 | 134 | if isempty(singleDotPattern)
|
| | 135 | singleDotPattern = [fs, '.', fs];
|
| | 136 | multipleFileSepPattern = [fs, fs];
|
< 0.001 | 1942 | 137 | end
|
| | 138 |
|
0.013 | 1942 | 139 | f = strrep(f, '/', fs);
|
| | 140 |
|
0.006 | 1942 | 141 | if any(contains(f, singleDotPattern))
|
| | 142 | f = replaceSingleDots(f, fs);
|
< 0.001 | 1942 | 143 | end
|
| | 144 |
|
0.002 | 1942 | 145 | if any(contains(f, multipleFileSepPattern))
|
| | 146 | f = replaceMultipleFileSeps(f, fs);
|
< 0.001 | 1942 | 147 | end
|
| | 148 |
|
0.002 | 1942 | 149 | if any(contains(f,':'))
|
| | 150 | f = fixIRI(f,fs);
|
< 0.001 | 1942 | 151 | end
|
| | 152 |
|
0.001 | 1942 | 153 | end
|
Other subfunctions in this file are not included in this listing.