26 #if ! defined (octave_oct_string_h)
27 #define octave_oct_string_h 1
29 #include "octave-config.h"
63 strcmp (
const T& str_a,
const T& str_b);
77 strcmp (
const T& str_a,
const typename T::value_type *str_b);
100 strcmpi (
const T& str_a,
const typename T::value_type *str_b);
110 template <
typename T>
113 const typename T::size_type
n);
116 template <
typename T>
118 strncmp (
const T& str_a,
const typename T::value_type *str_b,
119 const typename T::size_type
n);
129 template <
typename T>
132 const typename T::size_type
n);
135 template <
typename T>
137 strncmpi (
const T& str_a,
const typename T::value_type *str_b,
138 const typename T::size_type
n);
145 const std::string& encoding);
149 const std::string& encoding);
162 template<
class Facet>
166 template<
class ...Args>
168 :
Facet (std::forward<Args> (args)...)
177 codecvt_u8 :
public std::codecvt<char, char, std::mbstate_t>
200 typename std::codecvt<InternT, ExternT, StateT>::result
206 typename std::codecvt<InternT, ExternT, StateT>::result
211 typename std::codecvt<InternT, ExternT, StateT>::result
219 return std::codecvt<InternT, ExternT, StateT>::ok;
236 std::size_t
max)
const;
251 template <
typename T>
charNDArray max(char d, const charNDArray &m)
OCTAVE_API int do_length(StateT &state, const ExternT *src, const ExternT *end, std::size_t max) const
OCTAVE_API std::codecvt< InternT, ExternT, StateT >::result do_in(StateT &state, const ExternT *from, const ExternT *from_end, const ExternT *&from_next, InternT *to, InternT *to_end, InternT *&to_next) const
bool do_always_noconv() const
codecvt_u8(codecvt_u8 &)=delete
int do_max_length() const
std::codecvt< InternT, ExternT, StateT >::result do_unshift(StateT &, ExternT *to, ExternT *, ExternT *&to_next) const
codecvt_u8(const std::string &enc)
OCTAVE_API std::codecvt< InternT, ExternT, StateT >::result do_out(StateT &state, const InternT *from, const InternT *from_end, const InternT *&from_next, ExternT *to, ExternT *to_end, ExternT *&to_next) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::complex< double > Complex
OCTAVE_API unsigned int u8_validate(const std::string &who, std::string &in_string, const u8_fallback_type type=U8_REPLACEMENT_CHAR)
OCTAVE_API std::string u8_to_encoding(const std::string &who, const std::string &u8_string, const std::string &encoding)
OCTAVE_API bool strcmpi(const T &str_a, const T &str_b)
True if strings are the same, ignoring case.
OCTAVE_API bool strcmp(const T &str_a, const T &str_b)
Octave string utility functions.
OCTAVE_API Complex str2double(const std::string &str_arg)
OCTAVE_API std::string rational_approx(T val, int len)
OCTAVE_API std::string u8_from_encoding(const std::string &who, const std::string &native_string, const std::string &encoding)
OCTAVE_API bool strncmp(const T &str_a, const T &str_b, const typename T::size_type n)
True if the first N characters are the same.
OCTAVE_API bool strncmpi(const T &str_a, const T &str_b, const typename T::size_type n)
True if the first N characters are the same, ignoring case.
static uint32_t state[624]
deletable_facet(Args &&...args)