27 std::string expanded_escape_value;
29 expanded_escape_value);
31 strm.
Printf(
"%s", expanded_escape_value.c_str());
33 strm.
Printf(
"\"%s\"", expanded_escape_value.c_str());
48 std::string value_str = value.str();
50 if (value.size() > 0) {
51 switch (value.front()) {
54 if (value.size() <= 1 || value.back() != value.front()) {
58 value = value.drop_front().drop_back();
61 value_str = value.str();
79 if (value.size() > 0) {
83 new_value.append(str);
85 new_value.append(std::string(value));
131 if (value && value[0]) {
134 new_value.append(value);
static llvm::raw_ostream & error(Stream &strm)
static void ExpandEscapedCharacters(const char *src, std::string &dst)
ExpandEscapeSequences will change a string of possibly non-printable characters and expand them into ...
static void EncodeEscapeSequences(const char *src, std::string &dst)
EncodeEscapeSequences will change the textual representation of common escape sequences like "\n" (tw...
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
bool Test(ValueType bit) const
Test a single flag bit.
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
@ eOptionEncodeCharacterEscapeSequences
ValidatorCallback m_validator
std::string m_current_value
Status AppendToCurrentValue(const char *value)
Status SetCurrentValue(llvm::StringRef value)
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
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