annotate scripts/strings/isletter.m @ 5642:2618a0750ae6

[project @ 2006-03-06 21:26:48 by jwe]
author jwe
date Mon, 06 Mar 2006 21:26:54 +0000
parents 4c8a2e4e0717
children 34f96dd5441b
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
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5053
diff changeset
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 5053
diff changeset
18 ## 02110-1301, USA.
3169
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
19
3446
5ee5afb3981a [project @ 2000-01-17 09:42:43 by jwe]
jwe
parents: 3426
diff changeset
20 ## -*- texinfo -*-
3501
8b21bcbc1080 [project @ 2000-01-31 06:43:15 by jwe]
jwe
parents: 3500
diff changeset
21 ## @deftypefn {Function File} {} isletter (@var{s})
3426
f8dde1807dee [project @ 2000-01-13 08:40:00 by jwe]
jwe
parents: 3407
diff changeset
22 ## Returns true if @var{s} is a letter false otherwise.
5642
2618a0750ae6 [project @ 2006-03-06 21:26:48 by jwe]
jwe
parents: 5307
diff changeset
23 ## @seealso{isalpha}
3407
5e0a0b1cba43 [project @ 2000-01-06 03:13:55 by jwe]
jwe
parents: 3175
diff changeset
24 ## @end deftypefn
3169
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 ## Author: jwe
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 function retval = isletter (s)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
29
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
30 if (nargin != 1)
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
31 usage ("isletter (s)");
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
32 endif
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 retval = isalpha (s);
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
35
6216bc89fb65 [project @ 1998-04-21 03:14:49 by jwe]
jwe
parents:
diff changeset
36 endfunction