Rename function as globMatch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7831 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-26 09:06:52 +00:00
parent 15d71955d9
commit fbdee86f79
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-09-26 Angus Leeming <leeming@lyx.org>
* FormFiledialog.C (regexMatch): renamed as globMatch.
2003-09-25 Angus Leeming <leeming@lyx.org>
* FormFiledialog.C (regexMatch): moved here from lstrings.[Ch] because

View File

@ -200,7 +200,7 @@ int FileDialog::Private::minh_ = 0;
namespace {
bool regexMatch(string const & a, string const & pattern)
bool globMatch(string const & a, string const & pattern)
{
// We massage the pattern a bit so that the usual
// shell pattern we all are used to will work.
@ -340,7 +340,7 @@ void FileDialog::Private::Reread()
|| fileInfo.isChar()
|| fileInfo.isBlock()
|| fileInfo.isFifo()) {
if (!regexMatch(fname, mask_))
if (!globMatch(fname, mask_))
continue;
} else if (!(isDir = fileInfo.isDir()))
continue;