MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / parseSectionName

Function parseSectionName

TheForceEngine/TFE_Settings/settings.cpp:632–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630 }
631
632 SectionID parseSectionName(const char* name)
633 {
634 char sectionName[LINEBUF_LEN];
635 memcpy(sectionName, name + 1, strlen(name) - 2);
636 sectionName[strlen(name) - 2] = 0;
637
638 for (u32 i = 0; i < SECTION_COUNT; i++)
639 {
640 if (strcasecmp(c_sectionNames[i], sectionName) == 0)
641 {
642 return SectionID(i);
643 }
644 }
645 return SECTION_INVALID;
646 }
647
648 void parseIniFile(const char* buffer, size_t len)
649 {

Callers 1

parseIniFileFunction · 0.85

Calls 1

SectionIDEnum · 0.85

Tested by

no test coverage detected