GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
strfns.cc File Reference
#include <cctype>
#include <queue>
#include <sstream>
#include "dMatrix.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "ov.h"
#include "oct-obj.h"
#include "unwind-prot.h"
#include "utils.h"
Include dependency graph for strfns.cc:

Go to the source code of this file.

Classes

struct  icmp_char_eq
 

Functions

static octave_value do_strcmp_fun (const octave_value &arg0, const octave_value &arg1, octave_idx_type n, const char *fcn_name, bool(*array_op)(const charNDArray &, const charNDArray &, octave_idx_type), bool(*str_op)(const std::string &, const std::string &, octave_idx_type))
 
OCTAVE_EXPORT octave_value_list Fchar (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fischar (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Flist_in_columns (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrcmp (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrcmpi (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrncmp (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrncmpi (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstrvcat (const octave_value_list &args, int)
 
static bool strcmp_array_op (const charNDArray &s1, const charNDArray &s2, octave_idx_type)
 
static bool strcmp_str_op (const std::string &s1, const std::string &s2, octave_idx_type)
 
static bool strcmpi_array_op (const charNDArray &s1, const charNDArray &s2, octave_idx_type)
 
static bool strcmpi_str_op (const std::string &s1, const std::string &s2, octave_idx_type)
 
static bool strncmp_array_op (const charNDArray &s1, const charNDArray &s2, octave_idx_type n)
 
static bool strncmp_str_op (const std::string &s1, const std::string &s2, octave_idx_type n)
 
static bool strncmpi_array_op (const charNDArray &s1, const charNDArray &s2, octave_idx_type n)
 
static bool strncmpi_str_op (const std::string &s1, const std::string &s2, octave_idx_type n)
 

Function Documentation

static octave_value do_strcmp_fun ( const octave_value arg0,
const octave_value arg1,
octave_idx_type  n,
const char fcn_name,
bool(*)(const charNDArray &, const charNDArray &, octave_idx_type array_op,
bool(*)(const std::string &, const std::string &, octave_idx_type str_op 
)
static
OCTAVE_EXPORT octave_value_list Fchar ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fischar ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Flist_in_columns ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fstrcmp ( const octave_value_list args,
int   
)

Definition at line 583 of file strfns.cc.

References do_strcmp_fun(), print_usage(), strcmp_array_op(), and strcmp_str_op().

OCTAVE_EXPORT octave_value_list Fstrcmpi ( const octave_value_list args,
int   
)

Definition at line 781 of file strfns.cc.

References do_strcmp_fun(), print_usage(), strcmpi_array_op(), and strcmpi_str_op().

Referenced by install_strfns_fcns().

OCTAVE_EXPORT octave_value_list Fstrncmp ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fstrncmpi ( const octave_value_list args,
int   
)
OCTAVE_EXPORT octave_value_list Fstrvcat ( const octave_value_list args,
int   
)
static bool strcmp_array_op ( const charNDArray s1,
const charNDArray s2,
octave_idx_type   
)
static

Definition at line 553 of file strfns.cc.

References Array< T >::data(), Array< T >::dims(), and Array< T >::numel().

Referenced by Fstrcmp().

static bool strcmp_str_op ( const std::string &  s1,
const std::string &  s2,
octave_idx_type   
)
static

Definition at line 561 of file strfns.cc.

Referenced by Fstrcmp().

static bool strcmpi_array_op ( const charNDArray s1,
const charNDArray s2,
octave_idx_type   
)
static

Definition at line 746 of file strfns.cc.

References Array< T >::data(), Array< T >::dims(), and Array< T >::numel().

Referenced by Fstrcmpi().

static bool strcmpi_str_op ( const std::string &  s1,
const std::string &  s2,
octave_idx_type   
)
static

Definition at line 755 of file strfns.cc.

Referenced by Fstrcmpi().

static bool strncmp_array_op ( const charNDArray s1,
const charNDArray s2,
octave_idx_type  n 
)
static

Definition at line 648 of file strfns.cc.

References Array< T >::data(), and Array< T >::numel().

Referenced by Fstrncmp().

static bool strncmp_str_op ( const std::string &  s1,
const std::string &  s2,
octave_idx_type  n 
)
static

Definition at line 661 of file strfns.cc.

Referenced by Fstrncmp().

static bool strncmpi_array_op ( const charNDArray s1,
const charNDArray s2,
octave_idx_type  n 
)
static

Definition at line 802 of file strfns.cc.

References Array< T >::data(), and Array< T >::numel().

Referenced by Fstrncmpi().

static bool strncmpi_str_op ( const std::string &  s1,
const std::string &  s2,
octave_idx_type  n 
)
static

Definition at line 814 of file strfns.cc.

Referenced by Fstrncmpi().