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

◆ TrimInPlace()

proto int string::TrimInPlace ( )
private

Removes leading and trailing whitespaces in string. Returns length.

Возвращает
int - Count of chars
string str = " Hello World ";
int i = str.TrimInPlace();
Print(str);
Print(i);
>> str = 'Hello World'
>> i = 11
proto void Print(void var)
Prints content of variable to console/log.
proto int TrimInPlace()
Removes leading and trailing whitespaces in string. Returns length.

Используется в ScriptedWidgetEventHandler::GetValueString().