25 #ifndef COMMON_FILELIST_H 26 #define COMMON_FILELIST_H 57 void sort(
bool caseInsensitive);
148 #endif // COMMON_FILELIST_H bool addSubDirectories(const UString &directory)
Add subdirectories of a directory to the list.
FileList & operator+=(const FileList &list)
A class holding an UTF-8 string.
std::list< UString >::const_iterator const_iterator
std::list< UString > Files
UString findFirst(const UString &str, bool caseInsensitive) const
Find the first file ending with the given string.
FileList & operator=(const FileList &list)
size_t size() const
Return the number of files in the list.
void relativize(const Common::UString &basePath)
Express all files in this archive as relative to the given base path.
bool getSubList(const UString &str, bool caseInsensitive, FileList &subList) const
Add files ending with the given string into another FileList.
UString findFirstGlob(const UString &glob, bool caseInsensitive) const
Find the first file matching the given regex.
bool empty() const
Is the list empty?
const_iterator begin() const
Return a const_iterator pointing to the beginning of the list.
bool addDirectory(const UString &directory, int recurseDepth=0)
Add a directory to the list.
void clear()
Clear the list.
void sort(bool caseInsensitive)
Sort this list alphabetically.
bool containsGlob(const UString &glob, bool caseInsensitive) const
Does the list contain at least one file matching the given regex?
bool getSubListGlob(const UString &glob, bool caseInsensitive, FileList &subList) const
Add files matching the given regex into another FileList.
const_iterator end() const
Return a const_iterator pointing past the end of the list.
bool contains(const UString &str, bool caseInsensitive) const
Does the list contain at least one file ending with the given string?