[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.) |
Date: |
Thu, 8 Mar 2018 08:08:07 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #12, bug #53277 (project octave):
@Philip: Octave has both scanf and sscanf and they are both in
libinterp/corefcn/file-io.cc. The textscan function is in the same file.
Eventually, textscan seems to be implemented in oct-stream.cc. jwe did the
work on this so I think it would be good to ask him at OctConf 2018 about
this.
I can confirm that exponent separators are also a problem, although they work
fine with sscanf.
octave:1> str = "1e2e3"
str = 1e2e3
octave:2> sscanf (str, "%de%de%d")
ans =
1
2
3
octave:3> textscan (str, "%de%de%d")
ans =
{
[1,1] = 100
[1,2] = 3
[1,3] = 0
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53277>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), (continued)
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/03
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Matthias Brennwald, 2018/03/04
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Matthias Brennwald, 2018/03/04
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/04
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/04
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Rik, 2018/03/05
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Matthias Brennwald, 2018/03/05
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/05
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/08
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Matthias Brennwald, 2018/03/08
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.),
Rik <=
- [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.), Philip Nienhuis, 2018/03/08