MCPcopy Create free account
hub / github.com/Kitware/CMake / cmTokenizedView

Function cmTokenizedView

Source/cmStringAlgorithms.h:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 */
194template <typename Sep = char>
195std::vector<cm::string_view> cmTokenizedView(
196 cm::string_view str, Sep sep, cmTokenizerMode mode = cmTokenizerMode::Legacy)
197{
198 using StringType = cm::string_view;
199 std::vector<StringType> tokens;
200 cmTokenize<StringType>(std::back_inserter(tokens), str, sep, mode);
201 return tokens;
202}
203
204/** Concatenate string pieces into a single string. */
205std::string cmCatViews(

Callers 4

testStringAlgorithmsFunction · 0.85
FormatLineFunction · 0.85

Calls

no outgoing calls

Tested by 1

testStringAlgorithmsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…