1211 {
1216
1217 array_ret.Clear();
1218
1220
1221 for ( int s = 0; s < searching_in.Count(); ++s )
1222 {
1223 string config_path = searching_in.Get(s);
1224
1225 int objects_count =
g_Game.ConfigGetChildrenCount(config_path);
1226 for (int i = 0; i < objects_count; i++)
1227 {
1228 string childName;
1229 g_Game.ConfigGetChildName(config_path, i, childName);
1230
1231 int scope =
g_Game.ConfigGetInt(config_path +
" " + childName +
" scope");
1232 if ( scope == 0 )
1233 {
1234 continue;
1235 }
1236
1237 string nchName = childName;
1239
1240 if ( nchName.
Contains(search_string))
1241 {
1242 array_ret.Insert(childName);
1243 }
1244 }
1245 }
1246
1247 return array_ret;
1248 }
array< string > TStringArray
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.