Navigation

Operators and Keywords

Function List:

C++ API

utils.h File Reference

#include <cstdarg>
#include <iosfwd>
#include <string>
#include "dMatrix.h"
#include "lo-utils.h"

Include dependency graph for utils.h:

Go to the source code of this file.


Defines

#define octave_utils_h   1

Functions

OCTINTERP_API bool valid_identifier (const char *s)
OCTINTERP_API bool valid_identifier (const std::string &s)
OCTINTERP_API bool same_file (const std::string &f, const std::string &g)
OCTINTERP_API int almost_match (const std::string &std, const std::string &s, int min_match_len=1, int case_sens=1)
OCTINTERP_API int keyword_almost_match (const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks)
OCTINTERP_API int empty_arg (const char *name, octave_idx_type nr, octave_idx_type nc)
OCTINTERP_API std::string search_path_for_file (const std::string &, const string_vector &)
OCTINTERP_API string_vector search_path_for_all_files (const std::string &, const string_vector &)
OCTINTERP_API std::string file_in_path (const std::string &, const std::string &)
OCTINTERP_API std::string contents_file_in_path (const std::string &)
OCTINTERP_API std::string fcn_file_in_path (const std::string &)
OCTINTERP_API std::string oct_file_in_path (const std::string &)
OCTINTERP_API std::string mex_file_in_path (const std::string &)
OCTINTERP_API std::string do_string_escapes (const std::string &s)
OCTINTERP_API const char * undo_string_escape (char c)
OCTINTERP_API std::string undo_string_escapes (const std::string &s)
OCTINTERP_API void check_dimensions (dim_vector &dim, const char *warnfor)
OCTINTERP_API void get_dimensions (const octave_value &a, const char *warn_for, dim_vector &dim)
OCTINTERP_API void get_dimensions (const octave_value &a, const octave_value &b, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc)
OCTINTERP_API void get_dimensions (const octave_value &a, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc)
OCTINTERP_API octave_idx_type dims_to_numel (const dim_vector &dims, const octave_value_list &idx)
OCTINTERP_API Matrix identity_matrix (octave_idx_type nr, octave_idx_type nc)
OCTINTERP_API FloatMatrix float_identity_matrix (octave_idx_type nr, octave_idx_type nc)
OCTINTERP_API int octave_format (std::ostream &os, const char *fmt,...)
OCTINTERP_API int octave_vformat (std::ostream &os, const char *fmt, va_list args)
OCTINTERP_API char * octave_vsnprintf (const char *fmt, va_list args)
OCTINTERP_API char * octave_snprintf (const char *fmt,...)
OCTINTERP_API void octave_sleep (double seconds)
OCTINTERP_API void octave_sleep (unsigned int seconds)
OCTINTERP_API void octave_usleep (unsigned int useconds)
OCTINTERP_API int octave_raw_vsnprintf (char *buf, size_t n, const char *fmt, va_list args)

Define Documentation

#define octave_utils_h   1


Function Documentation

OCTINTERP_API int almost_match ( const std::string std,
const std::string s,
int  min_match_len = 1,
int  case_sens = 1 
)

OCTINTERP_API void check_dimensions ( dim_vector dim,
const char *  warnfor 
)

OCTINTERP_API std::string contents_file_in_path ( const std::string  ) 

OCTINTERP_API octave_idx_type dims_to_numel ( const dim_vector dims,
const octave_value_list idx 
)

OCTINTERP_API std::string do_string_escapes ( const std::string s  ) 

OCTINTERP_API int empty_arg ( const char *  name,
octave_idx_type  nr,
octave_idx_type  nc 
)

OCTINTERP_API std::string fcn_file_in_path ( const std::string  ) 

OCTINTERP_API std::string file_in_path ( const std::string ,
const std::string  
)

OCTINTERP_API FloatMatrix float_identity_matrix ( octave_idx_type  nr,
octave_idx_type  nc 
)

OCTINTERP_API void get_dimensions ( const octave_value a,
const char *  warn_for,
octave_idx_type nr,
octave_idx_type nc 
)

OCTINTERP_API void get_dimensions ( const octave_value a,
const octave_value b,
const char *  warn_for,
octave_idx_type nr,
octave_idx_type nc 
)

OCTINTERP_API void get_dimensions ( const octave_value a,
const char *  warn_for,
dim_vector dim 
)

OCTINTERP_API Matrix identity_matrix ( octave_idx_type  nr,
octave_idx_type  nc 
)

OCTINTERP_API int keyword_almost_match ( const char *const std,
int min_len,
const std::string s,
int  min_toks_to_match,
int  max_toks 
)

OCTINTERP_API std::string mex_file_in_path ( const std::string  ) 

OCTINTERP_API std::string oct_file_in_path ( const std::string  ) 

OCTINTERP_API int octave_format ( std::ostream os,
const char *  fmt,
  ... 
)

OCTINTERP_API int octave_raw_vsnprintf ( char *  buf,
size_t  n,
const char *  fmt,
va_list  args 
)

OCTINTERP_API void octave_sleep ( unsigned int  seconds  ) 

OCTINTERP_API void octave_sleep ( double  seconds  ) 

OCTINTERP_API char* octave_snprintf ( const char *  fmt,
  ... 
)

OCTINTERP_API void octave_usleep ( unsigned int  useconds  ) 

OCTINTERP_API int octave_vformat ( std::ostream os,
const char *  fmt,
va_list  args 
)

OCTINTERP_API char* octave_vsnprintf ( const char *  fmt,
va_list  args 
)

OCTINTERP_API bool same_file ( const std::string f,
const std::string g 
)

OCTINTERP_API string_vector search_path_for_all_files ( const std::string ,
const string_vector  
)

OCTINTERP_API std::string search_path_for_file ( const std::string ,
const string_vector  
)

OCTINTERP_API const char* undo_string_escape ( char  c  ) 

OCTINTERP_API std::string undo_string_escapes ( const std::string s  ) 

OCTINTERP_API bool valid_identifier ( const std::string s  ) 

OCTINTERP_API bool valid_identifier ( const char *  s  )