LLDB mainline
|
#include <StringPrinter.h>
Public Member Functions | |
DumpToStreamOptions ()=default | |
void | SetStream (Stream *s) |
Stream * | GetStream () const |
void | SetPrefixToken (const std::string &p) |
void | SetPrefixToken (std::nullptr_t) |
const char * | GetPrefixToken () const |
void | SetSuffixToken (const std::string &p) |
void | SetSuffixToken (std::nullptr_t) |
const char * | GetSuffixToken () const |
void | SetQuote (char q) |
char | GetQuote () const |
void | SetSourceSize (uint32_t s) |
uint32_t | GetSourceSize () const |
void | SetNeedsZeroTermination (bool z) |
bool | GetNeedsZeroTermination () const |
void | SetBinaryZeroIsTerminator (bool e) |
bool | GetBinaryZeroIsTerminator () const |
void | SetEscapeNonPrintables (bool e) |
bool | GetEscapeNonPrintables () const |
void | SetIgnoreMaxLength (bool e) |
bool | GetIgnoreMaxLength () const |
void | SetEscapeStyle (EscapeStyle style) |
EscapeStyle | GetEscapeStyle () const |
Private Attributes | |
Stream * | m_stream = nullptr |
The used output stream. | |
std::string | m_prefix_token |
String that should be printed before the heading quote character. | |
std::string | m_suffix_token |
String that should be printed after the trailing quote character. | |
char | m_quote = '"' |
The quote character that should surround the string. | |
uint32_t | m_source_size = 0 |
The length of the memory region that should be dumped in bytes. | |
bool | m_needs_zero_termination = true |
bool | m_escape_non_printables = true |
True iff non-printable characters should be escaped when dumping them to the stream. | |
bool | m_ignore_max_length = false |
True iff the max-string-summary-length setting of the target should be ignored. | |
bool | m_zero_is_terminator = true |
True iff a zero bytes ('\0') should terminate the memory region that is being dumped. | |
EscapeStyle | m_escape_style = EscapeStyle::CXX |
The language-specific style for escaping special characters. | |
Definition at line 29 of file StringPrinter.h.
|
default |
|
inline |
Definition at line 63 of file StringPrinter.h.
References m_zero_is_terminator.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 67 of file StringPrinter.h.
References m_escape_non_printables.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 75 of file StringPrinter.h.
References m_escape_style.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 71 of file StringPrinter.h.
References m_ignore_max_length.
Referenced by lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 59 of file StringPrinter.h.
References m_needs_zero_termination.
Referenced by lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 41 of file StringPrinter.h.
References m_prefix_token.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 51 of file StringPrinter.h.
References m_quote.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 55 of file StringPrinter.h.
References m_source_size.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 35 of file StringPrinter.h.
References m_stream.
Referenced by DumpEncodedBufferToStream(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 47 of file StringPrinter.h.
References m_suffix_token.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 61 of file StringPrinter.h.
References m_zero_is_terminator.
Referenced by CharSummaryProvider(), LibcxxStringSummaryProvider(), LibcxxWStringSummaryProvider(), lldb_private::formatters::LibStdcppStringSummaryProvider(), lldb_private::formatters::LibStdcppWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::ReadEncodedBufferAndDumpToStream(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 65 of file StringPrinter.h.
References m_escape_non_printables.
Referenced by lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::StringPrinter::ReadStringAndDumpToStreamOptions::ReadStringAndDumpToStreamOptions().
|
inline |
Definition at line 73 of file StringPrinter.h.
References m_escape_style.
Referenced by lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 69 of file StringPrinter.h.
References m_ignore_max_length.
Referenced by lldb_private::formatters::NSStringSummaryProvider().
|
inline |
Definition at line 57 of file StringPrinter.h.
References m_needs_zero_termination.
Referenced by lldb_private::formatters::LibStdcppStringSummaryProvider(), lldb_private::formatters::LibStdcppWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), and lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 37 of file StringPrinter.h.
References m_prefix_token.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), LibcxxStringSummaryProvider(), LibcxxWStringSummaryProvider(), lldb_private::formatters::LibStdcppWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 39 of file StringPrinter.h.
References m_prefix_token.
|
inline |
Definition at line 49 of file StringPrinter.h.
References m_quote.
Referenced by CharSummaryProvider(), LibcxxStringSummaryProvider(), LibcxxWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 53 of file StringPrinter.h.
References m_source_size.
Referenced by CharSummaryProvider(), LibcxxStringSummaryProvider(), LibcxxWStringSummaryProvider(), lldb_private::formatters::LibStdcppStringSummaryProvider(), lldb_private::formatters::LibStdcppWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::ReadEncodedBufferAndDumpToStream(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 33 of file StringPrinter.h.
References m_stream.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), LibcxxStringSummaryProvider(), LibcxxWStringSummaryProvider(), lldb_private::formatters::LibStdcppStringSummaryProvider(), lldb_private::formatters::LibStdcppWStringSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 43 of file StringPrinter.h.
References m_suffix_token.
Referenced by lldb_private::formatters::NSStringSummaryProvider(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 45 of file StringPrinter.h.
References m_suffix_token.
|
private |
True iff non-printable characters should be escaped when dumping them to the stream.
Definition at line 91 of file StringPrinter.h.
Referenced by GetEscapeNonPrintables(), and SetEscapeNonPrintables().
|
private |
The language-specific style for escaping special characters.
Definition at line 99 of file StringPrinter.h.
Referenced by GetEscapeStyle(), and SetEscapeStyle().
|
private |
True iff the max-string-summary-length setting of the target should be ignored.
Definition at line 94 of file StringPrinter.h.
Referenced by GetIgnoreMaxLength(), and SetIgnoreMaxLength().
|
private |
Definition at line 88 of file StringPrinter.h.
Referenced by GetNeedsZeroTermination(), and SetNeedsZeroTermination().
|
private |
String that should be printed before the heading quote character.
Definition at line 81 of file StringPrinter.h.
Referenced by GetPrefixToken(), and SetPrefixToken().
|
private |
The quote character that should surround the string.
Definition at line 85 of file StringPrinter.h.
Referenced by GetQuote(), and SetQuote().
|
private |
The length of the memory region that should be dumped in bytes.
Definition at line 87 of file StringPrinter.h.
Referenced by GetSourceSize(), and SetSourceSize().
|
private |
The used output stream.
Definition at line 79 of file StringPrinter.h.
Referenced by GetStream(), and SetStream().
|
private |
String that should be printed after the trailing quote character.
Definition at line 83 of file StringPrinter.h.
Referenced by GetSuffixToken(), and SetSuffixToken().
|
private |
True iff a zero bytes ('\0') should terminate the memory region that is being dumped.
Definition at line 97 of file StringPrinter.h.
Referenced by GetBinaryZeroIsTerminator(), and SetBinaryZeroIsTerminator().