annotate scripts/strings/isletter.m @ 3175:096940972434

[project @ 1998-05-18 17:03:01 by jwe]
author jwe
date Mon, 18 May 1998 17:03:02 +0000
parents 6216bc89fb65
children 5e0a0b1cba43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3175
096940972434 [project @ 1998-05-18 17:03:01 by jwe]
jwe
parents: 3169
diff changeset
1 ## Copyright (C) 1998 John W. Eaton
3169
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
2 ##
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
4 ##
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
9 ##
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
14 ##
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
18 ## 02111-1307, USA.
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
19
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
20 ## usage: isletter (s)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
21 ##
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
22 ## See also: isalpha
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
23
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
24 ## Author: jwe
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
25
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
26 function retval = isletter (s)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
27
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
28 if (nargin != 1)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
29 usage ("isletter (s)");
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
30 endif
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
31
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
32 retval = isalpha (s);
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
33
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
34 endfunction