Functions | |
endif | if (isempty(p)) s |
else | if (isscalar(sep)) idx |
endif | if (isempty(idx)) sizes |
endif | p (idx) |
if (strip_empty) sizes | |
endif endfunction | !assert (all(strcmp(strsplit("road to hell"," "),{"road","to","hell"})))%!assert(all(strcmp(strsplit("road to^hell" |
Variables | |
function | s |
else | idx = strchr (p, sep) |
else | sizes = [idx(1)-1, diff(idx)-1, numel(p)-idx(end)] |
if | ( | strip_empty | ) |
endif if | ( | isempty(idx) | ) |
endif if | ( | isempty(p) | ) |
endif p | ( | idx | ) |
endif s |