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

#include <Args.h>

Collaboration diagram for lldb_private::Args::ArgEntry:
Collaboration graph

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'


class Args

Detailed Description

Definition at line 35 of file Args.h.

Constructor & Destructor Documentation

◆ ArgEntry() [1/2]

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

◆ ArgEntry() [2/2]

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

Definition at line 160 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

Definition at line 49 of file Args.h.

References ptr.

Referenced by lldb_private::CommandInterpreter::BuildAliasResult(), FindOriginalIter(), and ref().

◆ data()

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

Definition at line 42 of file Args.h.

References ptr.

Referenced by ArgEntry().

◆ GetQuoteChar()

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

◆ IsQuoted()

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

Returns true if this argument was quoted in any way.

Definition at line 52 of file Args.h.

References quote.

Referenced by lldb::SBCommandInterpreter::HandleCompletionWithDescriptions(), lldb_private::Options::ParseForCompletion(), and lldb_private::OptionsWithRaw::SetFromString().

◆ ref()

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

Friends And Related Function Documentation

◆ Args

friend class Args

Definition at line 37 of file Args.h.

Member Data Documentation

◆ ptr

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

Definition at line 39 of file Args.h.

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

◆ quote

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

Definition at line 40 of file Args.h.

Referenced by GetQuoteChar(), and IsQuoted().

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