File diff r27505:d725794d218c → r27506:5d6fb3346eaa
src/strings_internal.h
Show inline comments
 
@@ -7,12 +7,14 @@
 

	
 
/** @file strings_interal.h Types and functions related to the internal workings of formatting OpenTTD's strings. */
 

	
 
#ifndef STRINGS_INTERNAL_H
 
#define STRINGS_INTERNAL_H
 

	
 
#include "strings_func.h"
 

	
 
/**
 
 * Equivalent to the std::back_insert_iterator in function, with some
 
 * convenience helpers for string concatenation.
 
 *
 
 * The formatter is currently backed by an external char buffer, and has some
 
 * extra functions to ease the migration from char buffers to std::string.
 
@@ -127,7 +129,13 @@ public:
 
	void AddViaStreCallback(std::function<char*(char*, const char*)> function)
 
	{
 
		this->current = function(this->current, this->last);
 
	}
 
};
 

	
 
void GetStringWithArgs(StringBuilder &builder, StringID string, StringParameters *args, uint case_index = 0, bool game_script = false);
 

	
 
/* Do not leak the StringBuilder to everywhere. */
 
void GetTownName(StringBuilder &builder, const struct Town *t);
 
void GRFTownNameGenerate(StringBuilder &builder, uint32 grfid, uint16 gen, uint32 seed);
 

	
 
#endif /* STRINGS_INTERNAL_H */