GNU Octave  4.0.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
ls-mat-ascii.cc File Reference
#include <cfloat>
#include <cstring>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "data-conv.h"
#include "file-ops.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-time.h"
#include "quit.h"
#include "str-vec.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "lex.h"
#include "load-save.h"
#include "ls-ascii-helper.h"
#include "ls-mat-ascii.h"
#include "oct-obj.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "pt-exp.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "dMatrix.h"
Include dependency graph for ls-mat-ascii.cc:

Go to the source code of this file.

Functions

static void get_lines_and_columns (std::istream &is, octave_idx_type &nr, octave_idx_type &nc, const std::string &filename=std::string(), bool quiet=false, bool check_numeric=false)
 
static std::string get_mat_data_input_line (std::istream &is)
 
bool looks_like_mat_ascii_file (std::istream &is, const std::string &filename)
 
std::string read_mat_ascii_data (std::istream &is, const std::string &filename, octave_value &tc)
 
bool save_mat_ascii_data (std::ostream &os, const octave_value &val, int precision, bool tabs)
 

Function Documentation

static void get_lines_and_columns ( std::istream &  is,
octave_idx_type nr,
octave_idx_type nc,
const std::string &  filename = std::string (),
bool  quiet = false,
bool  check_numeric = false 
)
static
static std::string get_mat_data_input_line ( std::istream &  is)
static

Definition at line 69 of file ls-mat-ascii.cc.

References skip_preceeding_newline(), and skip_until_newline().

Referenced by get_lines_and_columns(), and read_mat_ascii_data().

bool looks_like_mat_ascii_file ( std::istream &  is,
const std::string &  filename 
)

Definition at line 414 of file ls-mat-ascii.cc.

References get_lines_and_columns().

Referenced by get_file_format().

std::string read_mat_ascii_data ( std::istream &  is,
const std::string &  filename,
octave_value tc 
)
bool save_mat_ascii_data ( std::ostream &  os,
const octave_value val,
int  precision,
bool  tabs 
)