#include <cstdlib>
#include <cstring>
#include <complex>
#include <istream>
#include <limits>
#include <ostream>
#include <string>
#include "quit.h"
#include "intprops-wrappers.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "oct-inttypes.h"
Go to the source code of this file.
Functions | |
std::string | fgetl (FILE *f) |
std::string | fgetl (FILE *f, bool &eof) |
std::string | fgets (FILE *f) |
std::string | fgets (FILE *f, bool &eof) |
bool | int_multiply_overflow (int a, int b, int *r) |
bool | int_multiply_overflow (long int a, long int b, long int *r) |
bool | int_multiply_overflow (unsigned int a, unsigned int b, unsigned int *r) |
bool | int_multiply_overflow (unsigned long int a, unsigned long int b, unsigned long int *r) |
bool | is_int_or_inf_or_nan (double x) |
bool | is_int_or_inf_or_nan (float x) |
template<typename T > | |
std::complex< T > | read_cx_fp_value (std::istream &is) |
template<typename T > | |
double | read_fp_value (std::istream &is) |
template<typename T > | |
T | read_inf_nan_na (std::istream &is, char c0) |
template<typename T > | |
T | read_value (std::istream &is) |
template<> | |
double | read_value (std::istream &is) |
template<> | |
Complex | read_value (std::istream &is) |
template<> | |
float | read_value (std::istream &is) |
template<> | |
FloatComplex | read_value (std::istream &is) |
template bool | read_value< bool > (std::istream &is) |
template octave_int16 | read_value< octave_int16 > (std::istream &is) |
template octave_int32 | read_value< octave_int32 > (std::istream &is) |
template octave_int64 | read_value< octave_int64 > (std::istream &is) |
template octave_int8 | read_value< octave_int8 > (std::istream &is) |
template octave_uint16 | read_value< octave_uint16 > (std::istream &is) |
template octave_uint32 | read_value< octave_uint32 > (std::istream &is) |
template octave_uint64 | read_value< octave_uint64 > (std::istream &is) |
template octave_uint8 | read_value< octave_uint8 > (std::istream &is) |
char * | strsave (const char *s) |
bool | too_large_for_float (const Complex &x) |
bool | too_large_for_float (double x) |
template<> | |
void | write_value (std::ostream &os, const Complex &value) |
template<> | |
void | write_value (std::ostream &os, const double &value) |
template<> | |
void | write_value (std::ostream &os, const float &value) |
template<> | |
void | write_value (std::ostream &os, const FloatComplex &value) |
template<typename T > | |
void | write_value (std::ostream &os, const T &value) |
template void | write_value< bool > (std::ostream &os, const bool &value) |
template void | write_value< octave_int16 > (std::ostream &os, const octave_int16 &value) |
template void | write_value< octave_int32 > (std::ostream &os, const octave_int32 &value) |
template void | write_value< octave_int64 > (std::ostream &os, const octave_int64 &value) |
template void | write_value< octave_int8 > (std::ostream &os, const octave_int8 &value) |
template void | write_value< octave_uint16 > (std::ostream &os, const octave_uint16 &value) |
template void | write_value< octave_uint32 > (std::ostream &os, const octave_uint32 &value) |
template void | write_value< octave_uint64 > (std::ostream &os, const octave_uint64 &value) |
template void | write_value< octave_uint8 > (std::ostream &os, const octave_uint8 &value) |
std::string fgetl | ( | FILE * | f | ) |
std::string fgetl | ( | FILE * | f, |
bool & | eof | ||
) |
Definition at line 179 of file lo-utils.cc.
std::string fgets | ( | FILE * | f | ) |
Definition at line 90 of file lo-utils.cc.
Referenced by fgetl(), fgets(), and load_path::read_dir_config().
std::string fgets | ( | FILE * | f, |
bool & | eof | ||
) |
Definition at line 495 of file lo-utils.cc.
References octave_i_multiply_overflow_wrapper().
Definition at line 501 of file lo-utils.cc.
References octave_li_multiply_overflow_wrapper().
Definition at line 515 of file lo-utils.cc.
References octave_ui_multiply_overflow_wrapper().
Definition at line 521 of file lo-utils.cc.
References octave_uli_multiply_overflow_wrapper().
Definition at line 50 of file lo-utils.cc.
References x.
Definition at line 70 of file lo-utils.cc.
References x.
std::complex< T > read_cx_fp_value | ( | std::istream & | is | ) |
Definition at line 346 of file lo-utils.cc.
double read_fp_value | ( | std::istream & | is | ) |
Definition at line 271 of file lo-utils.cc.
T read_inf_nan_na | ( | std::istream & | is, |
char | c0 | ||
) |
Definition at line 213 of file lo-utils.cc.
T read_value | ( | std::istream & | is | ) |
Definition at line 191 of file lo-utils.cc.
double read_value | ( | std::istream & | is | ) |
Definition at line 390 of file lo-utils.cc.
Complex read_value | ( | std::istream & | is | ) |
Definition at line 395 of file lo-utils.cc.
float read_value | ( | std::istream & | is | ) |
Definition at line 400 of file lo-utils.cc.
FloatComplex read_value | ( | std::istream & | is | ) |
Definition at line 405 of file lo-utils.cc.
template bool read_value< bool > | ( | std::istream & | is | ) |
template octave_int16 read_value< octave_int16 > | ( | std::istream & | is | ) |
template octave_int32 read_value< octave_int32 > | ( | std::istream & | is | ) |
template octave_int64 read_value< octave_int64 > | ( | std::istream & | is | ) |
template octave_int8 read_value< octave_int8 > | ( | std::istream & | is | ) |
template octave_uint16 read_value< octave_uint16 > | ( | std::istream & | is | ) |
template octave_uint32 read_value< octave_uint32 > | ( | std::istream & | is | ) |
template octave_uint64 read_value< octave_uint64 > | ( | std::istream & | is | ) |
template octave_uint8 read_value< octave_uint8 > | ( | std::istream & | is | ) |
char * strsave | ( | const char * | s | ) |
Definition at line 78 of file lo-utils.cc.
Referenced by time::time(), keyword_almost_match(), and base_tm::strftime().
Definition at line 63 of file lo-utils.cc.
References too_large_for_float(), and x.
Definition at line 56 of file lo-utils.cc.
References x.
Referenced by save_mat5_array_length(), and too_large_for_float().
void write_value | ( | std::ostream & | os, |
const Complex & | value | ||
) |
Definition at line 455 of file lo-utils.cc.
void write_value | ( | std::ostream & | os, |
const double & | value | ||
) |
Definition at line 441 of file lo-utils.cc.
References lo_ieee_is_NA.
void write_value | ( | std::ostream & | os, |
const float & | value | ||
) |
Definition at line 469 of file lo-utils.cc.
References lo_ieee_is_NA.
void write_value | ( | std::ostream & | os, |
const FloatComplex & | value | ||
) |
Definition at line 483 of file lo-utils.cc.
void write_value | ( | std::ostream & | os, |
const T & | value | ||
) |
Definition at line 412 of file lo-utils.cc.
template void write_value< bool > | ( | std::ostream & | os, |
const bool & | value | ||
) |
template void write_value< octave_int16 > | ( | std::ostream & | os, |
const octave_int16 & | value | ||
) |
template void write_value< octave_int32 > | ( | std::ostream & | os, |
const octave_int32 & | value | ||
) |
template void write_value< octave_int64 > | ( | std::ostream & | os, |
const octave_int64 & | value | ||
) |
template void write_value< octave_int8 > | ( | std::ostream & | os, |
const octave_int8 & | value | ||
) |
template void write_value< octave_uint16 > | ( | std::ostream & | os, |
const octave_uint16 & | value | ||
) |
template void write_value< octave_uint32 > | ( | std::ostream & | os, |
const octave_uint32 & | value | ||
) |
template void write_value< octave_uint64 > | ( | std::ostream & | os, |
const octave_uint64 & | value | ||
) |
template void write_value< octave_uint8 > | ( | std::ostream & | os, |
const octave_uint8 & | value | ||
) |