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