LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb_private::Args::ArgEntry Struct Reference

#include <Args.h>

Public Member Functions

 ArgEntry ()=default
 
 ArgEntry (llvm::StringRef str, char quote)
 
llvm::StringRef ref () const
 
const char * c_str () const
 
bool IsQuoted () const
 Returns true if this argument was quoted in any way.
 
char GetQuoteChar () const
 

Private Member Functions

char * data ()
 

Private Attributes

std::unique_ptr< char[]> ptr
 
char quote = '\0'
 

Friends

class Args
 

Detailed Description

Definition at line 35 of file Args.h.

Constructor & Destructor Documentation

◆ ArgEntry() [1/2]

lldb_private::Args::ArgEntry::ArgEntry ( )
default

◆ ArgEntry() [2/2]

Args::ArgEntry::ArgEntry ( llvm::StringRef  str,
char  quote 
)

Definition at line 159 of file Args.cpp.

References data(), ptr, and lldb_private::Args::size().

Member Function Documentation

◆ c_str()

const char * lldb_private::Args::ArgEntry::c_str ( ) const
inline

◆ data()

char * lldb_private::Args::ArgEntry::data ( )
inlineprivate

Definition at line 42 of file Args.h.

References ptr.

Referenced by ArgEntry().

◆ GetQuoteChar()

char lldb_private::Args::ArgEntry::GetQuoteChar ( ) const
inline

◆ IsQuoted()

bool lldb_private::Args::ArgEntry::IsQuoted ( ) const
inline

◆ ref()

llvm::StringRef lldb_private::Args::ArgEntry::ref ( ) const
inline

Friends And Related Function Documentation

◆ Args

friend class Args
friend

Definition at line 37 of file Args.h.

Member Data Documentation

◆ ptr

std::unique_ptr<char[]> lldb_private::Args::ArgEntry::ptr
private

Definition at line 39 of file Args.h.

Referenced by ArgEntry(), c_str(), and data().

◆ quote

char lldb_private::Args::ArgEntry::quote = '\0'
private

Definition at line 40 of file Args.h.

Referenced by GetQuoteChar(), and IsQuoted().


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