GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <list>
#include <sstream>
#include <pcre.h>
#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 "gripes.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
static std::string | do_regexp_ptn_string_escapes (const std::string &s) |
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) |
|
static |
Definition at line 53 of file regexp.cc.
Referenced by octregexp(), and octregexprep().
|
static |
Definition at line 109 of file regexp.cc.
Referenced by octregexprep().
OCTAVE_EXPORT octave_value_list Fregexp | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 792 of file regexp.cc.
References octave_value_list::length(), octcellregexp(), octregexp(), and print_usage().
OCTAVE_EXPORT octave_value_list Fregexpi | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1081 of file regexp.cc.
References octave_value_list::length(), octcellregexp(), octregexp(), and print_usage().
OCTAVE_EXPORT octave_value_list Fregexprep | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1321 of file regexp.cc.
References Array< T >::dims(), error(), error_state, octave_value_list::length(), Array< T >::numel(), dim_vector::numel(), octave_value(), octregexprep(), and print_usage().
|
static |
Definition at line 447 of file regexp.cc.
References octave_value_list::cell_value(), Array< T >::dims(), error(), error_state, Array< T >::numel(), OCTAVE_LOCAL_BUFFER, octave_value(), and octregexp().
Referenced by Fregexp(), and Fregexpi().
|
static |
Definition at line 240 of file regexp.cc.
References octave_scalar_map::assign(), octave_base_list< elt_type >::begin(), regexp::opts::case_insensitive(), do_regexp_ptn_string_escapes(), octave_base_list< elt_type >::end(), error_state, octave_value_list::length(), Array< T >::length(), regexp::match_data::named_patterns(), OCTAVE_LOCAL_BUFFER, regexp::opts::once(), parse_options(), regexp_match(), octave_value_list::resize(), octave_base_list< elt_type >::size(), and transform().
Referenced by Fregexp(), Fregexpi(), and octcellregexp().
|
static |
Definition at line 1232 of file regexp.cc.
References do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), error_state, octave_value_list::length(), parse_options(), regexp_replace(), and octave_value_list::resize().
Referenced by Fregexprep().
|
static |
Definition at line 183 of file regexp.cc.
References regexp::opts::case_insensitive(), regexp::opts::dotexceptnewline(), regexp::opts::emptymatch(), error(), regexp::opts::freespacing(), octave_value_list::length(), regexp::opts::lineanchors(), regexp::opts::once(), and transform().
Referenced by octregexp(), and octregexprep().