file
io.h
Contents
- Reference
Namespaces
Functions
-
auto exists(const std::
string& file) -> bool -
auto fileSize(const std::
string& file) -> size_t -
auto removeExtension(const std::
string& file) -> std:: string -
auto changeExtension(const std::
string& file, const std:: string& ext) -> std:: string -
auto tokenize(const std::
string& string, const std:: string& delimiterCharList, int limit = 0, bool mergeAdjacentDelimiters = false) -> std:: vector<std:: string> - Tokenize input string by any delimiter char in delimiterCharList.
Function documentation
std:: vector<std:: string> tokenize(const std:: string& string,
const std:: string& delimiterCharList,
int limit = 0,
bool mergeAdjacentDelimiters = false)
Tokenize input string by any delimiter char in delimiterCharList.
Parameters | |
---|---|
string | |
delimiterCharList | string containing all delimiter chars |
limit | > 0 indicates maximum number of times delimiter is applied |
mergeAdjacentDelimiters | whether to merge adjacent delimiters |
Returns | std::vector<std::string>> of tokens |