LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::formatters::StringPrinter::DumpToStreamOptions Class Reference

#include <StringPrinter.h>

Inheritance diagram for lldb_private::formatters::StringPrinter::DumpToStreamOptions:
Inheritance graph
[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 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

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_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.
 

Detailed Description

Definition at line 29 of file StringPrinter.h.

Constructor & Destructor Documentation

◆ DumpToStreamOptions()

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

Member Function Documentation

◆ GetBinaryZeroIsTerminator()

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

◆ 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

◆ GetNeedsZeroTermination()

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::GetNeedsZeroTermination ( ) 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

◆ SetBinaryZeroIsTerminator()

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

◆ SetEscapeNonPrintables()

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

◆ 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 69 of file StringPrinter.h.

References m_ignore_max_length.

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

◆ SetNeedsZeroTermination()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetNeedsZeroTermination ( bool  z)
inline

◆ SetPrefixToken() [1/2]

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

◆ SetPrefixToken() [2/2]

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

Definition at line 39 of file StringPrinter.h.

References m_prefix_token.

◆ SetQuote()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetQuote ( char  q)
inline

◆ SetSourceSize()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetSourceSize ( uint32_t  s)
inline

◆ SetStream()

void lldb_private::formatters::StringPrinter::DumpToStreamOptions::SetStream ( Stream s)
inline

◆ 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 45 of file StringPrinter.h.

References m_suffix_token.

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 91 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 99 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 94 of file StringPrinter.h.

Referenced by GetIgnoreMaxLength(), and SetIgnoreMaxLength().

◆ m_needs_zero_termination

bool lldb_private::formatters::StringPrinter::DumpToStreamOptions::m_needs_zero_termination = true
private

Definition at line 88 of file StringPrinter.h.

Referenced by GetNeedsZeroTermination(), and SetNeedsZeroTermination().

◆ 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 81 of file StringPrinter.h.

Referenced by GetPrefixToken(), and SetPrefixToken().

◆ m_quote

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

The quote character that should surround the string.

Definition at line 85 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 87 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 79 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 83 of file StringPrinter.h.

Referenced by GetSuffixToken(), and SetSuffixToken().

◆ m_zero_is_terminator

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


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