MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetSectionName

Method GetSectionName

sdk/add_on/scriptbuilder/scriptbuilder.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81string CScriptBuilder::GetSectionName(unsigned int idx) const
82{
83 if( idx >= includedScripts.size() ) return "";
84
85#ifdef _WIN32
86 set<string, ci_less>::const_iterator it = includedScripts.begin();
87#else
88 set<string>::const_iterator it = includedScripts.begin();
89#endif
90 while( idx-- > 0 ) it++;
91 return *it;
92}
93
94// Returns 1 if the section was included
95// Returns 0 if the section was not included because it had already been included before

Callers 1

TestFunction · 0.80

Calls 2

beginMethod · 0.80
sizeMethod · 0.45

Tested by 1

TestFunction · 0.64