MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / splitToVec

Function splitToVec

libs/string/split.h:56–62  ·  view source on GitHub ↗

* @brief Split the given string into parts, returning the result as a std::vector. * * Convenience wrapper for split() which does not require an existing container variable. */

Source from the content-addressed store, hash-verified

54 * Convenience wrapper for split() which does not require an existing container variable.
55 */
56inline std::vector<std::string> splitToVec(const std::string& subject,
57 const std::string& delimiters, bool trimEmpty = true)
58{
59 std::vector<std::string> result;
60 split(result, subject, delimiters, trimEmpty);
61 return result;
62}
63
64}

Callers 3

TEST_FFunction · 0.85
compareXMLFragmentsFunction · 0.85
assertStringIsMapxFileFunction · 0.85

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected