Mercurial > hg > octave-lyh
comparison src/strfns.cc @ 10840:89f4d7e294cc
Grammarcheck .cc files
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 31 Jul 2010 11:18:11 -0700 |
parents | 12884915a8e4 |
children | a4f482e66b65 |
comparison
equal
deleted
inserted
replaced
10839:65bc065bec95 | 10840:89f4d7e294cc |
---|---|
55 \n\ | 55 \n\ |
56 For numerical input, each element is converted\n\ | 56 For numerical input, each element is converted\n\ |
57 to the corresponding ASCII character. A range error results if an input\n\ | 57 to the corresponding ASCII character. A range error results if an input\n\ |
58 is outside the ASCII range (0-255).\n\ | 58 is outside the ASCII range (0-255).\n\ |
59 \n\ | 59 \n\ |
60 For cell arrays, each element is concatenated separately. Cell arrays converted through\n\ | 60 For cell arrays, each element is concatenated separately. Cell arrays converted\n\ |
61 through\n\ | |
61 @code{char} can mostly be converted back with @code{cellstr}.\n\ | 62 @code{char} can mostly be converted back with @code{cellstr}.\n\ |
62 For example,\n\ | 63 For example,\n\ |
63 \n\ | 64 \n\ |
64 @example\n\ | 65 @example\n\ |
65 @group\n\ | 66 @group\n\ |
178 \n\ | 179 \n\ |
179 For numerical input, each element is converted\n\ | 180 For numerical input, each element is converted\n\ |
180 to the corresponding ASCII character. A range error results if an input\n\ | 181 to the corresponding ASCII character. A range error results if an input\n\ |
181 is outside the ASCII range (0-255).\n\ | 182 is outside the ASCII range (0-255).\n\ |
182 \n\ | 183 \n\ |
183 For cell arrays, each element is concatenated separately. Cell arrays converted through\n\ | 184 For cell arrays, each element is concatenated separately. Cell arrays converted\n\ |
185 through\n\ | |
184 @code{strvcat} can mostly be converted back with @code{cellstr}.\n\ | 186 @code{strvcat} can mostly be converted back with @code{cellstr}.\n\ |
185 For example,\n\ | 187 For example,\n\ |
186 \n\ | 188 \n\ |
187 @example\n\ | 189 @example\n\ |
188 @group\n\ | 190 @group\n\ |
637 } | 639 } |
638 | 640 |
639 DEFUN (strncmp, args, , | 641 DEFUN (strncmp, args, , |
640 "-*- texinfo -*-\n\ | 642 "-*- texinfo -*-\n\ |
641 @deftypefn {Built-in Function} {} strncmp (@var{s1}, @var{s2}, @var{n})\n\ | 643 @deftypefn {Built-in Function} {} strncmp (@var{s1}, @var{s2}, @var{n})\n\ |
642 Return 1 if the first @var{n} characters of strings @var{s1} and @var{s2} are the same,\n\ | 644 Return 1 if the first @var{n} characters of strings @var{s1} and @var{s2} are\n\ |
643 and 0 otherwise.\n\ | 645 the same, and 0 otherwise.\n\ |
644 \n\ | 646 \n\ |
645 @example\n\ | 647 @example\n\ |
646 @group\n\ | 648 @group\n\ |
647 strncmp (\"abce\", \"abcd\", 3)\n\ | 649 strncmp (\"abce\", \"abcd\", 3)\n\ |
648 @result{} 1\n\ | 650 @result{} 1\n\ |