Mercurial > octave-nkf
comparison src/strfns.cc @ 3361:4f40efa995c1
[project @ 1999-11-19 21:19:37 by jwe]
author | jwe |
---|---|
date | Fri, 19 Nov 1999 21:19:44 +0000 |
parents | 38de16594cb4 |
children | 9db3ff0b6913 |
comparison
equal
deleted
inserted
replaced
3360:48bd8127e19b | 3361:4f40efa995c1 |
---|---|
34 #include "ov.h" | 34 #include "ov.h" |
35 #include "oct-obj.h" | 35 #include "oct-obj.h" |
36 #include "utils.h" | 36 #include "utils.h" |
37 | 37 |
38 DEFUN (isstr, args, , | 38 DEFUN (isstr, args, , |
39 "isstr (X): return 1 if X is a string, 0 otherwise") | 39 "-*- texinfo -*-\n\ |
40 @deftypefn {Built-in Function} {} isstr (@var{a})\n\ | |
41 Return 1 if @var{a} is a string. Otherwise, return 0.\n\ | |
42 @end deftypefn") | |
40 { | 43 { |
41 octave_value_list retval; | 44 octave_value_list retval; |
42 | 45 |
43 int nargin = args.length (); | 46 int nargin = args.length (); |
44 | 47 |
49 | 52 |
50 return retval; | 53 return retval; |
51 } | 54 } |
52 | 55 |
53 DEFUN (setstr, args, , | 56 DEFUN (setstr, args, , |
54 "setstr (V): convert a vector to a string") | 57 "-*- texinfo -*-\n\ |
58 @deftypefn {Built-in Function} {} setstr (@var{x})\n\ | |
59 Convert a matrix to a string. Each element of the matrix is converted\n\ | |
60 to the corresponding ASCII \n\ | |
61 character. For example,\n\ | |
62 \n\ | |
63 @example\n\ | |
64 @group\n\ | |
65 setstr ([97, 98, 99])\n\ | |
66 @result{} "abc"\n\ | |
67 @end group\n\ | |
68 @end example\n\ | |
69 @end deftypefn") | |
55 { | 70 { |
56 octave_value_list retval; | 71 octave_value_list retval; |
57 | 72 |
58 int nargin = args.length (); | 73 int nargin = args.length (); |
59 | 74 |