octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52550] textscan drops delimiter character for


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52550] textscan drops delimiter character for multi-character, cell-specified delimiter option
Date: Wed, 29 Nov 2017 12:15:15 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #5, bug #52550 (project octave):

As for compatibility, perhaps we could introduce some property (e.g.,
"MultipleCharacterDelimiter") for which if true causes the Delimiter (whether
it be a string or cell of strings) to be treated as whole words as opposed to
individual characters, i.e.,


textscan(a, '%d', 'delimiter', '123')
textscan(a, '%d', 'delimiter', {'123'})


would be treated as individual characters, whereas


textscan(a, '%d', 'delimiter', '123', 'MultipleCharacterDelimiter')
textscan(a, '%d', 'delimiter', {'123'}, 'MultipleCharacterDelimiter')


would be treated as whole words.

Or, it could be that the two can be combined something like:


textscan(a, '%d', 'delimiter', ',', 'MultipleCharacterDelimiter', '123')


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52550>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]