Functions | |
if (exist(cache_file,"file"))[fun | |
if (had_core_cache) new _path | |
fun (end+1:end+length(funs)) | |
help_text (end+1:end+length(hts)) | |
if (length(fn) > 2 &&strcmp(fn(1:2),"__")) continue | |
unwind_protect_cleanup | warning (warn_state) |
end_try_catch | if (search_type==2) warn_state |
unwind_protect | warning ("off") |
f (end+1:indent) | |
printf (f) | |
printf ("%s\n", desc(1:min(desc_width, ldesc))) | |
printf ("%s%s\n", indent_space, strtrim(desc(start:stop))) | |
if (!isempty(cache)) t1 | |
Variables | |
function [out_fun, out_help_text] | |
search_type = 2 | |
endif | str = lower (str) |
cache_file = doc_cache_file () | |
help_text = search_cache (str, cache_file, search_type) | |
had_core_cache = true | |
else | fun = help_text = {} |
endif | orig_path = strsplit (__pathorig__ (), pathsep ()) |
new_path = strsplit (path (), pathsep ()) | |
endif for | n |
hts = search_cache (str, cache_file, search_type) | |
else | funs_in_f = __list_functions__ (elt) |
for | m |
endif try | warn_state = warning () |
unwind_protect | warning ("off") |
first_sentence = get_first_help_sentence (fn) | |
status = 0 | |
end_unwind_protect | |
desc = strtrim (strrep (help_text {k}, "\n", " ")) | |
ldesc = length (desc) | |
for | start |
endfor endfor else | out_fun = fun |
out_help_text = help_text | |
t2 = strfind (cache (search_type, :), str) | |
cache_idx = find (! (cellfun ("isempty", t1) & cellfun ("isempty", t2))) | |
funs = cache (1, cache_idx) | |
help_texts = cache (3, cache_idx) |
f | ( | end+1:indent | ) |
fun | ( | end+1:end+ | lengthfuns | ) |
help_text | ( | end+1:end+ | lengthhts | ) |
if | ( | ! | isemptycache | ) |
end_try_catch if | ( | search_type | = =2 |
) |
if | ( | length(fn) | , | |
2 && | strcmpfn(1:2),"__" | |||
) |
if | ( | had_core_cache | ) | [new] |
if | ( | exist(cache_file,"file") | ) |
printf | ( | "%s%s\n" | , | |
indent_space | , | |||
strtrim(desc(start:stop)) | ||||
) |
printf | ( | f | ) |
unwind_protect warning | ( | "off" | ) |
unwind_protect_cleanup warning | ( | warn_state | ) |
cache_file = doc_cache_file () |
cache_idx = find (! (cellfun ("isempty", t1) & cellfun ("isempty", t2))) |
first_sentence = get_first_help_sentence (fn) |
else fun = help_text = {} |
had_core_cache = true |
help_text = search_cache (str, cache_file, search_type) |
help_texts = cache (3, cache_idx) |
hts = search_cache (str, cache_file, search_type) |
new_path = strsplit (path (), pathsep ()) |
out_help_text = help_text |
else search_type = 2 |
status = 0 |
endfunction function str = lower (str) |
t2 = strfind (cache (search_type, :), str) |
endif try warn_state = warning () |
warning | ( | "off" | ) |