From: Angus Leeming Date: Fri, 26 Sep 2003 09:06:52 +0000 (+0000) Subject: Rename function as globMatch. X-Git-Tag: 1.6.10~16031 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fbdee86f791ffe034c994f19a713094ef7efc91e;p=features.git Rename function as globMatch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7831 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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;