GNU Octave  4.4.1
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 <iostream>
#include <sstream>
#include <string>
#include "cmd-edit.h"
#include "file-ops.h"
#include "quit.h"
#include "str-vec.h"
#include "bp-table.h"
#include "builtin-defun-decls.h"
#include "call-stack.h"
#include "defun.h"
#include "dirfns.h"
#include "error.h"
#include "errwarn.h"
#include "help.h"
#include "hook-fcn.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "lex.h"
#include "load-path.h"
#include "octave.h"
#include "octave-link.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.

Classes

class  octave::eval_string_reader
 
class  octave::file_reader
 
class  octave::terminal_reader
 

Namespaces

 octave
 

Functions

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)
 
FILE * get_input_from_stdin (void)
 
static std::string gnu_readline (const std::string &s, bool &eof)
 
void initialize_command_input (void)
 
static std::string interactive_input (const std::string &s, bool &eof)
 
static bool is_completing_dirfns (void)
 
static std::string quoting_filename (const std::string &text, int, char quote)
 
void remove_input_event_hook_functions (void)
 
void set_default_prompts (void)
 

Variables

static hook_function_list input_event_hook_functions
 
static std::string last_debugging_command = "\n"
 
bool octave_completion_matches_called = false
 
static char Vcompletion_append_char = ' '
 
bool Vdebugging = false
 
bool Vdrawnow_requested = false
 
static bool Vgud_mode = false
 
octave::sys::time Vlast_prompt_time = 0.0
 
static std::string VPS1
 
static std::string VPS2
 
bool Vtrack_line_num = true
 

Function Documentation

◆ find_indexed_expression()

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

Definition at line 537 of file input.cc.

References octave::command_editor::get_line_buffer(), and string.

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

◆ get_input_from_stdin()

FILE* get_input_from_stdin ( void  )

◆ gnu_readline()

static std::string gnu_readline ( const std::string s,
bool eof 
)
static

◆ initialize_command_input()

◆ interactive_input()

◆ is_completing_dirfns()

static bool is_completing_dirfns ( void  )
static

Definition at line 401 of file input.cc.

References octave::command_editor::get_line_buffer(), i, retval, and string.

Referenced by generate_completion().

◆ quoting_filename()

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

Definition at line 524 of file input.cc.

References text.

Referenced by initialize_command_input().

◆ remove_input_event_hook_functions()

void remove_input_event_hook_functions ( void  )

Definition at line 115 of file input.cc.

References hook_function_list::clear(), and input_event_hook_functions.

◆ set_default_prompts()

void set_default_prompts ( void  )

Definition at line 121 of file input.cc.

References octave_link::set_default_prompts(), string, VPS1, and VPS2.

Variable Documentation

◆ input_event_hook_functions

hook_function_list input_event_hook_functions
static

Definition at line 111 of file input.cc.

Referenced by remove_input_event_hook_functions().

◆ last_debugging_command

std::string last_debugging_command = "\n"
static

Definition at line 106 of file input.cc.

Referenced by octave::base_reader::octave_gets().

◆ octave_completion_matches_called

bool octave_completion_matches_called = false

Definition at line 90 of file input.cc.

◆ Vcompletion_append_char

char Vcompletion_append_char = ' '
static

Definition at line 87 of file input.cc.

Referenced by generate_completion().

◆ Vdebugging

◆ Vdrawnow_requested

◆ Vgud_mode

bool Vgud_mode = false
static

Definition at line 109 of file input.cc.

◆ Vlast_prompt_time

octave::sys::time Vlast_prompt_time = 0.0

Definition at line 84 of file input.cc.

Referenced by interactive_input(), octave::out_of_date_check(), and rehash_internal().

◆ VPS1

std::string VPS1
static

Definition at line 78 of file input.cc.

Referenced by octave::base_reader::octave_gets(), and set_default_prompts().

◆ VPS2

std::string VPS2
static

Definition at line 81 of file input.cc.

Referenced by octave::base_reader::octave_gets(), and set_default_prompts().

◆ Vtrack_line_num

bool Vtrack_line_num = true