GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
glob-wrappers.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2016-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_glob_wrappers_h)
24 #define octave_glob_wrappers_h 1
25 
26 #if defined __cplusplus
27 extern "C" {
28 #endif
29 
30 extern void * octave_create_glob_info_struct (void);
31 
32 // Does not call globfree.
33 extern void octave_destroy_glob_info_struct (void *glob_info);
34 
35 // We don't need the error function pointer that the system glob
36 // function allows.
37 extern int
38 octave_glob_wrapper (const char *pattern, int flags, void *glob_info);
39 
40 extern int octave_glob_num_matches (void *glob_info);
41 
42 extern char ** octave_glob_match_list (void *glob_info);
43 
44 extern void octave_globfree_wrapper (void *glob_info);
45 
46 extern int octave_glob_nosort_wrapper (void);
47 
48 extern int
49 octave_fnmatch_wrapper (const char *pattern, const char *name, int flags);
50 
51 extern int octave_fnm_nomatch_wrapper (void);
52 
53 extern int octave_fnm_pathname_wrapper (void);
54 
55 extern int octave_fnm_noescape_wrapper (void);
56 
57 extern int octave_fnm_period_wrapper (void);
58 
59 #if defined __cplusplus
60 }
61 #endif
62 
63 #endif
char ** octave_glob_match_list(void *glob_info)
Definition: glob-wrappers.c:65
int octave_fnm_pathname_wrapper(void)
Definition: glob-wrappers.c:95
void octave_destroy_glob_info_struct(void *glob_info)
Definition: glob-wrappers.c:47
int octave_glob_num_matches(void *glob_info)
Definition: glob-wrappers.c:59
nd deftypefn *std::string name
Definition: sysdep.cc:647
int octave_fnm_period_wrapper(void)
int octave_fnm_noescape_wrapper(void)
is longer than or if then or only for unique occurrences of the complete pattern(false). The default is true. If a cell array of strings ar
Definition: strfind.cc:190
int octave_fnmatch_wrapper(const char *pattern, const char *name, int flags)
Definition: glob-wrappers.c:83
int octave_glob_nosort_wrapper(void)
Definition: glob-wrappers.c:77
void octave_globfree_wrapper(void *glob_info)
Definition: glob-wrappers.c:71
int octave_fnm_nomatch_wrapper(void)
Definition: glob-wrappers.c:89
int octave_glob_wrapper(const char *pattern, int flags, void *glob_info)
Definition: glob-wrappers.c:53
void * octave_create_glob_info_struct(void)
Definition: glob-wrappers.c:40