#include "oct-string.h"
#include <algorithm>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <string>
#include <unordered_set>
#include "Array.h"
#include "iconv-wrappers.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "oct-locbuf.h"
#include "uniconv-wrappers.h"
#include "unistr-wrappers.h"
#include "unwind-prot.h"
Go to the source code of this file.
Macros | |
#define | INSTANTIATE_OCTAVE_STRING(T, API) |
Typedefs | |
typedef octave::string::codecvt_u8::ExternT | ExternT |
typedef octave::string::codecvt_u8::InternT | InternT |
typedef octave::string::codecvt_u8::StateT | StateT |
Functions | |
template<> | |
octave_idx_type | numel (const Array< char > &str) |
template<typename T > | |
T::size_type | numel (const T &str) |
template bool | octave::string::strcmp< std::string > (const std::string &, const std::string &) |
template bool | octave::string::strcmp< std::string > (const std::string &, const typename std::string ::value_type *) |
template bool | octave::string::strcmpi< std::string > (const std::string &, const std::string &) |
template bool | octave::string::strcmpi< std::string > (const std::string &, const typename std::string ::value_type *) |
template bool | octave::string::strncmp< std::string > (const std::string &, const std::string &, const typename std::string ::size_type) |
template bool | octave::string::strncmp< std::string > (const std::string &, const typename std::string ::value_type *, const typename std::string ::size_type) |
template bool | octave::string::strncmpi< std::string > (const std::string &, const std::string &, const typename std::string ::size_type n) |
template bool | octave::string::strncmpi< std::string > (const std::string &, const typename std::string ::value_type *, const typename std::string ::size_type) |
template<typename T > | |
std::string | rational_approx (T val, int len) |
template std::string | rational_approx< double > (double val, int len) |
template std::string | rational_approx< float > (float val, int len) |
template<> | |
bool | sizes_cmp (const Array< char > &str_a, const Array< char > &str_b) |
template<> | |
bool | sizes_cmp (const Array< char > &str_a, const char *str_b) |
template<typename T > | |
bool | sizes_cmp (const T &str_a, const T &str_b) |
template<typename T > | |
bool | sizes_cmp (const T &str_a, const typename T::value_type *str_b) |
template<typename T > | |
T::size_type | strlen (const typename T::value_type *str) |
#define INSTANTIATE_OCTAVE_STRING | ( | T, | |
API | |||
) |
Definition at line 216 of file oct-string.cc.
typedef octave::string::codecvt_u8::ExternT ExternT |
Definition at line 782 of file oct-string.cc.
typedef octave::string::codecvt_u8::InternT InternT |
Definition at line 781 of file oct-string.cc.
typedef octave::string::codecvt_u8::StateT StateT |
Definition at line 783 of file oct-string.cc.
octave_idx_type numel | ( | const Array< char > & | str | ) |
Definition at line 81 of file oct-string.cc.
References Array< T, Alloc >::numel().
T::size_type numel | ( | const T & | str | ) |
Definition at line 74 of file oct-string.cc.
Referenced by ov_range< T >::ov_range(), intNDArray< T >::abs(), intNDArray< T >::any_element_not_one_or_zero(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::array_value(), Array< T, Alloc >::as_column(), dim_vector::as_column(), octave_uint64_matrix::as_mxArray(), ov_range< T >::as_mxArray(), Array< T, Alloc >::as_row(), dim_vector::as_row(), Array< T, Alloc >::assign(), Sparse< T, Alloc >::assign(), octave_uint64_matrix::bool_array_value(), octave_lazy_index::byte_size(), Array< T, Alloc >::byte_size(), octave_bool_matrix::char_array_value(), octave_uint64_matrix::char_array_value(), ov_range< T >::char_array_value(), Sparse< T, Alloc >::checkelem(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::cols(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::columns(), ov_range< T >::complex_value(), Array< T, Alloc >::delete_elements(), Sparse< T, Alloc >::delete_elements(), Array< T, Alloc >::diag(), ov_range< T >::dims(), ov_range< T >::do_index_op(), octave::do_simple_cellfun(), ov_range< T >::double_value(), string_vector::empty(), ov_range< T >::fast_elem_extract(), Fbitshift(), Fgmtime(), Array< T, Alloc >::fill(), Array< T, Alloc >::find(), ov_range< T >::float_complex_value(), octave_base_diag< DMT, MT >::float_value(), ov_range< T >::float_value(), Flocaltime(), octave::Fquit(), MArray< T >::idx_add(), MArray< double >::idx_max(), MArray< T >::idx_max(), ind2sub(), Array< T, Alloc >::index(), Sparse< T, Alloc >::index(), octave_base_diag< DMT, MT >::is_true(), ov_range< T >::is_true(), Array< T, Alloc >::isempty(), DiagArray2< T >::isempty(), PermMatrix::isempty(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::isempty(), Array< T, Alloc >::issorted(), octave_map::length(), Array< T, Alloc >::lookup(), range< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::make_n_element_range(), Array< T, Alloc >::map(), string_vector::max_length(), octave_lazy_index::nnz(), Array< T, Alloc >::nnz(), intNDArray< T >::operator!(), ov_range< T >::print_name_tag(), Array< T, Alloc >::resize1(), ov_range< T >::short_disp(), intNDArray< T >::signum(), Array< T, Alloc >::test(), and ov_range< T >::try_narrowing_conversion().
template bool octave::string::strcmp< std::string > | ( | const std::string & | , |
const std::string & | |||
) |
template bool octave::string::strcmp< std::string > | ( | const std::string & | , |
const typename std::string ::value_type * | |||
) |
template bool octave::string::strcmpi< std::string > | ( | const std::string & | , |
const std::string & | |||
) |
template bool octave::string::strcmpi< std::string > | ( | const std::string & | , |
const typename std::string ::value_type * | |||
) |
template bool octave::string::strncmp< std::string > | ( | const std::string & | , |
const std::string & | , | ||
const typename std::string ::size_type | |||
) |
template bool octave::string::strncmp< std::string > | ( | const std::string & | , |
const typename std::string ::value_type * | , | ||
const typename std::string ::size_type | |||
) |
template bool octave::string::strncmpi< std::string > | ( | const std::string & | , |
const std::string & | , | ||
const typename std::string ::size_type | n | ||
) |
template bool octave::string::strncmpi< std::string > | ( | const std::string & | , |
const typename std::string ::value_type * | , | ||
const typename std::string ::size_type | |||
) |
std::string rational_approx | ( | T | val, |
int | len | ||
) |
template std::string rational_approx< double > | ( | double | val, |
int | len | ||
) |
template std::string rational_approx< float > | ( | float | val, |
int | len | ||
) |
Definition at line 102 of file oct-string.cc.
References Array< T, Alloc >::dims().
bool sizes_cmp | ( | const Array< char > & | str_a, |
const char * | str_b | ||
) |
Definition at line 116 of file oct-string.cc.
References Array< T, Alloc >::isvector(), Array< T, Alloc >::numel(), Array< T, Alloc >::rows(), and strlen().
bool sizes_cmp | ( | const T & | str_a, |
const T & | str_b | ||
) |
Definition at line 95 of file oct-string.cc.
bool sizes_cmp | ( | const T & | str_a, |
const typename T::value_type * | str_b | ||
) |
Definition at line 109 of file oct-string.cc.
T::size_type strlen | ( | const typename T::value_type * | str | ) |
Definition at line 88 of file oct-string.cc.
Referenced by charNDArray::charNDArray(), extract_keyword(), F77_FUNC(), fgets(), charMatrix::insert(), mexErrMsgIdAndTxt(), mexErrMsgTxt(), mexWarnMsgIdAndTxt(), mexWarnMsgTxt(), octave__scan_string(), octave_getcwd_wrapper(), octave_tex__scan_string(), gzfilebuf::open_mode(), sizes_cmp(), strsave(), mxArray::strsave(), and u8_to_wchar().