2 // C++ Implementation: acceptedvalues
7 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
13 #include "acceptedvalues.h"
14 #include "my_sstream.h"
19 AcceptedValues::insert(const string &s)
26 AcceptedValues::contains(const string &s) const
28 return (values.count(s) > 0);
32 AcceptedValues::toString(bool escape) const
36 for (const_iterator it = begin(); it != end(); ) {
37 buf << (escape ? "\\\"" : "\"") << *it
38 << (escape ? "\\\"" : "\"");