185 {
188
190 string config_base_path = "configfile";
191
193 Debug.GetBaseConfigClasses( base_classes );
194
197
199 filter_lower.
Split(
" ", filters );
200
201 for ( int i = 0; i < base_classes.Count(); i++ )
202 {
203 string config_path = config_base_path +
" " + base_classes.
Get(i);
205
206 for ( int j = 0; j < variables.Count(); j++ )
207 {
208 string variable = variables.Get(j);
209 string variable_lower = variable;
211
212 for ( int k = 0; k < filters.Count(); k++ )
213 {
214 if ( variable_lower.
Contains(filters.Get(k)))
215 {
216 string new_config_path = ( config_path + " " + variable ).Trim();
218 break;
219 }
220 }
221 }
222 }
223 }
class OptionSelectorMultistate extends OptionSelector class_name
Param5< bool, string, int, string, int > ConfigParams
array< string > TStringArray
proto string Get(int index)
Gets n-th character from string.
bool Contains(string sample)
Returns true if sample is substring of string.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
proto int ToLower()
Changes string to lowercase. Returns length.