[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56927] textscan format '%q' does not produce
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56927] textscan format '%q' does not produce Matlab-compatible results for corner case where pattern fails |
Date: |
Fri, 20 Sep 2019 14:58:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<https://savannah.gnu.org/bugs/?56927>
Summary: textscan format '%q' does not produce
Matlab-compatible results for corner case where pattern fails
Project: GNU Octave
Submitted by: rik5
Submitted on: Fri 20 Sep 2019 11:58:40 AM PDT
Category: Octave Function
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Sample code to reporduce
textscan ('"a,b","c"trailing', '%q', 'delimiter', ',')
ans =
{
[1,1] =
{
[1,1] = a,b
[2,1] = c
[3,1] = trailing
}
}
In Matlab, there are only two outputs, not three, and the second output is
"ctrailing". In other words, the section of text not matching the pattern,
but occurring before a delimiter, is appended to the last format match.
This is an obscure corner case and I am merely noting it, rather than
suggesting it get fixed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56927>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56927] textscan format '%q' does not produce Matlab-compatible results for corner case where pattern fails,
Rik <=