MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ExtractWord

Function ExtractWord

engine/Poseidon/Network/NetworkServerSimulate.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 return DebugTypeNames;
185}
186
187static RString ExtractWord(RString& line)
188{
189 const char* endWord = strchr(line, ' ');
190 if (!endWord)
191 {
192 RString word = line;
193 line = RString();
194 return word;
195 }
196 RString word = line.Substring(0, endWord - line.Data());
197 line = endWord + 1;
198 return word;
199}
200
201void NetworkServer::DebugAsk(RString str, int from, bool fullAccess)

Callers 1

DebugAskMethod · 0.85

Calls 3

SubstringMethod · 0.80
RStringClass · 0.50
DataMethod · 0.45

Tested by

no test coverage detected