[Top][All Lists]

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

[Octave-bug-tracker] [bug #52647] missing function: erase (introduced Ma

From: Sahil Yadav
Subject: [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b)
Date: Tue, 26 Dec 2017 06:09:01 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Follow-up Comment #19, bug #52647 (project octave):

If somehow, we are not able to address the case highlighted by Doug, we can
switch to this version (due thanks to Andy and Doug) of ours which is slightly
more faster than this <https://savannah.gnu.org/bugs/?52647#comment11>

But there's a problem with this. Test cases on lines 173,175, the erase
function returns sq_string of size 0x0 and we expect it to be null_sq_string
('') . Also, one of the test cases written by Rik is wrong according to me 

%!assert (erase ("Hello World!", {"o"; "World"; " "}), "Hell!")  

The expected string should be "HellWrld!" instead.
All other considerations pointed by Rik in coding style have been included in
this code (using STR and MATCH instead of STR1 and STR2 resp.)    

(file #42732)

Additional Item Attachment:

File name: erase.m                        Size:5 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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