LLDB mainline
lldb_private::formatters::StringPrinter Class Reference

#include <StringPrinter.h>

Classes

class  DumpToStreamOptions
class  ReadBufferAndDumpToStreamOptions
class  ReadStringAndDumpToStreamOptions

Public Types

enum class  StringElementType { ASCII , UTF8 , UTF16 , UTF32 }
enum class  GetPrintableElementType { ASCII , UTF8 }
enum class  EscapeStyle { CXX , Swift }
enum class  ZeroTermination { Ignore , ZeroTerminate , TrimTrailingZeros }

Static Public Member Functions

template<StringElementType element_type>
static bool ReadStringAndDumpToStream (const ReadStringAndDumpToStreamOptions &options)
template<StringElementType element_type>
static bool ReadBufferAndDumpToStream (const ReadBufferAndDumpToStreamOptions &options)

Detailed Description

Definition at line 21 of file StringPrinter.h.

Member Enumeration Documentation

◆ EscapeStyle

Enumerator
CXX 
Swift 

Definition at line 27 of file StringPrinter.h.

◆ GetPrintableElementType

Enumerator
ASCII 
UTF8 

Definition at line 25 of file StringPrinter.h.

◆ StringElementType

Enumerator
ASCII 
UTF8 
UTF16 
UTF32 

Definition at line 23 of file StringPrinter.h.

◆ ZeroTermination

Enumerator
Ignore 

Don't look for a terminator - print the whole buffer.

ZeroTerminate 

Stop printing at the first zero terminator.

TrimTrailingZeros 

Print embedded zeros, but ignore zeros at the end of the buffer.

Definition at line 29 of file StringPrinter.h.

Member Function Documentation

◆ ReadBufferAndDumpToStream()

◆ ReadStringAndDumpToStream()


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