[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice |
Date: |
Sat, 30 Jul 2022 09:06:15 -0400 (EDT) |
Follow-up Comment #2, bug #62802 (project octave):
If I understand the implementation correctly, the string_vector must be sorted
(or the duplicate items must be next to each other) for
`string_vector::uniq()` to actually remove all duplicate strings.
https://hg.savannah.gnu.org/hgweb/octave/file/e37e46ef0505/liboctave/util/str-vec.cc#l88
string_vector&
string_vector::uniq (void)
{
octave_idx_type len = numel ();
if (len > 0)
{
octave_idx_type k = 0;
for (octave_idx_type i = 1; i < len; i++)
if (elem (i) != elem (k))
if (++k != i)
elem (k) = elem (i);
if (len != ++k)
resize (k);
}
return *this;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62802>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Colin Macdonald, 2022/07/24
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, anonymous, 2022/07/30
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice,
Markus Mützel <=
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Colin Macdonald, 2022/07/30
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Colin Macdonald, 2022/07/30
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Michael Bagherpour, 2022/07/30
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Colin Macdonald, 2022/07/31
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, Michael Bagherpour, 2022/07/31
- [Octave-bug-tracker] [bug #62802] "methods classdef" shows some methods twice, John W. Eaton, 2022/07/31