#include "octave-config.h"
#include <cstdarg>
#include <iosfwd>
#include <string>
#include <list>
#include "dMatrix.h"
#include "lo-utils.h"
Go to the source code of this file.
Classes | |
class | make_valid_name_options |
Helper class for make_valid_name function calls. More... | |
Functions | |
int | almost_match (const std::string &std, const std::string &s, int min_match_len=1, int case_sens=1) |
std::string | asprintf (const char *fmt,...) |
void | check_dimensions (dim_vector &dim, const char *warnfor) |
std::string | contents_file_in_path (const std::string &) |
octave_idx_type | dims_to_numel (const dim_vector &dims, const octave_value_list &idx) |
octave_value | do_simple_cellfun (octave_value_list(*fcn)(const octave_value_list &, int), const char *fcn_name, const octave_value_list &args) |
octave_value_list | do_simple_cellfun (octave_value_list(*fcn)(const octave_value_list &, int), const char *fcn_name, const octave_value_list &args, int nargout) |
std::string | do_string_escapes (const std::string &s) |
std::string | fcn_file_in_path (const std::string &) |
std::string | file_in_path (const std::string &, const std::string &) |
std::string | find_data_file_in_load_path (const std::string &fcn, const std::string &file, bool require_regular_file=false) |
FloatMatrix | float_identity_matrix (octave_idx_type nr, octave_idx_type nc) |
std::size_t | format (std::ostream &os, const char *fmt,...) |
void | get_dimensions (const octave_value &a, const char *warn_for, dim_vector &dim) |
void | get_dimensions (const octave_value &a, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
void | get_dimensions (const octave_value &a, const octave_value &b, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
Matrix | identity_matrix (octave_idx_type nr, octave_idx_type nc) |
int | keyword_almost_match (const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks) |
bool | make_valid_name (std::string &str, const make_valid_name_options &options) |
Modify str to be a valid variable name. More... | |
bool | same_file (const std::string &f, const std::string &g) |
string_vector | search_path_for_all_files (const std::string &, const string_vector &) |
std::string | search_path_for_file (const std::string &, const string_vector &) |
void | sleep (double seconds, bool do_graphics_events=false) |
const char * | undo_string_escape (char c) |
std::string | undo_string_escapes (const std::string &s) |
bool | valid_identifier (const char *s) |
bool | valid_identifier (const std::string &s) |
std::string | vasprintf (const char *fmt, va_list args) |
std::size_t | vformat (std::ostream &os, const char *fmt, va_list args) |
int almost_match | ( | const std::string & | std, |
const std::string & | s, | ||
int | min_match_len = 1 , |
||
int | case_sens = 1 |
||
) |
std::string asprintf | ( | const char * | fmt, |
... | |||
) |
void check_dimensions | ( | dim_vector & | dim, |
const char * | warnfor | ||
) |
Referenced by Fcell(), and octave::get_dimensions().
std::string contents_file_in_path | ( | const std::string & | ) |
octave_idx_type dims_to_numel | ( | const dim_vector & | dims, |
const octave_value_list & | idx | ||
) |
Referenced by Fnumel().
octave_value do_simple_cellfun | ( | octave_value_list(*)(const octave_value_list &, int) | fcn, |
const char * | fcn_name, | ||
const octave_value_list & | args | ||
) |
octave_value_list do_simple_cellfun | ( | octave_value_list(*)(const octave_value_list &, int) | fcn, |
const char * | fcn_name, | ||
const octave_value_list & | args, | ||
int | nargout | ||
) |
std::string do_string_escapes | ( | const std::string & | s | ) |
Referenced by octave::Fdo_string_escapes(), stream::oscanf(), stream::printf(), and stream::scanf().
std::string fcn_file_in_path | ( | const std::string & | ) |
Referenced by tree_evaluator::echo(), and octave::get_help_from_file().
std::string file_in_path | ( | const std::string & | , |
const std::string & | |||
) |
std::string find_data_file_in_load_path | ( | const std::string & | fcn, |
const std::string & | file, | ||
bool | require_regular_file = false |
||
) |
FloatMatrix float_identity_matrix | ( | octave_idx_type | nr, |
octave_idx_type | nc | ||
) |
std::size_t format | ( | std::ostream & | os, |
const char * | fmt, | ||
... | |||
) |
void get_dimensions | ( | const octave_value & | a, |
const char * | warn_for, | ||
dim_vector & | dim | ||
) |
void get_dimensions | ( | const octave_value & | a, |
const char * | warn_for, | ||
octave_idx_type & | nr, | ||
octave_idx_type & | nc | ||
) |
void get_dimensions | ( | const octave_value & | a, |
const octave_value & | b, | ||
const char * | warn_for, | ||
octave_idx_type & | nr, | ||
octave_idx_type & | nc | ||
) |
Matrix identity_matrix | ( | octave_idx_type | nr, |
octave_idx_type | nc | ||
) |
int keyword_almost_match | ( | const char *const * | std, |
int * | min_len, | ||
const std::string & | s, | ||
int | min_toks_to_match, | ||
int | max_toks | ||
) |
bool make_valid_name | ( | std::string & | str, |
const make_valid_name_options & | options | ||
) |
Modify str
to be a valid variable name.
str | input string |
options | see also help matlab.lang.makeValidName . |
str
was modified. Referenced by octave::F__make_valid_name__().
bool same_file | ( | const std::string & | f, |
const std::string & | g | ||
) |
Definition at line 437 of file lo-sysdep.cc.
References u8_to_wstring().
Referenced by load_path::contains_canonical(), load_path::contains_file_in_dir(), load_path::remove(), and octave::sys::rename().
string_vector search_path_for_all_files | ( | const std::string & | , |
const string_vector & | |||
) |
std::string search_path_for_file | ( | const std::string & | , |
const string_vector & | |||
) |
Referenced by octave::Ffile_in_path().
void sleep | ( | double | seconds, |
bool | do_graphics_events = false |
||
) |
Referenced by tree_evaluator::server_loop().
const char* undo_string_escape | ( | char | c | ) |
Referenced by octave::undo_string_escapes().
std::string undo_string_escapes | ( | const std::string & | s | ) |
Referenced by octave::Fundo_string_escapes(), and base_parser::make_constant().
bool valid_identifier | ( | const char * | s | ) |
bool valid_identifier | ( | const std::string & | s | ) |
std::string vasprintf | ( | const char * | fmt, |
va_list | args | ||
) |
Referenced by octave::asprintf(), octave_vasprintf_wrapper(), and octave::vformat().
std::size_t vformat | ( | std::ostream & | os, |
const char * | fmt, | ||
va_list | args | ||
) |
Referenced by octave::format().