#include <algorithm>
#include <deque>
#include <limits>
#include <string>
#include "oct-locbuf.h"
#include "Cell.h"
#include "builtin-defun-decls.h"
#include "defun.h"
#include "errwarn.h"
#include "ov.h"
#include "unwind-prot.h"
#include "utils.h"
Go to the source code of this file.
Macros | |
#define | ORD(ch) static_cast<unsigned char>(ch) |
#define | TABSIZE (std::numeric_limits<unsigned char>::max () + 1) |
Functions | |
OCTAVE_EXPORT octave_value_list | Fstrfind (const octave_value_list &args, int) or if ar |
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 |
static void | qs_preprocess (const Array< char > &needle, octave_idx_type *table) |
static Array< octave_idx_type > | qs_search (const Array< char > &needle, const Array< char > &haystack, const octave_idx_type *table, bool overlaps=true) |
Variables | |
is longer than | ar {str} |
is specified then as specified above | Examples |
#define ORD | ( | ch | ) | static_cast<unsigned char>(ch) |
Definition at line 45 of file strfind.cc.
Referenced by qs_preprocess(), and qs_search().
#define TABSIZE (std::numeric_limits<unsigned char>::max () + 1) |
Definition at line 46 of file strfind.cc.
Referenced by pattern(), and qs_preprocess().
OCTAVE_EXPORT octave_value_list Fstrfind | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 190 of file strfind.cc.
Referenced by pattern().
Definition at line 190 of file strfind.cc.
References octave_value::cell_value(), octave_value::char_array_value(), Array< T >::dims(), do_simple_cellfun(), error(), Fstrfind(), i, octave_value::is_scalar_type(), octave_value::is_string(), octave_value::iscell(), octave_value::isempty(), Array< T >::numel(), OCTAVE_LOCAL_BUFFER, octave_value(), print_usage(), qs_preprocess(), qs_search(), retval, string, and TABSIZE.
Referenced by octave::symbol_table::clear_function_pattern(), octave::symbol_table::clear_global_pattern(), octave::symbol_scope_rep::clear_variable_pattern(), octave::symbol_scope_rep::clear_variable_regexp(), octave::regexp::compile(), F__ftp_mget__(), F__ftp_mput__(), octave::symbol_scope_rep::glob(), octave::symbol_table::glob(), octave::symbol_scope::glob(), octave::symbol_table::glob_global_variables(), glob_pattern_p(), matches_patterns(), octave_fnmatch_wrapper(), octave_glob_wrapper(), octregexp(), octave::regexp::operator=(), octave::textscan_format_list::parse_char_class(), read_hdf5_data(), octave::symbol_scope_rep::regexp(), octave::symbol_scope::regexp(), octave::symbol_table::regexp_global_variables(), save_fields(), save_vars(), octave::textscan::scan_bracket(), octave::textscan::scan_caret(), and octave::xzip().
|
static |
Definition at line 51 of file strfind.cc.
References Array< T >::data(), i, Array< T >::numel(), ORD, TABSIZE, and x.
Referenced by pattern().
|
static |
Definition at line 64 of file strfind.cc.
References Array< T >::data(), i, k, min(), Array< T >::numel(), ORD, result, x, and y.
Referenced by pattern().
Definition at line 190 of file strfind.cc.
Definition at line 190 of file strfind.cc.