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

Method tokenize

source/core/StarShellParser.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 : m_current(), m_end(), m_quotedType('\0') {}
7
8auto ShellParser::tokenize(String const& command) -> List<Token> {
9 List<Token> res;
10
11 init(command);
12
13 while (notDone()) {
14 res.append(Token{TokenType::Word, word()});
15 }
16
17 return res;
18}
19
20StringList ShellParser::tokenizeToStringList(String const& command) {
21 StringList res;

Callers 1

TESTFunction · 0.80

Calls 2

initFunction · 0.85
appendMethod · 0.45

Tested by 1

TESTFunction · 0.64