Mercurial > hg > octave-lyh
annotate scripts/miscellaneous/namelengthmax.m @ 9051:1bf0ce0930be
Grammar check TexInfo in all .m files
Cleanup documentation sources to follow a few consistent rules.
Spellcheck was NOT done. (but will be in another changeset)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 27 Mar 2009 22:31:03 -0700 |
parents | 4cb9f994dcec |
children | f0c3d3fc4903 |
rev | line source |
---|---|
7628
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
1 ## Copyright (C) 2008 David Bateman |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
2 ## |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
3 ## This file is part of Octave. |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
4 ## |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
5 ## Octave is free software; you can redistribute it and/or modify it |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
6 ## under the terms of the GNU General Public License as published by |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
8 ## your option) any later version. |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
9 ## |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
10 ## Octave is distributed in the hope that it will be useful, but |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
13 ## General Public License for more details. |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
14 ## |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
15 ## You should have received a copy of the GNU General Public License |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
16 ## along with Octave; see the file COPYING. If not, see |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
17 ## <http://www.gnu.org/licenses/>. |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
18 |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
19 ## -*- texinfo -*- |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
20 ## @deftypefn {Function File} {} namelengthmax () |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
9037
diff
changeset
|
21 ## Returns the @sc{matlab} compatible maximum variable name length. Octave is |
7628
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
22 ## capable of storing strings up to |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
23 ## @iftex |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
24 ## @tex |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
25 ## $2^{31} - 1$ |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
26 ## @end tex |
7989
23c248d415b5
Various doc fixes. Readd cellidx
David Bateman <dbateman@free.fr>
parents:
7628
diff
changeset
|
27 ## @end iftex |
7628
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
28 ## @ifnottex |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
29 ## @code{2 ^ 31 - 1} |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
30 ## @end ifnottex |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
9037
diff
changeset
|
31 ## in length. However for @sc{matlab} compatibility all variable, function |
7628
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
32 ## and structure field names should be shorter than the length supplied by |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
9037
diff
changeset
|
33 ## @code{namelengthmax}. In particular variables stored to a @sc{matlab} file |
7628
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
34 ## format will have their names truncated to this length. |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
35 ## @end deftypefn |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
36 |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
37 function n = namelengthmax () |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
38 n = 63; |
acca752a3b96
Add the namelengthmax function
David Bateman <dbateman@free.fr>
parents:
diff
changeset
|
39 endfunction |