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

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

[Octave-bug-tracker] [bug #36555] strfind() should work with numeric arr


From: Rik
Subject: [Octave-bug-tracker] [bug #36555] strfind() should work with numeric arrays
Date: Fri, 18 Dec 2020 18:25:41 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

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

Yeah, this is somewhat bogus.  Matlab clearly documents, and the function name
presumes, that the input should be a character array.  Yet, it seems that it
really only cares if the input is numeric.

I took a quick stab at fixing this, but it fails for floating point and
complex numbers.  If we want to fix this it probably means major surgery on
strfind.cc which doesn't seem worth the effort.

My crude stab bypassing the input validation is attached.

(file #50518)
    _______________________________________________________

Additional Item Attachment:

File name: strfind.diff                   Size:1 KB
    <https://file.savannah.gnu.org/file/strfind.diff?file_id=50518>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?36555>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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