From fbdee86f791ffe034c994f19a713094ef7efc91e Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 26 Sep 2003 09:06:52 +0000 Subject: [PATCH] Rename function as globMatch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7831 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/FormFiledialog.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 0a7296217f..77a4a64c12 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2003-09-26 Angus Leeming + + * FormFiledialog.C (regexMatch): renamed as globMatch. + 2003-09-25 Angus Leeming * FormFiledialog.C (regexMatch): moved here from lstrings.[Ch] because diff --git a/src/frontends/xforms/FormFiledialog.C b/src/frontends/xforms/FormFiledialog.C index dbacd3d329..70dc887768 100644 --- a/src/frontends/xforms/FormFiledialog.C +++ b/src/frontends/xforms/FormFiledialog.C @@ -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; -- 2.39.5