File diff r25758:d986c17f5008 → r25759:5af213b2a854
src/strings.cpp
Show inline comments
 
@@ -84,16 +84,6 @@ int64 StringParameters::GetInt64(WChar t
 
}
 

	
 
/**
 
 * Shift all data in the data array by the given amount to make
 
 * room for some extra parameters.
 
 */
 
void StringParameters::ShiftParameters(uint amount)
 
{
 
	assert(amount <= this->num_param);
 
	MemMoveT(this->data + amount, this->data, this->num_param - amount);
 
}
 

	
 
/**
 
 * Set DParam n to some number that is suitable for string size computations.
 
 * @param n Index of the string parameter.
 
 * @param max_value The biggest value which shall be displayed.
 
@@ -320,15 +310,6 @@ void SetDParamStr(uint n, const std::str
 
}
 

	
 
/**
 
 * Shift the string parameters in the global string parameter array by \a amount positions, making room at the beginning.
 
 * @param amount Number of positions to shift.
 
 */
 
void InjectDParam(uint amount)
 
{
 
	_global_string_params.ShiftParameters(amount);
 
}
 

	
 
/**
 
 * Format a number into a string.
 
 * @param buff      the buffer to write to
 
 * @param number    the number to write down