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

◆ IndexOfFrom()

proto native int string::IndexOfFrom ( int start,
string sample )
private

Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.

Аргументы
startint Start from position
samplestring Finding string expression
Возвращает
int - Length of string s
string str = "Hello World";
Print( str.IndexOfFrom( 3, "H" ) );
Print( str.IndexOfFrom( 3, "W" ) );
Print( str.IndexOfFrom( 3, "Q" ) );
>> -1
>> 6
>> -1
proto void Print(void var)
Prints content of variable to console/log.
proto native int IndexOfFrom(int start, string sample)
Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.

Используется в PluginBase::GetBaseClassPathCombined(), ActionUnmountBarbedWire::GetZoneSelection(), PluginFileHandler::ParseTextToArray(), PluginFileHandler::ParseToValueArray(), OpenDirPlugin::Run() и DayZTool::RunDayZBat().