#include <algorithm>#include <string>#include "glob-wrappers.h"#include "oct-glob.h"#include "file-ops.h"#include "file-stat.h"#include "unwind-prot.h"
Go to the source code of this file.
Functions | |
| bool | fnmatch (const string_vector &pat, const std::string &str, int fnm_flags) |
| string_vector | glob (const string_vector &pat) |
| static bool | single_match_exists (const std::string &file) |
| string_vector | windows_glob (const string_vector &pat) |
| bool fnmatch | ( | const string_vector & | pat, |
| const std::string & | str, | ||
| int | fnm_flags | ||
| ) |
Definition at line 67 of file oct-glob.cc.
References string_vector::numel(), octave_fnm_nomatch_wrapper(), and octave_fnmatch_wrapper().
Referenced by glob_match::match(), and octave_fnmatch_wrapper().
| string_vector glob | ( | const string_vector & | pat | ) |
Definition at line 82 of file oct-glob.cc.
References n, string_vector::numel(), octave_create_glob_info_struct(), octave_destroy_glob_info_struct(), octave_glob_match_list(), octave_glob_nosort_wrapper(), octave_glob_num_matches(), octave_glob_wrapper(), octave_globfree_wrapper(), string_vector::resize(), single_match_exists(), and string_vector::sort().
Referenced by glob_match::glob(), and octave_glob_wrapper().
|
static |
Definition at line 57 of file oct-glob.cc.
Referenced by glob(), and windows_glob().
| string_vector windows_glob | ( | const string_vector & | pat | ) |
Definition at line 240 of file oct-glob.cc.
References dir_sep_char, dir_sep_chars, is_dir_sep(), len, m, n, string_vector::numel(), octave_create_glob_info_struct(), octave_destroy_glob_info_struct(), octave_glob_match_list(), octave_glob_nosort_wrapper(), octave_glob_num_matches(), octave_glob_wrapper(), octave_globfree_wrapper(), string_vector::resize(), single_match_exists(), string_vector::sort(), and u8_to_wstring().
Referenced by F__wglob__().