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

◆ GetOnlyChildPath()

string PluginBase::GetOnlyChildPath ( string config_class_path,
string class_path )
inlineprivate

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

29 {
30 int config_class_path_len = config_class_path.Length();
31 int class_path_len = class_path.Length();
32
33 if ( class_path_len > config_class_path_len )
34 {
35 int start = config_class_path_len;
36 int count = class_path_len - start;
37
38 return class_path.Substring(start, count).Trim();
39 }
40 else
41 {
42 return "";
43 }
44 }
proto native int Length()
Returns length of string.
proto string Trim()
Returns trimmed string with removed leading and trailing whitespaces.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.

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

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