GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-mat-ascii.cc File Reference
#include <cctype>
#include <iomanip>
#include <istream>
#include <ostream>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "dMatrix.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 "Cell.h"
#include "defun.h"
#include "error.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "lex.h"
#include "load-save.h"
#include "ls-ascii-helper.h"
#include "ls-mat-ascii.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "ov.h"
#include "pager.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
#include "version.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="", 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

◆ get_lines_and_columns()

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

◆ get_mat_data_input_line()

static std::string get_mat_data_input_line ( std::istream &  is)
static

◆ looks_like_mat_ascii_file()

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

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

References get_lines_and_columns(), and retval.

Referenced by octave::load_save_system::get_file_format().

◆ read_mat_ascii_data()

std::string read_mat_ascii_data ( std::istream &  is,
const std::string &  filename,
octave_value tc 
)

◆ save_mat_ascii_data()

bool save_mat_ascii_data ( std::ostream &  os,
const octave_value val,
int  precision,
bool  tabs 
)