|
| From: | Philip Nienhuis |
| Subject: | [Octave-bug-tracker] [bug #52479] textscan ignores leading spaces when creating cell from string/file |
| Date: | Wed, 22 Nov 2017 17:31:17 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 |
Follow-up Comment #3, bug #52479 (project octave):
Swapping delimiters from whitespace was also done in the old .m-version of
textscan (actually in its workhorse strread.m).
FWIW:
What also might need some attention (ISTR I mentioned this earlier as well) is
that as soon as a "%s" (string) format conversion specifier occurs, whitespace
behaves a bit differently.
That was my primary motive to add the '"whitespace", ""' option/value pair in
comment #1.
This is where the default whitespace & delimiter characters collection comes
in.
All this has been implemented in strread.m, see L.409-428. Note that
textscan.m called strread.m with default (= if not overridden) whitespace set
to (IIRC) " \t\b" (note space). These days I'm unsure if space really belongs
to Matlab's textscan default whitespace collection.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52479>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |