GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-string.h File Reference
#include "octave-config.h"
#include "oct-cmplx.h"
Include dependency graph for oct-string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 octave
 
 octave::string
 Octave string utility functions.
 

Enumerations

enum  octave::string::u8_fallback_type { octave::string::U8_REPLACEMENT_CHAR , octave::string::U8_ISO_8859_1 }
 

Functions

template<typename T >
OCTAVE_API std::string rational_approx (T val, int len)
 
OCTAVE_API Complex octave::string::str2double (const std::string &str_arg)
 
template<typename T >
bool octave::string::strcmp (const T &str_a, const T &str_b)
 True if strings are the same. More...
 
template<typename T >
bool octave::string::strcmp (const T &str_a, const typename T::value_type *str_b)
 True if string is the same as character sequence. More...
 
template<typename T >
bool octave::string::strcmpi (const T &str_a, const T &str_b)
 True if strings are the same, ignoring case. More...
 
template<typename T >
bool octave::string::strcmpi (const T &str_a, const typename T::value_type *str_b)
 True if string is the same as character sequence, ignoring case. More...
 
template<typename T >
bool octave::string::strncmp (const T &str_a, const T &str_b, const typename T::size_type n)
 True if the first N characters are the same. More...
 
template<typename T >
bool octave::string::strncmp (const T &str_a, const typename T::value_type *str_b, const typename T::size_type n)
 True if the first N characters are the same. More...
 
template<typename T >
bool octave::string::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. More...
 
template<typename T >
bool octave::string::strncmpi (const T &str_a, const typename T::value_type *str_b, const typename T::size_type n)
 True if the first N characters are the same, ignoring case. More...
 
OCTAVE_API std::string octave::string::u8_from_encoding (const std::string &who, const std::string &native_string, const std::string &encoding)
 
OCTAVE_API std::string octave::string::u8_to_encoding (const std::string &who, const std::string &u8_string, const std::string &encoding)
 
OCTAVE_API unsigned int octave::string::u8_validate (const std::string &who, std::string &in_string, const u8_fallback_type type=U8_REPLACEMENT_CHAR)
 

Function Documentation

◆ rational_approx()

template<typename T >
OCTAVE_API std::string rational_approx ( val,
int  len 
)