[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8783] C++ implementation of textscan
From: |
Philip Nienhuis |
Subject: |
[Octave-patch-tracker] [patch #8783] C++ implementation of textscan |
Date: |
Sun, 13 Mar 2016 21:57:27 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 |
Follow-up Comment #72, patch #8783 (project octave):
Hi Lachlan:
Never mind comment #71, ytextscan has no FAILs on Windows. Sorry for the
noise.
I've been amending (weeding) strread to have (y)textscan() as a backend. To be
consistent :-) I've provisionally renamed my dev strread to "ystrread.m"
(attached). That is still a work in progress, as you'll understand.
The tests are still in place with "strread" replaced by "ystrread" to find out
how far ytextscan can serve as backend for (y)strread.
I ran into the issue that ytextscan as it stands (files 36288 and 36566) still
doesn't properly seem to process uneven column lengths:
>> [a, b] = strread ("10 a 20 b\n 30 c 40", "%d %s", 4);
## Note strread.m !!!
>> b
b =
{
[1,1] = a
[2,1] = b
[3,1] = c
}
>> [a, b] = ystrread ("10 a 20 b\n 30 c 40", "%d %s", 4);
#### with ytextscan as backend
>> b
b =
{
[1,1] = a
[2,1] = b
[3,1] = c
[4,1] =
}
>> C = ytextscan ("10 a 20 b\n 30 c 40", "%d %s", 4);
>> C{2}
ans =
{
[1,1] = a
[2,1] = b
[3,1] = c
[4,1] =
}
>>
(Note the lack of trailing EOL in the text string - see comment 9. 10 and
46.)
(file #36626)
_______________________________________________________
Additional Item Attachment:
File name: ystrread.m Size:12 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8783>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Lachlan Andrew, 2016/03/04
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Lachlan Andrew, 2016/03/05
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Ben Abbott, 2016/03/05
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Lachlan Andrew, 2016/03/07
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Ben Abbott, 2016/03/07
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/07
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/07
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Ben Abbott, 2016/03/07
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/10
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan,
Philip Nienhuis <=
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Ben Abbott, 2016/03/13
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, John W. Eaton, 2016/03/13
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Lachlan Andrew, 2016/03/13
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/14
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/14
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Ben Abbott, 2016/03/14
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Lachlan Andrew, 2016/03/15
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/15
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, John W. Eaton, 2016/03/15
- [Octave-patch-tracker] [patch #8783] C++ implementation of textscan, Philip Nienhuis, 2016/03/15