GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
strfns.cc File Reference
#include <cctype>
#include <queue>
#include <sstream>
#include "dMatrix.h"
#include "localcharset-wrapper.h"
#include "uniconv-wrappers.h"
#include "unistr-wrappers.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ov.h"
#include "ovl.h"
#include "unwind-prot.h"
#include "utils.h"
#include "oct-string.h"
Include dependency graph for strfns.cc:

Go to the source code of this file.

Functions

static octave_value do_strcmp_fcn (const octave_value &arg0, const octave_value &arg1, octave_idx_type n, const char *fcn_name, bool(*array_op)(const Array< char > &, const Array< char > &, octave_idx_type), bool(*str_op)(const std::string &, const std::string &, std::string::size_type))
 
OCTAVE_EXPORT octave_value_list F__locale_charset__ (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list F__native2unicode__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list F__u8_validate__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list F__unicode2native__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list F__unicode_length__ (const octave_value_list &args, int)
 
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 Fnewline (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fstr2double (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)
 
OCTAVE_EXPORT octave_value_list Funicode_idx (const octave_value_list &args, int)
 
template<typename T , typename T_size_type >
static bool strcmp_ignore_n (const T &s1, const T &s2, T_size_type)
 
template<typename T , typename T_size_type >
static bool strcmpi_ignore_n (const T &s1, const T &s2, T_size_type)
 

Function Documentation

◆ do_strcmp_fcn()

static octave_value do_strcmp_fcn ( const octave_value arg0,
const octave_value arg1,
octave_idx_type  n,
const char *  fcn_name,
bool(*)(const Array< char > &, const Array< char > &, octave_idx_type array_op,
bool(*)(const std::string &, const std::string &, std::string::size_type)  str_op 
)
static

◆ F__locale_charset__()

OCTAVE_EXPORT octave_value_list F__locale_charset__ ( const octave_value_list ,
int   
)

Definition at line 976 of file strfns.cc.

References octave_locale_charset_wrapper(), and ovl().

◆ F__native2unicode__()

◆ F__u8_validate__()

OCTAVE_EXPORT octave_value_list F__u8_validate__ ( const octave_value_list args,
int   
)

Definition at line 1115 of file strfns.cc.

References error(), ovl(), print_usage(), U8_ISO_8859_1, U8_REPLACEMENT_CHAR, and u8_validate().

◆ F__unicode2native__()

◆ F__unicode_length__()

◆ Fchar()

OCTAVE_EXPORT octave_value_list Fchar ( const octave_value_list args,
int   
)

◆ Fischar()

OCTAVE_EXPORT octave_value_list Fischar ( const octave_value_list args,
int   
)

Definition at line 296 of file strfns.cc.

References ovl(), and print_usage().

◆ Flist_in_columns()

OCTAVE_EXPORT octave_value_list Flist_in_columns ( const octave_value_list args,
int   
)

Definition at line 1215 of file strfns.cc.

References string_vector::list_in_columns(), ovl(), and print_usage().

◆ Fnewline()

OCTAVE_EXPORT octave_value_list Fnewline ( const octave_value_list args,
int   
)

Definition at line 1162 of file strfns.cc.

References ovl(), and print_usage().

◆ Fstr2double()

OCTAVE_EXPORT octave_value_list Fstr2double ( const octave_value_list args,
int   
)

◆ Fstrcmp()

OCTAVE_EXPORT octave_value_list Fstrcmp ( const octave_value_list args,
int   
)

Definition at line 558 of file strfns.cc.

References do_strcmp_fcn(), ovl(), print_usage(), and strcmp_ignore_n().

◆ Fstrcmpi()

OCTAVE_EXPORT octave_value_list Fstrcmpi ( const octave_value_list args,
int   
)

Definition at line 696 of file strfns.cc.

References do_strcmp_fcn(), ovl(), print_usage(), and strcmpi_ignore_n().

◆ Fstrncmp()

OCTAVE_EXPORT octave_value_list Fstrncmp ( const octave_value_list args,
int   
)

Definition at line 646 of file strfns.cc.

References do_strcmp_fcn(), error(), n, ovl(), print_usage(), and strncmp().

◆ Fstrncmpi()

OCTAVE_EXPORT octave_value_list Fstrncmpi ( const octave_value_list args,
int   
)

Definition at line 727 of file strfns.cc.

References do_strcmp_fcn(), error(), n, ovl(), print_usage(), and strncmpi().

◆ Fstrvcat()

OCTAVE_EXPORT octave_value_list Fstrvcat ( const octave_value_list args,
int   
)

Definition at line 212 of file strfns.cc.

References string_vector::max_length(), n, string_vector::numel(), and octave_value().

◆ Funicode_idx()

◆ strcmp_ignore_n()

template<typename T , typename T_size_type >
static bool strcmp_ignore_n ( const T &  s1,
const T &  s2,
T_size_type   
)
static

Definition at line 533 of file strfns.cc.

References strcmp().

Referenced by Fstrcmp().

◆ strcmpi_ignore_n()

template<typename T , typename T_size_type >
static bool strcmpi_ignore_n ( const T &  s1,
const T &  s2,
T_size_type   
)
static

Definition at line 538 of file strfns.cc.

References strcmpi().

Referenced by Fstrcmpi().