Mercurial > hg > octave-avbm
changeset 13490:90d4d110721b
Single qouted strings are recognized.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 27 Apr 2011 18:10:08 +0200 |
parents | cb80550ebaed |
children | d055c849b85c |
files | gui//src/OctaveLink.cpp |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//src/OctaveLink.cpp +++ b/gui//src/OctaveLink.cpp @@ -42,8 +42,12 @@ } QString OctaveLink::octaveValueAsQString(OctaveValue octaveValue) { - // Convert string. - if(octaveValue.is_string()) { + // Convert single qouted string. + if(octaveValue.is_sq_string()) { + return QString("\'%1\'").arg(octaveValue.string_value().c_str()); + + // Convert double qouted string. + } else if(octaveValue.is_dq_string()) { return QString("\"%1\"").arg(octaveValue.string_value().c_str()); // Convert real scalar.