LLDB  mainline
Classes | Public Types | Static Public Member Functions | List of all members
lldb_private::formatters::StringPrinter Class Reference

#include <StringPrinter.h>

Classes

class  ReadBufferAndDumpToStreamOptions
 
class  ReadStringAndDumpToStreamOptions
 
struct  StringPrinterBufferPointer
 

Public Types

enum  StringElementType { StringElementType::ASCII, StringElementType::UTF8, StringElementType::UTF16, StringElementType::UTF32 }
 
enum  GetPrintableElementType { GetPrintableElementType::ASCII, GetPrintableElementType::UTF8 }
 
typedef std::function< StringPrinter::StringPrinterBufferPointer< uint8_t, char, size_t >uint8_t *, uint8_t *, uint8_t *&)> EscapingHelper
 
typedef std::function< EscapingHelper(GetPrintableElementType)> EscapingHelperGenerator
 

Static Public Member Functions

static EscapingHelper GetDefaultEscapingHelper (GetPrintableElementType elem_type)
 
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 Typedef Documentation

◆ EscapingHelper

typedef std::function<StringPrinter::StringPrinterBufferPointer< uint8_t, char, size_t>uint8_t *, uint8_t *, uint8_t *&)> lldb_private::formatters::StringPrinter::EscapingHelper

Definition at line 323 of file StringPrinter.h.

◆ EscapingHelperGenerator

Definition at line 325 of file StringPrinter.h.

Member Enumeration Documentation

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

Member Function Documentation

◆ GetDefaultEscapingHelper()

StringPrinter::EscapingHelper StringPrinter::GetDefaultEscapingHelper ( GetPrintableElementType  elem_type)
static

◆ ReadBufferAndDumpToStream()

template<StringElementType element_type>
static bool lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStream ( const ReadBufferAndDumpToStreamOptions options)
static

◆ ReadStringAndDumpToStream()

template<StringElementType element_type>
static bool lldb_private::formatters::StringPrinter::ReadStringAndDumpToStream ( const ReadStringAndDumpToStreamOptions options)
static

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