MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getGroup

Method getGroup

Engine/source/util/settings.cpp:563–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563String SettingSaveNode::getGroup(const String &name, S32 num)
564{
565 String::SizeType pos = 0;
566 String::SizeType lastPos = 0;
567 S32 count = 0;
568
569 while(pos != String::NPos)
570 {
571 lastPos = pos;
572 pos = name.find("/", pos + 1);
573
574 if(count == num)
575 {
576 String::SizeType startPos = lastPos;
577
578 if(count > 0)
579 startPos++;
580
581 if(pos == String::NPos)
582 return name.substr(startPos, name.length() - (startPos));
583 else
584 return name.substr(startPos, pos - startPos);
585 }
586
587 count++;
588 }
589
590 return String("");
591}
592
593String SettingSaveNode::getSettingName(const String &name)
594{

Callers 15

guiFormClass.ed.csFile · 0.45
audio.csFile · 0.45
chatHud.csFile · 0.45
GraphicsQualityLevelFunction · 0.45
guiFormClass.ed.csFile · 0.45
audio.csFile · 0.45
GraphicsQualityLevelFunction · 0.45
initMethod · 0.45
addObjectMethod · 0.45

Calls 4

substrMethod · 0.80
StringClass · 0.50
findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected