V8 Project
|
Public Member Functions | |
ReadLineEditor () | |
virtual Handle< String > | Prompt (const char *prompt) |
virtual bool | Open (Isolate *isolate) |
virtual bool | Close () |
virtual void | AddHistory (const char *str) |
![]() | |
LineEditor (Type type, const char *name) | |
virtual | ~LineEditor () |
const char * | name () |
Static Public Attributes | |
static const char * | kHistoryFileName = ".d8_history" |
static const int | kMaxHistoryEntries = 1000 |
Static Private Member Functions | |
static char ** | AttemptedCompletion (const char *text, int start, int end) |
static char * | CompletionGenerator (const char *text, int state) |
Private Attributes | |
Isolate * | isolate_ |
Static Private Attributes | |
static char | kWordBreakCharacters [] |
Additional Inherited Members | |
![]() | |
enum | Type { DUMB = 0 , READLINE = 1 } |
![]() | |
static LineEditor * | Get () |
Definition at line 25 of file d8-readline.cc.
|
inline |
Definition at line 27 of file d8-readline.cc.
|
virtual |
Reimplemented from v8::LineEditor.
Definition at line 92 of file d8-readline.cc.
Referenced by Prompt().
|
staticprivate |
Definition at line 110 of file d8-readline.cc.
References CompletionGenerator().
Referenced by Open().
|
virtual |
Reimplemented from v8::LineEditor.
Definition at line 78 of file d8-readline.cc.
References kHistoryFileName.
|
staticprivate |
Definition at line 119 of file d8-readline.cc.
References v8::Shell::GetCompletions(), isolate_, v8::String::kNormalString, v8::Local< T >::New(), v8::Integer::New(), v8::String::NewFromUtf8(), NULL, v8::read_line_editor, and v8::PersistentBase< T >::Reset().
Referenced by AttemptedCompletion().
Reimplemented from v8::LineEditor.
Definition at line 57 of file d8-readline.cc.
References AttemptedCompletion(), isolate_, kHistoryFileName, kMaxHistoryEntries, and kWordBreakCharacters.
Implements v8::LineEditor.
Definition at line 83 of file d8-readline.cc.
References AddHistory(), isolate_, v8::String::NewFromUtf8(), and NULL.
|
private |
Definition at line 43 of file d8-readline.cc.
Referenced by CompletionGenerator(), Open(), and Prompt().
|
static |
Definition at line 33 of file d8-readline.cc.
|
static |
Definition at line 34 of file d8-readline.cc.
Referenced by Open().
|
staticprivate |
Definition at line 41 of file d8-readline.cc.
Referenced by Open().