GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
regexp.cc File Reference
#include <list>
#include <sstream>
#include "base-list.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "lo-regexp.h"
#include "str-vec.h"
#include "defun.h"
#include "Cell.h"
#include "error.h"
#include "errwarn.h"
#include "oct-map.h"
#include "ovl.h"
#include "utils.h"
Include dependency graph for regexp.cc:

Go to the source code of this file.

Functions

static std::string do_regexp_ptn_string_escapes (const std::string &s, bool is_sq_str)
 
static std::string do_regexp_rep_string_escapes (const std::string &s)
 
OCTAVE_EXPORT octave_value_list Fregexp (const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fregexpi (const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fregexprep (const octave_value_list &args, int)
 
static octave_value_list octcellregexp (const octave_value_list &args, int nargout, const std::string &who, bool case_insensitive=false)
 
static octave_value_list octregexp (const octave_value_list &args, int nargout, const std::string &who, bool case_insensitive=false)
 
static octave_value octregexprep (const octave_value_list &args, const std::string &who)
 
static void parse_options (regexp::opts &options, const octave_value_list &args, const std::string &who, int skip, bool &extra_args)
 

Function Documentation

◆ do_regexp_ptn_string_escapes()

static std::string do_regexp_ptn_string_escapes ( const std::string &  s,
bool  is_sq_str 
)
static

Definition at line 55 of file regexp.cc.

References len, min(), and warning().

Referenced by octregexp(), and octregexprep().

◆ do_regexp_rep_string_escapes()

static std::string do_regexp_rep_string_escapes ( const std::string &  s)
static

Definition at line 145 of file regexp.cc.

References len, min(), and warning().

Referenced by octregexprep().

◆ Fregexp()

OCTAVE_EXPORT octave_value_list Fregexp ( const octave_value_list args,
int  nargout 
)

Definition at line 884 of file regexp.cc.

References octcellregexp(), octregexp(), and print_usage().

◆ Fregexpi()

OCTAVE_EXPORT octave_value_list Fregexpi ( const octave_value_list args,
int  nargout 
)

Definition at line 1229 of file regexp.cc.

References octcellregexp(), octregexp(), and print_usage().

◆ Fregexprep()

OCTAVE_EXPORT octave_value_list Fregexprep ( const octave_value_list args,
int   
)

◆ octcellregexp()

static octave_value_list octcellregexp ( const octave_value_list args,
int  nargout,
const std::string &  who,
bool  case_insensitive = false 
)
static

◆ octregexp()

◆ octregexprep()

static octave_value octregexprep ( const octave_value_list args,
const std::string &  who 
)
static

◆ parse_options()

static void parse_options ( regexp::opts options,
const octave_value_list args,
const std::string &  who,
int  skip,
bool &  extra_args 
)
static