GNU Octave  6.2.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_fun (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 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_fun()

static octave_value do_strcmp_fun ( 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 987 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   
)

◆ F__unicode2native__()

◆ Fchar()

OCTAVE_EXPORT octave_value_list Fchar ( const octave_value_list args,
int   
)

Definition at line 85 of file strfns.cc.

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

◆ Fischar()

OCTAVE_EXPORT octave_value_list Fischar ( const octave_value_list args,
int   
)

Definition at line 294 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 1155 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 1104 of file strfns.cc.

References ovl(), print_usage(), and retval.

◆ 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 556 of file strfns.cc.

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

◆ Fstrcmpi()

OCTAVE_EXPORT octave_value_list Fstrcmpi ( const octave_value_list args,
int   
)

Definition at line 693 of file strfns.cc.

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

◆ Fstrncmp()

OCTAVE_EXPORT octave_value_list Fstrncmp ( const octave_value_list args,
int   
)

Definition at line 644 of file strfns.cc.

References do_strcmp_fun(), error(), n, ovl(), print_usage(), and octave::string::strncmp().

◆ Fstrncmpi()

OCTAVE_EXPORT octave_value_list Fstrncmpi ( const octave_value_list args,
int   
)

Definition at line 724 of file strfns.cc.

References do_strcmp_fun(), error(), n, ovl(), print_usage(), and octave::string::strncmpi().

◆ Fstrvcat()

OCTAVE_EXPORT octave_value_list Fstrvcat ( const octave_value_list args,
int   
)

Definition at line 210 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 531 of file strfns.cc.

References octave::string::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 536 of file strfns.cc.

References octave::string::strcmpi().

Referenced by Fstrcmpi().