Go to the documentation of this file.
95 static inline char* stringCopy(
char *dest,
const std::string& str);
99 template<
class ListType>
100 int resetContent(
const ListType&
input);
119 template<
class StringType>
124 template<
class StringType>
136 static inline int count(
const char *
const argv[]);
142 inline bool empty()
const noexcept;
145 inline int size()
const noexcept;
154 inline char**
strings(
int start)
const;
158 inline size_t length()
const;
161 inline const char*
data()
const;
171 template<
class StringType>
176 template<
class StringType>
184 template<
class StringType>
189 template<
class StringType>
char ** strings() const
Return the list of C-strings (ie, argv)
Sub-ranges of a string with a structure similar to std::match_results, but without the underlying reg...
int reset(const UList< StringType > &input)
Copy the input list of strings.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const char * operator[](int i) const
Return element at the given index. No bounds checking.
OBJstream os(runTime.globalPath()/outputName)
const char * data() const
The flattened character content, with interspersed nul-chars.
CStringList()
Default construct, adding content later (via reset).
int size() const noexcept
Return the number of C-strings (ie, argc)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static List< StringType > asList(int argc, const char *const argv[])
Create a list from argc/argv parameters.
static Istream & input(Istream &is, IntRange< T > &range)
size_t length() const
Overall length of the flattened character (data) content.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
~CStringList()
Destructor. Invokes clear() to free memory.
bool empty() const noexcept
True if the size is zero.
void clear()
Clear contents and free memory.
static int count(const char *const argv[])
Count the number of parameters until the first nullptr.
An adapter for copying a list of C++ strings into a list of C-style strings for passing to C code tha...