#include "str-vec.h"
Public Member Functions | |
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 (void)=default | |
~string_vector (void)=default | |
string_vector & | append (const std::string &s) |
string_vector & | append (const string_vector &sv) |
char ** | c_str_vec (void) const |
std::string & | elem (octave_idx_type i) |
std::string | elem (octave_idx_type i) const |
bool | empty (void) const |
bool | isempty (void) 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 (void) const |
octave_idx_type | numel (void) 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 (void) const |
string_vector & | uniq (void) |
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 *) |
Private Attributes | |
Array< std::string > | m_data |
|
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::string_array_property(), octave::regexp::compile_internal(), convert_linestyleorder_string(), convert_ticklabel_string(), string_array_property::do_set(), F__ftp_mput__(), F__methods__(), octave::base_url_transfer::mput_directory(), and octave::load_save_system::parse_save_options().
string_vector & string_vector::append | ( | const string_vector & | sv | ) |
char ** string_vector::c_str_vec | ( | void | ) | const |
Definition at line 157 of file str-vec.cc.
References elem(), len, numel(), retval, and strsave().
Referenced by octave::sys::execvp(), and octave::sys::popen2().
|
static |
Definition at line 185 of file str-vec.cc.
Referenced by octave::base_qobject::~base_qobject(), octave::sys::execvp(), and octave::sys::popen2().
|
inline |
Definition at line 104 of file str-vec.h.
Referenced by string_vector(), append(), c_str_vec(), join(), list_in_columns(), std_list(), and uniq().
|
inline |
|
inline |
Definition at line 77 of file str-vec.h.
References numel().
Referenced by octave::symbol_info_accumulator::append_list(), octave::symbol_cleaner::clean_frame(), octave::load_path::display(), Ffile_in_loadpath(), Ffile_in_path(), octave::application::init(), text_label_property::string_value(), octave::tilde_find_prefix(), and octave::tilde_find_suffix().
|
inline |
Definition at line 102 of file str-vec.h.
Referenced by 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, numel(), and retval.
Referenced by text::properties::update_text_extent().
|
inline |
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(), numel(), and octave::command_editor::terminal_cols().
Referenced by octave::load_path::display(), octave::call_stack::do_global_who_two(), Flist_in_columns(), Fpath(), octave::load_save_system::load_vars(), validate_property_name(), and octave::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.
References elem, n, and numel().
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::interpreter::interpreter(), octave_fields::octave_fields(), octave::load_path::package_info::add_to_fcn_map(), append(), c_str_vec(), octave::symbol_cleaner::clear_symbols(), octave::call_stack::do_global_who_two(), octave::history_system::do_history(), string_array_property::do_set(), do_strcmp_fun(), octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), octave::interpreter::execute_command_line_file(), extract_keyword(), F__ftp_dir__(), F__ftp_mget__(), F__ftp_mput__(), F__magick_finfo__(), F__restful_service__(), Fchar(), Fexec(), octave::symbol_info_accumulator::filter(), octave::load_path::find_all_first_of(), octave::load_path::find_file(), octave::load_path::find_first_of(), octave::sys::fnmatch(), Fpopen2(), QtHandles::Utils::fromStringVector(), Fstrvcat(), octave::genpath(), octave::load_path::dir_info::get_file_list(), QtHandles::qt_graphics_toolkit::get_text_extent(), octave::sys::glob(), octave::application::intern_argv(), octave::regexp::is_match(), join(), list_in_columns(), octave::make_absolute(), glob_match::match(), octave::base_url_transfer::mget_directory(), octave::mk_tmp_hist_file(), octave::load_path::package_info::move_fcn_map(), octave::base_url_transfer::mput_directory(), octregexp(), octave::load_save_system::parse_save_options(), octave::load_path::path(), octave_struct::print_raw(), octave_scalar_struct::print_raw(), octave::sys::recursive_rmdir(), octave::load_path::package_info::remove_fcn_map(), octave::opengl_renderer::render_ticktexts(), octave::load_save_system::save(), octave::search_path_for_all_files(), sort(), std_list(), string_array_property::string_value(), octave_cell::string_vector_value(), octave::sys::file_ops::tilde_expand(), octave::tilde_find_prefix(), octave::tilde_find_suffix(), uniq(), octave::file_editor_tab::update_lexer_settings(), octave::tree_evaluator::visit_complex_for_command(), octave::sys::windows_glob(), and octave::xzip().
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file str-vec.h.
References n.
Referenced by octave::cmdline_options::cmdline_options(), octave::sys::group::group(), string_vector(), text_label_property::text_label_property(), append(), text_label_property::do_set(), octave::call_stack::do_who(), Fexec(), octave::load_path::find_all_first_of(), octave::load_path::find_first_of(), Fiskeyword(), Fpopen2(), octave::application::intern_argv(), octave_value_list::make_argv(), and uniq().
string_vector & string_vector::sort | ( | bool | make_uniq = false | ) |
Definition at line 77 of file str-vec.cc.
References Array< T >::fortran_vec(), m_data, numel(), octave_sort< T >::sort(), and uniq().
Referenced by Fiskeyword(), Freaddir(), octave::genpath(), and octave::cdef_class::cdef_class_rep::get_names().
std::list< std::string > string_vector::std_list | ( | void | ) | const |
Definition at line 172 of file str-vec.cc.
References elem(), len, numel(), and retval.
Referenced by octave::search_path_for_all_files(), and octave::search_path_for_file().
string_vector & string_vector::uniq | ( | void | ) |
|
inline |
|
inline |
|
private |