MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / _parse

Function _parse

ogsr_engine/xrCore/Xr_ini.cpp:16–42  ·  view source on GitHub ↗

Тело функций Inifile

Source from the content-addressed store, hash-verified

14
15// Тело функций Inifile
16XRCORE_API void _parse(LPSTR dest, LPCSTR src)
17{
18 if (src)
19 {
20 bool bInsideSTR = false;
21 while (*src)
22 {
23 if (isspace((u8)*src))
24 {
25 if (bInsideSTR)
26 {
27 *dest++ = *src++;
28 continue;
29 }
30 while (*src && iswspace(*src))
31 src++;
32 continue;
33 }
34 else if (*src == '"')
35 {
36 bInsideSTR = !bInsideSTR;
37 }
38 *dest++ = *src++;
39 }
40 }
41 *dest = 0;
42}
43
44XRCORE_API void _decorate(LPSTR dest, LPCSTR src)
45{

Callers 2

LoadMethod · 0.85
w_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected