26 #if ! defined (octave_oct_string_h)
27 #define octave_oct_string_h 1
29 #include "octave-config.h"
64 strcmp (
const T& str_a,
const T& str_b);
78 strcmp (
const T& str_a,
const typename T::value_type *str_b);
101 strcmpi (
const T& str_a,
const typename T::value_type *str_b);
111 template <
typename T>
114 const typename T::size_type
n);
117 template <
typename T>
119 strncmp (
const T& str_a,
const typename T::value_type *str_b,
120 const typename T::size_type
n);
130 template <
typename T>
133 const typename T::size_type
n);
136 template <
typename T>
138 strncmpi (
const T& str_a,
const typename T::value_type *str_b,
139 const typename T::size_type
n);
146 const std::string& encoding);
150 const std::string& encoding);
164 const std::string& encoding);
169 template<
class Facet>
174 template<
class ...Args>
176 :
Facet (std::forward<Args> (args)...)
184 codecvt_u8 :
public std::codecvt<char, char, std::mbstate_t>
192 OCTAVE_DISABLE_CONSTRUCT_COPY_MOVE (
codecvt_u8)
203 typename std::codecvt<InternT, ExternT, StateT>::result
209 typename std::codecvt<InternT, ExternT, StateT>::result
214 typename std::codecvt<InternT, ExternT, StateT>::result
222 return std::codecvt<InternT, ExternT, StateT>::ok;
225 int do_encoding ()
const throw ()
231 bool do_always_noconv ()
const throw ()
239 std::size_t
max)
const;
241 int do_max_length()
const throw ()
251 OCTAVE_END_NAMESPACE(
string)
252 OCTAVE_END_NAMESPACE(
octave)
254 template <
typename T>
charNDArray max(char d, const charNDArray &m)
codecvt_u8(const std::string &enc)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::complex< double > Complex
octave::string::codecvt_u8::ExternT ExternT
octave::string::codecvt_u8::StateT StateT
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.
std::string u8_to_encoding(const std::string &who, const std::string &u8_string, const std::string &encoding)
bool strcmp(const T &str_a, const T &str_b)
Octave string utility functions.
std::vector< std::string > get_encoding_list()
Complex str2double(const std::string &str_arg)
bool strcmpi(const T &str_a, const T &str_b)
True if strings are the same, ignoring case.
std::string u16_to_encoding(const std::string &who, const std::u16string &u16_string, const std::string &encoding)
unsigned int u8_validate(const std::string &who, std::string &in_string, const u8_fallback_type type=U8_REPLACEMENT_CHAR)
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.
std::string u8_from_encoding(const std::string &who, const std::string &native_string, const std::string &encoding)
std::string rational_approx(T val, int len)
deletable_facet(Args &&...args)