Codechange: let FormatString use StringBuilder

This commit is contained in:
Rubidium
2023-05-18 17:25:35 +02:00
committed by rubidium42
parent 993f90b6a0
commit 2dffa7d0c6
2 changed files with 149 additions and 139 deletions

View File

@@ -118,6 +118,16 @@ public:
{
return (ptrdiff_t)(this->last - this->current);
}
/**
* Add a string using the strecpy/strecat-esque calling signature.
* @param function The function to pass the current and last location to,
* that will then return the new current location.
*/
void AddViaStreCallback(std::function<char*(char*, const char*)> function)
{
this->current = function(this->current, this->last);
}
};
#endif /* STRINGS_INTERNAL_H */