MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / tokenizeToStringList

Method tokenizeToStringList

source/core/StarShellParser.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20StringList ShellParser::tokenizeToStringList(String const& command) {
21 StringList res;
22 for (auto token : tokenize(command)) {
23 if (token.type == TokenType::Word) {
24 res.append(std::move(token.token));
25 }
26 }
27
28 return res;
29}
30
31void ShellParser::init(String const& string) {
32 m_begin = string.begin();

Callers 15

helpMethod · 0.80
timewarpMethod · 0.80
timescaleMethod · 0.80
tickrateMethod · 0.80
setTileProtectionMethod · 0.80
setDungeonIdMethod · 0.80
spawnItemMethod · 0.80
spawnTreasureMethod · 0.80
spawnMonsterMethod · 0.80
spawnNpcMethod · 0.80
spawnVehicleMethod · 0.80
spawnStagehandMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected