Mercurial > octave-nkf
changeset 5281:f3266e7dbb99
[project @ 2005-04-14 19:35:20 by jwe]
author | jwe |
---|---|
date | Thu, 14 Apr 2005 19:35:20 +0000 |
parents | 25c12c80ccc3 |
children | 5bdc3f24cd5f |
files | src/ChangeLog src/strfns.cc |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Apr 14 19:19:46 2005 +0000 +++ b/src/ChangeLog Thu Apr 14 19:35:20 2005 +0000 @@ -1,5 +1,7 @@ 2005-04-14 John W. Eaton <jwe@octave.org> + * strfns.cc (Fchar): If arg is a dq string, return a dq string. + * pt-mat.cc (Vwarn_string_concat): New static variable. (symbols_of_pt_mat): DEFVAR it. (warn_string_concat): New function.
--- a/src/strfns.cc Thu Apr 14 19:19:46 2005 +0000 +++ b/src/strfns.cc Thu Apr 14 19:35:20 2005 +0000 @@ -68,7 +68,8 @@ int nargin = args.length (); if (nargin == 1) - retval = args(0).convert_to_str (true, true, '\''); + retval = args(0).convert_to_str (true, true, + args(0).is_dq_string () ? '"' : '\''); else if (nargin > 1) { int n_elts = 0;