19 if (default_format && default_format[0]) {
20 llvm::StringRef default_format_str(default_format);
22 if (
error.Success()) {
38 dst.reserve(str.size());
40 for (
size_t i = 0, e = str.size(); i != e; ++i) {
43 if (i == 0 || str[i - 1] !=
'\\')
51 Stream &strm, uint32_t dump_mask) {
59 strm <<
'"' << escaped <<
'"';
86 llvm::StringRef trimmed_value_str = value_str.trim();
87 if (!trimmed_value_str.empty()) {
88 const char first_char = trimmed_value_str[0];
89 if (first_char ==
'"' || first_char ==
'\'') {
90 const size_t trimmed_len = trimmed_value_str.size();
91 if (trimmed_len == 1 || value_str[trimmed_len - 1] != first_char) {
95 value_str = trimmed_value_str.substr(1, trimmed_len - 2);
100 if (
error.Success()) {
static llvm::raw_ostream & error(Stream &strm)
"lldb/Utility/ArgCompletionRequest.h"
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
void NotifyValueChanged()
virtual const char * GetTypeAsCString() const
static Status FromErrorString(const char *str)
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
@ eVarSetOperationReplace
@ eVarSetOperationInvalid
@ eVarSetOperationInsertBefore
@ eVarSetOperationInsertAfter