GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
input.cc File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <algorithm>
#include <iostream>
#include <queue>
#include <sstream>
#include <string>
#include "cmd-edit.h"
#include "file-ops.h"
#include "iconv-wrappers.h"
#include "localcharset-wrapper.h"
#include "oct-env.h"
#include "oct-string.h"
#include "quit.h"
#include "str-vec.h"
#include "uniconv-wrappers.h"
#include "builtin-defun-decls.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "event-manager.h"
#include "help.h"
#include "hook-fcn.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "octave.h"
#include "oct-map.h"
#include "oct-hist.h"
#include "ovl.h"
#include "ov-fcn-handle.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "pt-eval.h"
#include "pt-stmt.h"
#include "sighandlers.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for input.cc:

Go to the source code of this file.

Functions

static std::string find_indexed_expression (const std::string &text)
 
static std::string generate_completion (const std::string &text, int state)
 
static string_vector generate_possible_completions (const std::string &text, std::string &prefix, std::string &hint, bool &deemed_struct)
 
static string_vector generate_struct_completions (const std::string &text, std::string &prefix, std::string &hint)
 
static int internal_input_event_hook_fcn (void)
 
static bool is_completing_dirfns (void)
 
static bool looks_like_struct (const std::string &text, char prev_char)
 
static std::string quoting_filename (const std::string &text, int, char quote)
 

Variables

bool octave_completion_matches_called = false
 
bool Vdrawnow_requested = false
 
octave::sys::time Vlast_prompt_time = 0.0
 

Function Documentation

◆ find_indexed_expression()

static std::string find_indexed_expression ( const std::string &  text)
static

Definition at line 109 of file input.cc.

References command_editor::get_line_buffer().

Referenced by generate_struct_completions().

◆ generate_completion()

◆ generate_possible_completions()

static string_vector generate_possible_completions ( const std::string &  text,
std::string &  prefix,
std::string &  hint,
bool &  deemed_struct 
)
static

◆ generate_struct_completions()

◆ internal_input_event_hook_fcn()

static int internal_input_event_hook_fcn ( void  )
static

Definition at line 389 of file input.cc.

References __get_input_system__(), and input_system::run_input_event_hooks().

Referenced by input_system::initialize().

◆ is_completing_dirfns()

static bool is_completing_dirfns ( void  )
static

Definition at line 262 of file input.cc.

References command_editor::get_line_buffer().

Referenced by generate_completion().

◆ looks_like_struct()

static bool looks_like_struct ( const std::string &  text,
char  prev_char 
)
static

Definition at line 225 of file input.cc.

References dir_sep_chars.

Referenced by generate_completion(), and generate_possible_completions().

◆ quoting_filename()

static std::string quoting_filename ( const std::string &  text,
int  ,
char  quote 
)
static

Definition at line 96 of file input.cc.

Referenced by input_system::initialize().

Variable Documentation

◆ octave_completion_matches_called

bool octave_completion_matches_called = false

Definition at line 87 of file input.cc.

Referenced by tree_evaluator::eval(), and debugger::repl().

◆ Vdrawnow_requested

bool Vdrawnow_requested = false

◆ Vlast_prompt_time

octave::sys::time Vlast_prompt_time = 0.0