Functions

lo-utils.cc File Reference

#include <cctype>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cfloat>
#include <limits>
#include <string>
#include <sys/types.h>
#include <unistd.h>
#include "quit.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "lo-utils.h"
Include dependency graph for lo-utils.cc:

Go to the source code of this file.

Functions

std::string octave_fgetl (FILE *f)
std::string octave_fgetl (FILE *f, bool &eof)
std::string octave_fgets (FILE *f, bool &eof)
std::string octave_fgets (FILE *f)
void octave_putenv (const std::string &name, const std::string &value)
template<>
double octave_read_value (std::istream &is)
void octave_write_complex (std::ostream &os, const Complex &c)
void octave_write_double (std::ostream &os, double d)
void octave_write_float (std::ostream &os, float d)
void octave_write_float_complex (std::ostream &os, const FloatComplex &c)
static float read_float_inf_nan_na (std::istream &is, char c0, char sign= '+')
static double read_inf_nan_na (std::istream &is, char c0)
charstrsave (const char *s)
bool xis_int_or_inf_or_nan (double x)
bool xis_int_or_inf_or_nan (float x)
bool xis_one_or_zero (float x)
bool xis_one_or_zero (double x)
bool xis_zero (double x)
bool xis_zero (float x)
bool xtoo_large_for_float (double x)

Function Documentation

std::string octave_fgetl ( FILE *  f  ) 

Definition at line 179 of file lo-utils.cc.

Referenced by default_command_editor::do_readline().

std::string octave_fgetl ( FILE *  f,
bool eof 
)

Definition at line 186 of file lo-utils.cc.

References octave_fgets().

std::string octave_fgets ( FILE *  f,
bool eof 
)

Definition at line 112 of file lo-utils.cc.

std::string octave_fgets ( FILE *  f  ) 

Definition at line 105 of file lo-utils.cc.

Referenced by gnu_readline(), and octave_fgetl().

void octave_putenv ( const std::string &  name,
const std::string &  value 
)

Definition at line 89 of file lo-utils.cc.

References current_liboctave_error_handler.

Referenced by octave_env::putenv().

template<>
OCTAVE_API FloatComplex octave_read_value ( std::istream &  is  ) 

Definition at line 469 of file lo-utils.cc.

void octave_write_complex ( std::ostream &  os,
const Complex c 
)

Definition at line 524 of file lo-utils.cc.

References imag(), octave_write_double(), and real.

Referenced by operator<<(), and octave_complex::save_ascii().

void octave_write_double ( std::ostream &  os,
double  d 
)
void octave_write_float ( std::ostream &  os,
float  d 
)
void octave_write_float_complex ( std::ostream &  os,
const FloatComplex c 
)

Definition at line 547 of file lo-utils.cc.

References imag(), octave_write_float(), and real.

Referenced by octave_float_complex::save_ascii().

static float read_float_inf_nan_na ( std::istream &  is,
char  c0,
char  sign = '+' 
) [inline, static]

Definition at line 358 of file lo-utils.cc.

References octave_Float_Inf, octave_Float_NA, and octave_Float_NaN.

static double read_inf_nan_na ( std::istream &  is,
char  c0 
) [inline, static]

Definition at line 202 of file lo-utils.cc.

References c1, d, octave_Inf, octave_NA, and octave_NaN.

char* strsave ( const char s  ) 
bool xis_int_or_inf_or_nan ( double  x  ) 
bool xis_int_or_inf_or_nan ( float  x  ) 

Definition at line 59 of file lo-utils.cc.

References D_NINT(), and xisnan().

bool xis_one_or_zero ( float  x  ) 

Definition at line 62 of file lo-utils.cc.

bool xis_one_or_zero ( double  x  ) 
bool xis_zero ( double  x  ) 
bool xis_zero ( float  x  ) 

Definition at line 65 of file lo-utils.cc.

bool xtoo_large_for_float ( double  x  ) 

Definition at line 56 of file lo-utils.cc.

References xisinf(), and xisnan().

Referenced by NDArray::too_large_for_float(), and Matrix::too_large_for_float().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines