MCPcopy Create free account
hub / github.com/defold/defold / ParseKey

Function ParseKey

engine/dlib/src/dlib/configfile.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 static void ParseKey(Context* context, char* buf, int buf_len)
416 {
417 int c = GetChar(context);
418 int i = 0;
419 while (isalnum(c) || c == '_')
420 {
421 buf[i] = c;
422 if (i >= (int) buf_len - 1)
423 ParseError(context, RESULT_LITERAL_TOO_LONG);
424
425 c = GetChar(context);
426 ++i;
427 }
428 BufferUngetChar(c, context);
429 buf[i] = '\0';
430 }
431
432 static void ParseEntry(Context* context, char* value_buf, int value_len)
433 {

Callers 2

ParseEntryFunction · 0.85
ParseSectionFunction · 0.85

Calls 3

BufferUngetCharFunction · 0.85
GetCharFunction · 0.70
ParseErrorFunction · 0.70

Tested by

no test coverage detected