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

Function GetAlphaWord

engine/Poseidon/IO/ParamFile/ParamFile.cpp:125–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void GetAlphaWord(char* buf, int bufSize, QIStream& in)
126{
127 int len = 0;
128 int c = in.get();
129 while (isspace(c))
130 {
131 c = in.get();
132 }
133 while (isalnum(c) || c == '_')
134 {
135 if (len < bufSize)
136 {
137 buf[len++] = c;
138 }
139 c = in.get();
140 }
141 in.unget();
142 buf[len] = 0;
143}
144
145// Meyer's singleton for access string constant - no global constructor!
146#pragma clang diagnostic push

Callers 1

ParamValueSpecClass · 0.85

Calls 2

getMethod · 0.45
ungetMethod · 0.45

Tested by

no test coverage detected