|
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 | SetZeroTermination (ZeroTermination z) |
| ZeroTermination | GetZeroTermination () 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_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. | |
| EscapeStyle | m_escape_style = EscapeStyle::CXX |
| The language-specific style for escaping special characters. | |
| ZeroTermination | m_zero_termination = ZeroTermination::ZeroTerminate |
Definition at line 38 of file StringPrinter.h.
|
default |
|
inline |
Definition at line 72 of file StringPrinter.h.
References m_escape_non_printables.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 80 of file StringPrinter.h.
References m_escape_style.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 76 of file StringPrinter.h.
References m_ignore_max_length.
Referenced by lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 50 of file StringPrinter.h.
References m_prefix_token.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 60 of file StringPrinter.h.
References m_quote.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 64 of file StringPrinter.h.
References m_source_size.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 44 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 56 of file StringPrinter.h.
References m_suffix_token.
Referenced by DumpEncodedBufferToStream(), and lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 68 of file StringPrinter.h.
References m_zero_termination.
Referenced by DumpEncodedBufferToStream(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::ReadEncodedBufferAndDumpToStream().
|
inline |
Definition at line 70 of file StringPrinter.h.
References m_escape_non_printables.
Referenced by lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::StringPrinter::ReadStringAndDumpToStreamOptions::ReadStringAndDumpToStreamOptions().
|
inline |
Definition at line 78 of file StringPrinter.h.
References m_escape_style.
Referenced by lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions().
|
inline |
Definition at line 74 of file StringPrinter.h.
References m_ignore_max_length.
Referenced by lldb_private::formatters::NSStringSummaryProvider().
|
inline |
Definition at line 46 of file StringPrinter.h.
References m_prefix_token.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 48 of file StringPrinter.h.
References m_prefix_token.
|
inline |
Definition at line 58 of file StringPrinter.h.
References m_quote.
Referenced by CharSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 62 of file StringPrinter.h.
References m_source_size.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::ReadEncodedBufferAndDumpToStream(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 42 of file StringPrinter.h.
References m_stream.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
inline |
Definition at line 52 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 54 of file StringPrinter.h.
References m_suffix_token.
|
inline |
Definition at line 66 of file StringPrinter.h.
References m_zero_termination.
Referenced by CharStringSummaryProvider(), CharSummaryProvider(), lldb_private::formatters::NSStringSummaryProvider(), lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStreamOptions::ReadBufferAndDumpToStreamOptions(), lldb_private::formatters::ReadEncodedBufferAndDumpToStream(), lldb_private::formatters::WCharStringSummaryProvider(), and lldb_private::formatters::WCharSummaryProvider().
|
private |
True iff non-printable characters should be escaped when dumping them to the stream.
Definition at line 95 of file StringPrinter.h.
Referenced by GetEscapeNonPrintables(), and SetEscapeNonPrintables().
|
private |
The language-specific style for escaping special characters.
Definition at line 100 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 98 of file StringPrinter.h.
Referenced by GetIgnoreMaxLength(), and SetIgnoreMaxLength().
|
private |
String that should be printed before the heading quote character.
Definition at line 86 of file StringPrinter.h.
Referenced by GetPrefixToken(), SetPrefixToken(), and SetPrefixToken().
|
private |
The quote character that should surround the string.
Definition at line 90 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 92 of file StringPrinter.h.
Referenced by GetSourceSize(), and SetSourceSize().
|
private |
The used output stream.
Definition at line 84 of file StringPrinter.h.
Referenced by GetStream(), and SetStream().
|
private |
String that should be printed after the trailing quote character.
Definition at line 88 of file StringPrinter.h.
Referenced by GetSuffixToken(), SetSuffixToken(), and SetSuffixToken().
|
private |
Definition at line 101 of file StringPrinter.h.
Referenced by GetZeroTermination(), and SetZeroTermination().