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

Function Parse

engine/dlib/src/dlib/configfile.cpp:480–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478 }
479
480 static void Parse(Context* context)
481 {
482 int value_len = context->m_BufferSize;
483 char* value_buf = context->m_ValueBuffer;
484
485 // May longjmp() out of this loop
486 while (true)
487 {
488 EatSpace(context);
489 if (BufferEof(context))
490 break;
491
492 if (PeekChar(context) == '[')
493 {
494 ParseSection(context);
495 }
496 else
497 {
498 ParseEntry(context, value_buf, value_len);
499 }
500 }
501 }
502
503 static Result LoadFromBufferInternal(const char* url, const char* buffer, uint32_t buffer_size, int argc, const char** argv, HConfig* config)
504 {

Callers 2

LoadFromBufferInternalFunction · 0.70
DoLoadFunction · 0.70

Calls 5

EatSpaceFunction · 0.85
BufferEofFunction · 0.85
PeekCharFunction · 0.85
ParseSectionFunction · 0.85
ParseEntryFunction · 0.85

Tested by

no test coverage detected