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) |
OCTAVE_API std::string rational_approx | ( | T | val, |
int | len | ||
) |
Definition at line 612 of file oct-string.cc.
References abs(), d, octave::math::isinf(), octave::math::isnan(), len, m, max(), min(), n, octave::math::round(), and octave::math::x_nint().
Referenced by QtHandles::qStringValueFor().