1 // Copyright 2009 The Archiveopteryx Developers <info@aox.org> 2 3 #ifndef STRINGLIST_H 4 #define STRINGLIST_H 5 6 #include "list.h" 7 #include "estring.h" 8 9 10 class EStringList 11 : public List< EString > 12 { 13 public: 14 EStringList(); 15 append(EString * s)16 void append( EString * s ) { List<EString>::append( s ); } 17 void append( const EString & ); 18 void append( const char * ); append(const EStringList & l)19 void append( const EStringList & l ) { List<EString>::append( l ); } 20 21 void removeDuplicates( bool = true ); 22 bool contains( const EString & ) const; 23 24 EStringList * sorted() const; 25 26 EString join( const EString & ) const; 27 static EStringList *split( char, const EString & ); 28 }; 29 30 31 #endif 32