From: Francesco Chemolli Date: Tue, 17 Dec 2013 17:28:53 +0000 (+0100) Subject: Improved CharacterSet documentation. X-Git-Tag: SQUID_3_5_0_1~456^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cc3b294cc12e457f35dae698d58ff9b00de03fe;p=thirdparty%2Fsquid.git Improved CharacterSet documentation. --- diff --git a/src/base/CharacterSet.h b/src/base/CharacterSet.h index d66a8cddd5..9b02c0cd87 100644 --- a/src/base/CharacterSet.h +++ b/src/base/CharacterSet.h @@ -9,24 +9,26 @@ class CharacterSet public: typedef std::vector vector_type; - CharacterSet(const char *label, const char * const c); + /// define a character set with the given label ("anonymous" if NULL, + /// with specified initial contents + CharacterSet(const char *label, const char * const initial); /// whether a given character exists in the set bool operator[](unsigned char c) const {return chars_[static_cast(c)] == 1;} - /// add a given char to the character set. + /// add a given character to the character set. CharacterSet & add(const unsigned char c); /// add all characters from the given CharacterSet to this one const CharacterSet &operator +=(const CharacterSet &src); - /// optional set label fdebugging (default: "anonymous") + /// optional set label for debugging (default: "anonymous") const char * name; private: /** characters present in this set. * - * \note guaranteed to be always 256 slots wide, as forced in the + * \note guaranteed to be always 256 slots big, as forced in the * constructor. This assumption is relied upon in operator[], add, * operator+= */