MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Tidy

Function Tidy

Source/Utility/StringUtil.cpp:4–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "StringUtil.h"
3
4char * Tidy(char * s)
5{
6 if (s == NULL || *s == '\0')
7 return s;
8
9 char * p = s + strlen(s);
10
11 p--;
12 while (p >= s && (*p == ' ' || *p == '\r' || *p == '\n'))
13 {
14 *p = 0;
15 p--;
16 }
17 return s;
18}
19
20void Split(ConstStringRef str, char split_char, std::vector<ConstStringRef> * pieces)
21{

Callers 3

Translate_ReadFunction · 0.85
OpenMethod · 0.85
CheatCodes_ReadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected