fullfile>refinePath (121 calls, 0.000 sec)
Generated 04-Aug-2014 13:05:13 using cpu time.
subfunction in file /share/apps/matlabr2014a/toolbox/matlab/iofun/fullfile.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
fullfile | function | 121 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
93 | end | 121 | 0 s | 0% | ![]() |
90 | if ~isempty(strfind(f, doubleD... | 121 | 0 s | 0% | ![]() |
89 | doubleDotPattern = [fs, '..', ... | 121 | 0 s | 0% | ![]() |
86 | if ~isempty(strfind(f, multipl... | 121 | 0 s | 0% | ![]() |
85 | multipleFileSepPattern = [fs, ... | 121 | 0 s | 0% | ![]() |
All other lines | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
filesep | function | 121 | 0 s | 0% | ![]() |
Self time (built-ins, overhead, etc.) | 0 s | 0% | ![]() | ||
Totals | 0 s | 0% |
Total lines in function | 14 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 13 |
Code lines that did run | 9 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 69.23 % |
time | calls | line | |
---|---|---|---|
80 | function f = refinePath(f) | ||
121 | 81 | fs = filesep; | |
121 | 82 | f = strrep(f, '/', fs); | |
121 | 83 | singleDotPattern = [fs, '.', fs]; | |
121 | 84 | f = strrep(f, singleDotPattern, fs); | |
121 | 85 | multipleFileSepPattern = [fs, fs]; | |
121 | 86 | if ~isempty(strfind(f, multipleFileSepPattern)) | |
87 | f = replaceMultipleFileSeps(f); | ||
88 | end | ||
121 | 89 | doubleDotPattern = [fs, '..', fs]; | |
121 | 90 | if ~isempty(strfind(f, doubleDotPattern)) | |
91 | f = replaceDoubleDots(f); | ||
92 | end | ||
121 | 93 | end |
Other subfunctions in this file are not included in this listing.