| 79 | } |
| 80 | |
| 81 | string 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 |