#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QThread>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
#include "rpcconsole.moc"
Go to the source code of this file.
|
const QSize | ICON_SIZE (24, 24) |
|
bool | parseCommandLine (std::vector< std::string > &args, const std::string &strCommand) |
| Split shell command line into a list of arguments. More...
|
|
const QSize ICON_SIZE |
( |
24 |
, |
|
|
24 |
|
|
) |
| |
bool parseCommandLine |
( |
std::vector< std::string > & |
args, |
|
|
const std::string & |
strCommand |
|
) |
| |
Split shell command line into a list of arguments.
Aims to emulate bash
and friends.
- Arguments are delimited with whitespace
- Extra whitespace at the beginning and end and between arguments will be ignored
- Text can be "double" or 'single' quoted
- The backslash
\
is used as escape character
- Outside quotes, any character can be escaped
- Within double quotes, only escape
" and backslashes before a \c "
or another backslash
- Within single quotes, no escaping is possible and no special interpretation takes place
- Parameters
-
[out] | args | Parsed arguments will be appended to this list |
[in] | strCommand | Command line to split |
Definition at line 65 of file rpcconsole.cpp.
const int CONSOLE_HISTORY = 50 |
const { ... } ICON_MAPPING[] |
Initial value:= {
{"cmd-request", ":/icons/tx_input"},
{"cmd-reply", ":/icons/tx_output"},
{"cmd-error", ":/icons/tx_output"},
{"misc", ":/icons/tx_inout"},
{NULL, NULL}
}