Navigation

Operators and Keywords

Function List:

C++ API

__makeinfo__.m File Reference


Functions

endif if (!ischar(text)) error("__makeinfo__
 if (!isempty(stop)&&!isempty(bracket_start)) stop+
 if (isempty(stop)) stop
endif endfor if (strcmpi(output_type,"texinfo")) status=0
 fwrite (fid, text)
 fclose (fid)
 switch (lower(output_type)) case"plain text"cmd
otherwise error ("__makeinfo__: unsupported output type: '%s'", output_type)
unwind_protect_cleanup if (exist(name,"file")) delete(name)

Variables

 function [retval, status]
else bracket_start = start + length (SEE_ALSO)
 stop = find (text (start:end) == "\n", 1)
endif endif see_also_args = text (bracket_start+1:(stop-1))
 expanded = see_also (see_also_args)
 text = strcat (text (1:start-1), expanded, text (stop+1:end))
 retval = text
 return
 unwind_protect [fid, name, msg] = mkstemp ("octave_help_XXXXXX", true)
case html cmd
 endswitch [status, retval] = system (cmd)

Function Documentation

otherwise error ( "__makeinfo__: unsupported output type: '%s'"  ,
output_type   
)

fclose ( fid   ) 

fwrite ( fid  ,
text   
)

unwind_protect_cleanup if ( exist(name,"file")   ) 

endif endfor if ( strcmpi(output_type,"texinfo")   )  [pure virtual]

if ( isempty(stop  ) 

if ( isemptystop)&&!isempty(bracket_start  ) 

endif if ( ischartext  ) 

switch ( lower(output_type)   ) 


Variable Documentation

else bracket_start = start + length (SEE_ALSO)

case html cmd

Initial value:

 sprintf ("%s --no-headers --html --no-warn --no-validate --force %s",
                        makeinfo_program (), name)

endswitch[status, retval] = system (cmd)

function[retval, status]

Initial value:

 __makeinfo__ (text, output_type = "plain text", see_also = [])


  if (nargin == 0)
    print_usage ()

return

retval = text

stop = find (text (start:end) == "\n", 1)

endif text = strcat (text (1:start-1), expanded, text (stop+1:end))

unwind_protect[fid, name, msg] = mkstemp ("octave_help_XXXXXX", true)