]> git.lyx.org Git - features.git/commitdiff
Rename function as globMatch.
authorAngus Leeming <leeming@lyx.org>
Fri, 26 Sep 2003 09:06:52 +0000 (09:06 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 26 Sep 2003 09:06:52 +0000 (09:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7831 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormFiledialog.C

index 0a7296217fd83dc4a7b50c1b55cb4ecc0d4fa573..77a4a64c1278d2156e5c0e0f36a325e3187d469c 100644 (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
index dbacd3d32939e85fb5dda0ce38e2b00650e4cd1b..70dc887768899bd33e33f169bf0a5f67ca2eaf9c 100644 (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;