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

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

[Octave-bug-tracker] [bug #33068] Radio property values are not case ins


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #33068] Radio property values are not case insensitive
Date: Thu, 14 Apr 2011 05:51:04 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110107 Iceweasel/3.5.16 (like Firefox/3.5.16)

Follow-up Comment #3, bug #33068 (project octave):

The problem seems to be that radio_values::validate calls
radio_values::contains and that calls possible_vals.find.  The data member
possible_vals is a std::set<caseless_str> object, but the find fails because
there is no specialized operator to replace the std::less function for
comparison in the set find function.

I'm not sure what the proper way is to write the comparison function for a
caseless_str object.

Note that we don't want to just convert all these strings to lower case when
comparing.  The fix needs to be in caseless_str, adding a comparison function
that will work with STL functions.  Otherwise, what is the point of having a
caseless_str object?  We would always have to remember that to compare, we
need to downcase/upcase the strings we are comparing.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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