#include "str-vec.h"
Public Member Functions | |
string_vector ()=default | |
string_vector (const Array< std::string > &s) | |
string_vector (const char *const *s) | |
string_vector (const char *const *s, octave_idx_type n) | |
string_vector (const char *s) | |
string_vector (const std::string &s) | |
template<template< typename... > class String_Container, typename... Other> | |
string_vector (const String_Container< std::string, Other... > &lst) | |
Constructor for STL containers of std::string. More... | |
string_vector (const string_vector &)=default | |
string_vector (octave_idx_type n) | |
string_vector (string_vector &&)=default | |
~string_vector ()=default | |
string_vector & | append (const std::string &s) |
string_vector & | append (const string_vector &sv) |
char ** | c_str_vec () const |
std::string & | elem (octave_idx_type i) |
std::string | elem (octave_idx_type i) const |
bool | empty () const |
bool | isempty () const |
std::string | join (const std::string &sep="") const |
string_vector | linear_slice (octave_idx_type lo, octave_idx_type up) const |
std::ostream & | list_in_columns (std::ostream &, int width=0, const std::string &prefix="") const |
template<typename U , typename F > | |
Array< U > | map (F fcn) const |
octave_idx_type | max_length () const |
octave_idx_type | numel () const |
std::string & | operator() (octave_idx_type i) |
std::string | operator() (octave_idx_type i) const |
string_vector & | operator= (const string_vector &)=default |
string_vector & | operator= (string_vector &&)=default |
std::string & | operator[] (octave_idx_type i) |
std::string | operator[] (octave_idx_type i) const |
void | resize (octave_idx_type n, const std::string &rfv="") |
string_vector & | sort (bool make_uniq=false) |
std::list< std::string > | std_list () const |
string_vector & | uniq () |
std::string & | xelem (octave_idx_type i) |
std::string | xelem (octave_idx_type i) const |
Static Public Member Functions | |
static void | delete_c_str_vec (const char *const *) |
|
default |
|
inlineexplicit |
|
inline |
|
default |
|
default |
string_vector::string_vector | ( | const String_Container< std::string, Other... > & | lst | ) |
|
inline |
string_vector::string_vector | ( | const char *const * | s | ) |
Definition at line 47 of file str-vec.cc.
string_vector::string_vector | ( | const char *const * | s, |
octave_idx_type | n | ||
) |
Definition at line 69 of file str-vec.cc.
|
default |
string_vector & string_vector::append | ( | const std::string & | s | ) |
Definition at line 110 of file str-vec.cc.
References elem(), len, numel(), and resize().
Referenced by string_array_property::do_set(), octave::F__ftp_mput__(), base_url_transfer::mput_directory(), and load_save_system::parse_save_options().
string_vector & string_vector::append | ( | const string_vector & | sv | ) |
char ** string_vector::c_str_vec | ( | ) | const |
|
static |
Definition at line 185 of file str-vec.cc.
|
inline |
Definition at line 104 of file str-vec.h.
Referenced by string_vector(), append(), join(), list_in_columns(), std_list(), and uniq().
|
inline |
|
inline |
Definition at line 77 of file str-vec.h.
References numel().
Referenced by load_path::display(), F__methods__(), octave::Ffile_in_loadpath(), and octave::Ffile_in_path().
|
inline |
Definition at line 102 of file str-vec.h.
Referenced by tree_index_expression::evaluate_n(), F__fieldnames__(), and Fcellstr().
std::string string_vector::join | ( | const std::string & | sep = "" | ) | const |
Definition at line 137 of file str-vec.cc.
References elem(), len, and numel().
Referenced by text::properties::update_text_extent().
|
inline |
Definition at line 140 of file str-vec.h.
Referenced by octave_value_list::slice().
std::ostream & string_vector::list_in_columns | ( | std::ostream & | os, |
int | width = 0 , |
||
const std::string & | prefix = "" |
||
) | const |
Definition at line 201 of file str-vec.cc.
References elem(), and numel().
Referenced by load_path::display(), call_stack::do_global_who_two(), Flist_in_columns(), octave::Fpath(), and stack_frame::who().
|
inline |
Definition at line 145 of file str-vec.h.
Referenced by Fstr2double().
|
inline |
Definition at line 79 of file str-vec.h.
Referenced by Fchar(), Fstrvcat(), and octave_cell::string_vector_value().
|
inline |
Definition at line 100 of file str-vec.h.
Referenced by Cell::Cell(), octave_fields::octave_fields(), append(), c_str_vec(), call_stack::do_global_who_two(), string_array_property::do_set(), extract_keyword(), octave::F__ftp_dir__(), octave::F__ftp_mget__(), octave::F__ftp_mput__(), octave::F__restful_service__(), Fchar(), octave::Fexec(), load_path::files(), load_path::find_all_first_of(), load_path::find_first_of(), fnmatch(), Fperms(), octave::Fpopen2(), Fstrvcat(), octave::genpath(), glob(), application::intern_argv(), regexp::is_match(), join(), list_in_columns(), glob_match::match(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), load_save_system::parse_save_options(), load_path::path(), octave::sys::recursive_rmdir(), opengl_renderer::render_ticktexts(), load_save_system::save(), octave::search_path_for_all_files(), sort(), std_list(), octave_cell::string_vector_value(), octave::sys::file_ops::tilde_expand(), uniq(), tree_evaluator::visit_complex_for_command(), and windows_glob().
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file str-vec.h.
References n.
Referenced by string_vector(), append(), call_stack::do_who(), octave::Fexec(), octave::Fpopen2(), glob(), application::intern_argv(), octave_value_list::make_argv(), octave_char_matrix_str::string_vector_value(), uniq(), and windows_glob().
string_vector & string_vector::sort | ( | bool | make_uniq = false | ) |
Definition at line 77 of file str-vec.cc.
References Array< T, Alloc >::fortran_vec(), numel(), octave_sort< T >::sort(), and uniq().
Referenced by octave::Freaddir(), octave::genpath(), glob(), and windows_glob().
std::list< std::string > string_vector::std_list | ( | ) | const |
Definition at line 172 of file str-vec.cc.
References elem(), len, and numel().
Referenced by octave::search_path_for_all_files().
string_vector & string_vector::uniq | ( | ) |
|
inline |
Definition at line 108 of file str-vec.h.
Referenced by octave_fields::fieldnames(), and Cell::string_vector_value().
|
inline |