LLDB mainline
lldb_private::formatters::StringPrinter::DumpToStreamOptions Class Reference

#include <StringPrinter.h>

Inheritance diagram for lldb_private::formatters::StringPrinter::DumpToStreamOptions:
[legend]

Public Member Functions

 DumpToStreamOptions ()=default
void SetStream (Stream *s)
StreamGetStream () 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

Streamm_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

Detailed Description

Definition at line 38 of file StringPrinter.h.

Constructor & Destructor Documentation

◆ DumpToStreamOptions()

lldb_private::formatters::StringPrinter::DumpToStreamOptions::DumpToStreamOptions ( )
default

Member Function Documentation

◆ GetEscapeNonPrintables()

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetEscapeNonPrintables ( ) const
inline

◆ GetEscapeStyle()

EscapeStyle lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetEscapeStyle ( ) const
inline

◆ GetIgnoreMaxLength()

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetIgnoreMaxLength ( ) const
inline

◆ GetPrefixToken()

const char * lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetPrefixToken ( ) const
inline

◆ GetQuote()

char lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetQuote ( ) const
inline

◆ GetSourceSize()

uint32_t lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetSourceSize ( ) const
inline

◆ GetStream()

Stream * lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetStream ( ) const
inline

◆ GetSuffixToken()

const char * lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetSuffixToken ( ) const
inline

◆ GetZeroTermination()

ZeroTermination lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetZeroTermination ( ) const
inline

◆ SetEscapeNonPrintables()

◆ SetEscapeStyle()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetEscapeStyle ( EscapeStyle style)
inline

◆ SetIgnoreMaxLength()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetIgnoreMaxLength ( bool e)
inline

Definition at line 74 of file StringPrinter.h.

References m_ignore_max_length.

Referenced by lldb_private::formatters::NSStringSummaryProvider().

◆ SetPrefixToken() [1/2]

◆ SetPrefixToken() [2/2]

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetPrefixToken ( std::nullptr_t )
inline

Definition at line 48 of file StringPrinter.h.

References m_prefix_token.

◆ SetQuote()

◆ SetSourceSize()

◆ SetStream()

◆ SetSuffixToken() [1/2]

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetSuffixToken ( const std::string & p)
inline

◆ SetSuffixToken() [2/2]

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetSuffixToken ( std::nullptr_t )
inline

Definition at line 54 of file StringPrinter.h.

References m_suffix_token.

◆ SetZeroTermination()

Member Data Documentation

◆ m_escape_non_printables

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_escape_non_printables = true
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().

◆ m_escape_style

EscapeStyle lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_escape_style = EscapeStyle::CXX
private

The language-specific style for escaping special characters.

Definition at line 100 of file StringPrinter.h.

Referenced by GetEscapeStyle(), and SetEscapeStyle().

◆ m_ignore_max_length

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_ignore_max_length = false
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().

◆ m_prefix_token

std::string lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_prefix_token
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().

◆ m_quote

char lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_quote = '"'
private

The quote character that should surround the string.

Definition at line 90 of file StringPrinter.h.

Referenced by GetQuote(), and SetQuote().

◆ m_source_size

uint32_t lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_source_size = 0
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().

◆ m_stream

Stream* lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_stream = nullptr
private

The used output stream.

Definition at line 84 of file StringPrinter.h.

Referenced by GetStream(), and SetStream().

◆ m_suffix_token

std::string lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_suffix_token
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().

◆ m_zero_termination

ZeroTermination lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_zero_termination = ZeroTermination::ZeroTerminate
private

Definition at line 101 of file StringPrinter.h.

Referenced by GetZeroTermination(), and SetZeroTermination().


The documentation for this class was generated from the following file: