GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
glob_match Class Reference

#include "glob-match.h"

Public Types

enum  opts { pathname = 1 , noescape = 2 , period = 4 }
 

Public Member Functions

 glob_match (const glob_match &gm)=default
 
 glob_match (const std::string &p, unsigned int xopts=pathname|noescape|period)
 
 glob_match (const string_vector &p=string_vector(), unsigned int xopts=pathname|noescape|period)
 
 ~glob_match ()=default
 
string_vector glob () const
 
bool match (const std::string &str) const
 
Array< bool > match (const string_vector &str) const
 
glob_matchoperator= (const glob_match &gm)=default
 
void set_pattern (const std::string &p)
 
void set_pattern (const string_vector &p)
 

Detailed Description

Definition at line 36 of file glob-match.h.

Member Enumeration Documentation

◆ opts

Enumerator
pathname 
noescape 
period 

Definition at line 42 of file glob-match.h.

Constructor & Destructor Documentation

◆ glob_match() [1/3]

glob_match::glob_match ( const std::string &  p,
unsigned int  xopts = pathname | noescape | period 
)
inline

Definition at line 49 of file glob-match.h.

◆ glob_match() [2/3]

glob_match::glob_match ( const string_vector p = string_vector (),
unsigned int  xopts = pathname | noescape | period 
)
inline

Definition at line 54 of file glob-match.h.

◆ glob_match() [3/3]

glob_match::glob_match ( const glob_match gm)
default

◆ ~glob_match()

glob_match::~glob_match ( )
default

Member Function Documentation

◆ glob()

string_vector glob_match::glob ( ) const

Definition at line 41 of file glob-match.cc.

References glob().

Referenced by octave::F__ftp_mput__(), and octave::Fglob().

◆ match() [1/2]

bool glob_match::match ( const std::string &  str) const

Definition at line 35 of file glob-match.cc.

References fnmatch().

Referenced by octave::F__fnmatch__(), and octave::F__ftp_mget__().

◆ match() [2/2]

Array<bool> glob_match::match ( const string_vector str) const
inline

Definition at line 71 of file glob-match.h.

References n, and string_vector::numel().

◆ operator=()

glob_match& glob_match::operator= ( const glob_match gm)
default

◆ set_pattern() [1/2]

void glob_match::set_pattern ( const std::string &  p)
inline

Definition at line 65 of file glob-match.h.

◆ set_pattern() [2/2]

void glob_match::set_pattern ( const string_vector p)
inline

Definition at line 67 of file glob-match.h.


The documentation for this class was generated from the following files: