GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-oct-text.cc File Reference
#include <cstring>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <istream>
#include <ostream>
#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 "errwarn.h"
#include "interpreter.h"
#include "interpreter-private.h"
#include "load-save.h"
#include "ls-ascii-helper.h"
#include "ls-oct-text.h"
#include "ovl.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "dMatrix.h"
Include dependency graph for ls-oct-text.cc:

Go to the source code of this file.

Macros

#define SUBSTRING_COMPARE_EQ(s, pos, n, t)   (s.substr (pos, n) == (t))
 

Functions

std::string extract_keyword (std::istream &is, const char *keyword, const bool next_only)
 
OCTAVE_EXPORT octave_value_list Fsave_precision (const octave_value_list &args, int nargout)
 
static octave_value load_inline_fcn (std::istream &is, const std::string &filename)
 
std::string read_text_data (std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count, const bool do_name_validation)
 
bool save_text_data (std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_global, int precision)
 
bool save_text_data_for_plotting (std::ostream &os, const octave_value &t, const std::string &name)
 
bool save_three_d (std::ostream &os, const octave_value &tc, bool parametric)
 

Variables

static int Vsave_precision = 17
 

Macro Definition Documentation

◆ SUBSTRING_COMPARE_EQ

#define SUBSTRING_COMPARE_EQ (   s,
  pos,
  n,
 
)    (s.substr (pos, n) == (t))

Definition at line 237 of file ls-oct-text.cc.

Function Documentation

◆ extract_keyword()

◆ Fsave_precision()

OCTAVE_EXPORT octave_value_list Fsave_precision ( const octave_value_list args,
int  nargout 
)

Definition at line 479 of file ls-oct-text.cc.

References max(), and SET_INTERNAL_VARIABLE_WITH_LIMITS.

◆ load_inline_fcn()

static octave_value load_inline_fcn ( std::istream &  is,
const std::string &  filename 
)
static

◆ read_text_data()

◆ save_text_data()

◆ save_text_data_for_plotting()

bool save_text_data_for_plotting ( std::ostream &  os,
const octave_value t,
const std::string &  name 
)

Definition at line 397 of file ls-oct-text.cc.

References name, and save_text_data().

◆ save_three_d()

bool save_three_d ( std::ostream &  os,
const octave_value tc,
bool  parametric 
)

Variable Documentation

◆ Vsave_precision

int Vsave_precision = 17
static

Definition at line 72 of file ls-oct-text.cc.

Referenced by save_text_data().