30 inline char* Foam::CStringList::stringCopy(
char* dest,
const char* src)
32 dest = std::copy_n(src, (src ? strlen(src) : 0), dest);
38 inline char* Foam::CStringList::stringCopy(
char *dest,
const std::string& src)
40 dest = std::copy_n(src.data(), src.size(), dest);
75 std::initializer_list<const char* const>
input 84 template<
class StringType>
123 return &(argv_[start]);
void clear()
Clear contents and free memory.
static int count(const char *const argv[])
Count the number of parameters until the first nullptr.
constexpr CStringList() noexcept
Default construct, adding content later (via reset).
static Istream & input(Istream &is, IntRange< T > &range)
limits reset(1/(limits.max()+VSMALL), 1/(limits.min()+VSMALL))
~CStringList()
Destructor. Invokes clear() to free memory.
An adapter for copying a list of C++ strings into a list of C-style strings for passing to C code tha...
char ** strings() const noexcept
Return the list of C-strings (ie, argv)