9#ifndef LLDB_UTILITY_STRINGLIST_H
10#define LLDB_UTILITY_STRINGLIST_H
12#include "llvm/ADT/StringRef.h"
13#include "llvm/ADT/Twine.h"
81 void Join(
const char *separator,
Stream &strm);
101 std::string
CopyList(
const char *item_preamble =
nullptr,
102 const char *items_sep =
"\n")
const;
116 virtual void LogDump(
Log *log,
const char *name =
nullptr);
120 template <
typename T>
121 static void LogDump(
Log *log, T s_iterable,
const char *name =
nullptr) {
126 for (
const auto &s : s_iterable)
129 l.LogDump(log, name);
A stream class that can stream formatted output to a file.
size_t GetMaxStringLength() const
void AppendList(const char **strv, int strc)
const std::string & operator[](size_t idx) const
const_iterator begin() const
virtual void LogDump(Log *log, const char *name=nullptr)
const_iterator end() const
std::string & operator[](size_t idx)
std::string CopyList(const char *item_preamble=nullptr, const char *items_sep="\n") const
size_t SplitIntoLines(const std::string &lines)
static void LogDump(Log *log, T s_iterable, const char *name=nullptr)
void AppendString(const std::string &s)
const char * GetStringAtIndex(size_t idx) const
collection::const_iterator const_iterator
StringList & operator<<(const char *str)
StringList & operator=(const std::vector< std::string > &rhs)
void InsertStringAtIndex(size_t idx, const std::string &str)
collection::iterator iterator
void DeleteStringAtIndex(size_t id)
void Join(const char *separator, Stream &strm)
std::string LongestCommonPrefix()
std::vector< std::string > collection
A class that represents a running process on the host machine.