comparison src/utils.cc @ 5456:f315234695b1

[project @ 2005-09-19 19:02:41 by jwe]
author jwe
date Mon, 19 Sep 2005 19:02:41 +0000
parents ebe5d7d15522
children 48ce24e8247c
comparison
equal deleted inserted replaced
5455:ec44bd0917fe 5456:f315234695b1
289 \n\ 289 \n\
290 If the second optional argument @code{\"all\"} is supplied, return\n\ 290 If the second optional argument @code{\"all\"} is supplied, return\n\
291 a cell array containing the list of all files that have the same\n\ 291 a cell array containing the list of all files that have the same\n\
292 name in the path. If no files are found, return an empty cell array.\n\ 292 name in the path. If no files are found, return an empty cell array.\n\
293 @end deftypefn\n\ 293 @end deftypefn\n\
294 @seealso{file_in_path}") 294 @seealso{file_in_path, LOADPATH}")
295 { 295 {
296 octave_value retval; 296 octave_value retval;
297 297
298 int nargin = args.length (); 298 int nargin = args.length ();
299 299
342 directories in the format described for the built-in variable\n\ 342 directories in the format described for the built-in variable\n\
343 @code{LOADPATH}. If no file is found, return an empty matrix.\n\ 343 @code{LOADPATH}. If no file is found, return an empty matrix.\n\
344 For example,\n\ 344 For example,\n\
345 \n\ 345 \n\
346 @example\n\ 346 @example\n\
347 file_in_path (LOADPATH, \"nargchk.m\")\n\ 347 file_in_path (EXEC_PATH, \"sh\")\n\
348 @result{} \"@value{OCTAVEHOME}/share/octave/2.0/m/general/nargchk.m\"\n\ 348 @result{} \"/bin/sh\"\n\
349 @end example\n\ 349 @end example\n\
350 \n\ 350 \n\
351 If the second argument is a cell array of strings, search each\n\ 351 If the second argument is a cell array of strings, search each\n\
352 directory of the path for element of the cell array and return\n\ 352 directory of the path for element of the cell array and return\n\
353 the first that matches.\n\ 353 the first that matches.\n\
354 \n\ 354 \n\
355 If the third optional argument @code{\"all\"} is supplied, return\n\ 355 If the third optional argument @code{\"all\"} is supplied, return\n\
356 a cell array containing the list of all files that have the same\n\ 356 a cell array containing the list of all files that have the same\n\
357 name in the path. If no files are found, return an empty cell array.\n\ 357 name in the path. If no files are found, return an empty cell array.\n\
358 \n\
359 Note that @code{file_in_path} does not expand leading, trailing,
360 or doubled colons the way that @code{file_in_loadpath} does. See\n\
361 also @xref{LOADPATH}, for an explanation of how colon expansion\n\
362 is applied to @code{LOADPATH}.\n\
358 @seealso{file_in_loadpath}\n\ 363 @seealso{file_in_loadpath}\n\
359 @end deftypefn") 364 @end deftypefn")
360 { 365 {
361 octave_value retval; 366 octave_value retval;
362 367