mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
15d71955d9
commit
fbdee86f79
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user