TRF Language Model
|
Analize the path including "*" and "?" and "+" symbols. More...
#include <wb-win.h>
Public Member Functions | |
Path (const char *path=NULL) | |
~Path () | |
void | Reset (const char *path=NULL) |
reset the path More... | |
bool | GetPath (char *path) |
Get pathes. More... | |
Protected Attributes | |
string | m_input |
stroe the input string More... | |
Queue< char * > * | m_paFiles |
store all the files find in the queue More... | |
Analize the path including "*" and "?" and "+" symbols.
The detial description: for example:
if the input path is d:*.txt+d:\?.bat,
frist, we split the string to 2 paths "d:\*.txt" and "d:\?.bat".
Then we find the corresponding files, i.e. all the "txt" file in "d:\"
and all the ".bat" files whose file name is only one character ("a.bat" or "b.bat").
wb::Path::Path | ( | const char * | path = NULL | ) |
Definition at line 163 of file wb-win.cpp.
wb::Path::~Path | ( | ) |
Definition at line 167 of file wb-win.cpp.
bool wb::Path::GetPath | ( | char * | path | ) |
Get pathes.
Definition at line 189 of file wb-win.cpp.
void wb::Path::Reset | ( | const char * | path = NULL | ) |
reset the path
Definition at line 171 of file wb-win.cpp.
|
protected |