MCPcopy Create free account
hub / github.com/HorizonMW/HorizonMW-Client / split

Method split

deps/gsc-tool/src/utils/string.cpp:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187auto string::split(std::string& str, char delimiter) -> std::vector<std::string>
188{
189 auto tokens = std::vector<std::string>{};
190 auto ss = std::stringstream{ str };
191 auto tok = std::string{};
192
193 while (std::getline(ss, tok, delimiter))
194 {
195 tokens.push_back(tok);
196 }
197
198 return tokens;
199}
200
201auto string::clean_buffer_lines(std::vector<u8>& buffer) -> std::vector<std::string>
202{

Callers 15

bootstrap.min.jsFile · 0.80
get_escapedFunction · 0.80
parseMethod · 0.80
__init__Method · 0.80
from_patternMethod · 0.80
parse_defaultsFunction · 0.80
formal_usageFunction · 0.80
update_version.pyFile · 0.80
_GetTypeFromScopeMethod · 0.80
ParseFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by 4

assertImportFromNameMethod · 0.64
testFromBytesLinesMethod · 0.64
testFromUnicodeLinesMethod · 0.64
readtestsFunction · 0.64