Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
34
Src/Wasabi/bfc/file/wildcharsenum.h
Normal file
34
Src/Wasabi/bfc/file/wildcharsenum.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#ifndef __WILDCHARSENUM_H
|
||||
#define __WILDCHARSENUM_H
|
||||
|
||||
#include <bfc/ptrlist.h>
|
||||
#include <bfc/string/StringW.h>
|
||||
|
||||
class find_entry {
|
||||
public:
|
||||
find_entry(const wchar_t *_path, const wchar_t *_filename) : path(_path), filename(_filename) {}
|
||||
~find_entry() {}
|
||||
StringW path;
|
||||
StringW filename;
|
||||
};
|
||||
|
||||
class WildcharsEnumerator
|
||||
{
|
||||
public:
|
||||
WildcharsEnumerator(const wchar_t *_selection);
|
||||
virtual ~WildcharsEnumerator();
|
||||
|
||||
int getNumFiles();
|
||||
const wchar_t *enumFile(int n);
|
||||
void rescan();
|
||||
|
||||
static int isWildchars(const wchar_t *filename);
|
||||
|
||||
private:
|
||||
StringW selection;
|
||||
PtrList <find_entry> finddatalist;
|
||||
StringW singfiledup;
|
||||
StringW enumFileString;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue