MCPcopy Create free account
hub / github.com/assaultcube/AC / parsequotes

Function parsequotes

source/src/command.cpp:301–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301inline char *parsequotes(const char *&p)
302{
303 const char *word = p + 1;
304 do
305 {
306 p++;
307 p += strcspn(p, "\"\n\r");
308 }
309 while(*p == '\"' && p[-1] == '\\'); // skip escaped quotes
310 char *s = newstring(word, p - word);
311#ifndef STANDALONE
312 filterrichtext(s, s, p - word);
313#endif
314 if(*p=='\"') p++;
315 return s;
316}
317
318char *lookup(char *n, int levels);
319

Callers 2

parseexpFunction · 0.85
parsewordFunction · 0.85

Calls 2

newstringFunction · 0.85
filterrichtextFunction · 0.85

Tested by

no test coverage detected