Mercurial > octave
annotate liboctave/util/glob-match.cc @ 33658:b1d6e40ac737 stable tip
NEWS.9.md: Fix typo and minor formatting changes.
* etc/NEWS.9.md: Fix typo. Adjust whitespace. Use markdown syntax for code
snippets.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 05 Jun 2024 11:27:35 +0200 |
parents | 2e484f9f1f18 |
children | d26bc20bac10 |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
32632
2e484f9f1f18
maint: update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
32596
diff
changeset
|
3 // Copyright (C) 1996-2024 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
2924 | 25 |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
26 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21202
diff
changeset
|
27 # include "config.h" |
2924 | 28 #endif |
29 | |
2926 | 30 #include "glob-match.h" |
10148 | 31 #include "oct-glob.h" |
21929
7ab7cd327257
hide fnmatch.h and glob.h headers
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
32 #include "glob-wrappers.h" |
10148 | 33 |
34 bool | |
35 glob_match::match (const std::string& str) const | |
36 { | |
27379
3db033e86376
use m_ prefix for data members in most liboctave/util classes
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
37 return octave::sys::fnmatch (m_pat, str, m_fnmatch_flags); |
10148 | 38 } |
39 | |
40 string_vector | |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
41 glob_match::glob () const |
10148 | 42 { |
27379
3db033e86376
use m_ prefix for data members in most liboctave/util classes
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
43 return octave::sys::glob (m_pat); |
10148 | 44 } |
2924 | 45 |
10138
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
46 int |
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
47 glob_match::opts_to_fnmatch_flags (unsigned int xopts) const |
2924 | 48 { |
10138
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
49 int retval = 0; |
2924 | 50 |
10138
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
51 if (xopts & pathname) |
21929
7ab7cd327257
hide fnmatch.h and glob.h headers
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
52 retval |= octave_fnm_pathname_wrapper (); |
2924 | 53 |
10138
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
54 if (xopts & noescape) |
21929
7ab7cd327257
hide fnmatch.h and glob.h headers
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
55 retval |= octave_fnm_noescape_wrapper (); |
2924 | 56 |
10138
805a83ecd3da
avoid conflict between glob.h definition of glob and glob_match::glob function
John W. Eaton <jwe@octave.org>
parents:
9994
diff
changeset
|
57 if (xopts & period) |
21929
7ab7cd327257
hide fnmatch.h and glob.h headers
John W. Eaton <jwe@octave.org>
parents:
21726
diff
changeset
|
58 retval |= octave_fnm_period_wrapper (); |
2924 | 59 |
60 return retval; | |
61 } | |
32572
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
62 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
63 symbol_match::symbol_match (const std::string& pattern) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
64 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
65 m_pat = pattern; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
66 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
67 #if defined (OCTAVE_USE_WINDOWS_API) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
68 m_glob = nullptr; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
69 #else |
32576
606ac462fa34
Fix syntax error in e424a55bc9fb (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32572
diff
changeset
|
70 m_glob = std::unique_ptr<glob_match> {new glob_match {pattern}}; |
32572
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
71 #endif |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
72 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
73 |
32596
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
74 symbol_match::symbol_match (const symbol_match& in) |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
75 { |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
76 m_pat = in.m_pat; |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
77 |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
78 #if defined (OCTAVE_USE_WINDOWS_API) |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
79 m_glob = nullptr; |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
80 #else |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
81 m_glob = std::unique_ptr<glob_match> {new glob_match {m_pat}}; |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
82 #endif |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
83 } |
89cfd9dc69d8
Allow making copies of symbol_match objects (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
32590
diff
changeset
|
84 |
32590
3c2c585965cc
maint: C++ style check for liboctave/ before 9.1 release.
Rik <rik@octave.org>
parents:
32576
diff
changeset
|
85 bool |
3c2c585965cc
maint: C++ style check for liboctave/ before 9.1 release.
Rik <rik@octave.org>
parents:
32576
diff
changeset
|
86 symbol_match::match (const std::string& sym) |
32572
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
87 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
88 #if defined (OCTAVE_USE_WINDOWS_API) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
89 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
90 // gnulib's fnmatch replacement is slow on Windows. |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
91 // We don't need full POSIX compatibility to match symbol patterns. |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
92 // Glob patterns with '*' or '?' should be good enough. |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
93 // We also do not need to worry about multi-byte characters because symbols |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
94 // are ASCII-only. |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
95 octave_idx_type pat_len = m_pat.length (); |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
96 octave_idx_type pat_idx = 0; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
97 octave_idx_type pat_wildc_idx = -1; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
98 octave_idx_type sym_len = sym.length (); |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
99 octave_idx_type sym_idx = 0; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
100 octave_idx_type sym_wildc_idx; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
101 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
102 while (sym_idx < sym_len) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
103 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
104 if (pat_idx < pat_len |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
105 && (m_pat[pat_idx] == '?' || m_pat[pat_idx] == sym[sym_idx])) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
106 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
107 // match to '?' or exact match |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
108 pat_idx++; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
109 sym_idx++; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
110 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
111 else if (pat_idx < pat_len && m_pat[pat_idx] == '*') |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
112 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
113 // remember position in pattern and symbol |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
114 pat_wildc_idx = pat_idx; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
115 sym_wildc_idx = sym_idx; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
116 pat_idx++; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
117 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
118 else if (pat_wildc_idx != -1) |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
119 { |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
120 // no match but previous wildcard '*' |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
121 // revert pat_idx to previous position |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
122 pat_idx = pat_wildc_idx + 1; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
123 // but proceed to next character in symbol and try to match again |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
124 sym_wildc_idx++; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
125 sym_idx = sym_wildc_idx; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
126 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
127 else |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
128 // no exact match and no wildcard |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
129 return false; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
130 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
131 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
132 // consume potentially trailing '*' in pattern |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
133 while (pat_idx < pat_len && m_pat[pat_idx] == '*') |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
134 pat_idx++; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
135 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
136 // check for remaining (unmatched) characters in pattern |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
137 return pat_idx == pat_len; |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
138 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
139 #else |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
140 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
141 return m_glob->match (sym); |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
142 |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
143 #endif |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
144 } |
e424a55bc9fb
Use own function for symbol name matching on Windows (bug #64975).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31771
diff
changeset
|
145 |