Navigation

Operators and Keywords

Function List:

C++ API

lookfor.m File Reference


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)

Function Documentation

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 ( "%s\n"  ,
desc(1:min(desc_width, ldesc))   
)

printf (  ) 

unwind_protect warning ( "off"   ) 

unwind_protect_cleanup warning ( warn_state   ) 


Variable Documentation

cache_file = doc_cache_file ()

cache_idx = find (! (cellfun ("isempty", t1) & cellfun ("isempty", t2)))

desc = strtrim (strrep (help_text {k}, "\n", " "))

first_sentence = get_first_help_sentence (fn)

else fun = help_text = {}

Initial value:

 lookfor (str, extra)
  if (strcmpi (str, "-all"))




    str = extra

else funs_in_f = __list_functions__ (elt)

help_text = search_cache (str, cache_file, search_type)

hts = search_cache (str, cache_file, search_type)

ldesc = length (desc)

for m

Initial value:

Initial value:

 1:numel (new_path)
    elt = new_path{n}

new_path = strsplit (path (), pathsep ())

endif orig_path = strsplit (__pathorig__ (), pathsep ())

out_help_text = help_text

Initial value:

 desc_width+1:desc_width:ldesc
        stop = min (start + desc_width, ldesc)

status = 0

endfunction function str = lower (str)

t2 = strfind (cache (search_type, :), str)

endif try warn_state = warning ()

warning ( "off"   )