GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
str2double.cc File Reference
#include <string>
#include <cctype>
#include <sstream>
#include <algorithm>
#include "lo-ieee.h"
#include "Cell.h"
#include "ov.h"
#include "defun.h"
#include "gripes.h"
#include "utils.h"
Include dependency graph for str2double.cc:

Go to the source code of this file.

Functions

static std::istringstream & extract_num (std::istringstream &is, double &num, bool &imag, bool &have_sign)
OCTAVE_EXPORT octave_value_list Fstr2double (const octave_value_list &args, int)
static bool is_imag_unit (int c)
static void set_component (Complex &c, double num, bool imag)
static double single_num (std::istringstream &is)
static Complex str2double1 (const std::string &str_arg)

Function Documentation

static std::istringstream& extract_num ( std::istringstream &  is,
double num,
bool imag,
bool have_sign 
)
static

Definition at line 101 of file str2double.cc.

References is_imag_unit(), and single_num().

Referenced by str2double1().

OCTAVE_EXPORT octave_value_list Fstr2double ( const octave_value_list args,
int   
)
static bool is_imag_unit ( int  c)
inlinestatic

Definition at line 42 of file str2double.cc.

Referenced by extract_num().

static void set_component ( Complex c,
double  num,
bool  imag 
)
inlinestatic

Definition at line 241 of file str2double.cc.

Referenced by str2double1().

static double single_num ( std::istringstream &  is)
static

Definition at line 46 of file str2double.cc.

References c1, octave_Inf, octave_NA, and octave_NaN.

Referenced by extract_num().

static Complex str2double1 ( const std::string &  str_arg)
static

Definition at line 262 of file str2double.cc.

References extract_num(), octave_NaN, and set_component().

Referenced by Fstr2double().