- typedef ListItems::const_iterator const_iterator;
- const_iterator begin() const
- {
- return m_items.begin();
- }
- const_iterator end() const
- {
- return m_items.end();
- }
-
- const ListItem& operator[](std::size_t i) const
- {
- return m_items[i];
- }
- const_iterator findValue(const char* value) const
- {
- for(ListItems::const_iterator i = m_items.begin(); i != m_items.end(); ++i)
- {
- if(string_equal(value, (*i).second.c_str()))
- {
- return i;
- }
- }
- return m_items.end();
- }
-
- void push_back(const char* name, const char* value)
- {
- m_items.push_back(ListItems::value_type(name, value));
- }
+ typedef ListItems::const_iterator const_iterator;
+ const_iterator begin() const {
+ return m_items.begin();
+ }
+ const_iterator end() const {
+ return m_items.end();
+ }
+
+ const ListItem& operator[]( std::size_t i ) const {
+ return m_items[i];
+ }
+ const_iterator findValue( const char* value ) const {
+ for ( ListItems::const_iterator i = m_items.begin(); i != m_items.end(); ++i )
+ {
+ if ( string_equal( value, ( *i ).second.c_str() ) ) {
+ return i;
+ }
+ }
+ return m_items.end();
+ }
+
+ void push_back( const char* name, const char* value ){
+ m_items.push_back( ListItems::value_type( name, value ) );
+ }