[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57867] strrep: unexpected substitution behavi
[Octave-bug-tracker] [bug #57867] strrep: unexpected substitution behavior on a char array
Thu, 20 Feb 2020 14:05:15 -0500 (EST)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36
Follow-up Comment #1, bug #57867 (project octave):
There are several Octave functions that operate on 2-D char arrays where
strings are normally expected.
Some of those functions, like 'strrep', may operate on the entire array and
return a result of the same size, maybe in the same shape or in a flattened
Some of those functions, like 'help', silently truncate the char array and
operate only on the first row as if it were a string.
s = ['abs'; 'def'];
See bug #49536 for the latter type of behavior.
Are there other functions with behavior like 'strrep', so that we can
categorize these and make broader decisions? Other 'str*' functions?
Reply to this item at:
Message sent via Savannah