DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetBaseClassPathCombined()

string PluginBase::GetBaseClassPathCombined ( string child_path,
string base_class )
inlineprivate

См. определение в файле PluginConfigViewer.c строка 70

71 {
72 int current = -1;
73 int last = 0;
74
75 while ( true )
76 {
77 current = child_path.IndexOfFrom(last, " " );
78 if ( current > -1 )
79 {
80 last = current+1;
81 }
82 else
83 {
84 break;
85 }
86 }
87
88 string result = child_path.Substring(0, last ) + base_class;
89 return result;
90 }
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOfFrom(int start, string sample)
Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.

Перекрестные ссылки string::IndexOfFrom() и string::Substring().

Используется в GetConfigRecursive().