annotate scripts/legacy/isstr.m @ 27919:1891570abac8

update Octave Project Developers copyright for the new year In files that have the "Octave Project Developers" copyright notice, update for 2020.
author John W. Eaton <jwe@octave.org>
date Mon, 06 Jan 2020 22:29:51 -0500
parents b442ec6dda5c
children bd51beb6205e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27919
1891570abac8 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27918
diff changeset
1 ## Copyright (C) 2003-2020 The Octave Project Developers
27918
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 27898
diff changeset
2 ##
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 27898
diff changeset
3 ## See the file COPYRIGHT.md in the top-level directory of this distribution
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 27898
diff changeset
4 ## or <https://octave.org/COPYRIGHT.html/>.
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 27898
diff changeset
5 ##
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
6 ##
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
7 ## This file is part of Octave.
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
8 ##
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
9 ## Octave is free software: you can redistribute it and/or modify it
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
10 ## under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
11 ## the Free Software Foundation, either version 3 of the License, or
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
12 ## (at your option) any later version.
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
13 ##
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
14 ## Octave is distributed in the hope that it will be useful, but
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
17 ## GNU General Public License for more details.
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
18 ##
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
19 ## You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
20 ## along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
21 ## <https://www.gnu.org/licenses/>.
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
22
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
23 ## -*- texinfo -*-
25726
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
24 ## @deftypefn {} {} isstr (@var{x})
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
25 ## This function is obsolete. Use @code{ischar} instead.
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
26 ## @seealso{ischar}
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
27 ## @end deftypefn
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
28
25726
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
29 ## At one time, Matlab docs stated that this function is obsolete and would be
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
30 ## removed in some future version. Now users are told that it should be
a0923a7878e3 Update legacy function docstrings.
Rik <rik@octave.org>
parents: 25718
diff changeset
31 ## avoided, but there is no mention of possible future removal.
7693
8e5371d47da6 note version when functions were deprecated
John W. Eaton <jwe@octave.org>
parents: 7017
diff changeset
32
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
33 function retval = isstr (varargin)
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
34
7696
0a362fa8f3c8 Add warning to rest of deprecated functions
David Bateman <dbateman@free.fr>
parents: 7693
diff changeset
35 persistent warned = false;
0a362fa8f3c8 Add warning to rest of deprecated functions
David Bateman <dbateman@free.fr>
parents: 7693
diff changeset
36 if (! warned)
0a362fa8f3c8 Add warning to rest of deprecated functions
David Bateman <dbateman@free.fr>
parents: 7693
diff changeset
37 warned = true;
25718
a3448e97ccc8 new scripts/legacy directory for Matlab functions that refuse to die
John W. Eaton <jwe@octave.org>
parents: 25054
diff changeset
38 warning ("Octave:legacy-function",
a3448e97ccc8 new scripts/legacy directory for Matlab functions that refuse to die
John W. Eaton <jwe@octave.org>
parents: 25054
diff changeset
39 "isstr is obsolete; please use ischar instead");
7696
0a362fa8f3c8 Add warning to rest of deprecated functions
David Bateman <dbateman@free.fr>
parents: 7693
diff changeset
40 endif
0a362fa8f3c8 Add warning to rest of deprecated functions
David Bateman <dbateman@free.fr>
parents: 7693
diff changeset
41
4535
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
42 retval = ischar (varargin{:});
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
43
a5f23212a3d8 [project @ 2003-10-16 02:39:15 by jwe]
jwe
parents:
diff changeset
44 endfunction