ezEngine  Release 25.03
ezFormatStringImpl< ARGS > Class Template Reference
Inheritance diagram for ezFormatStringImpl< ARGS >:

Public Member Functions

 ezFormatStringImpl (ezStringView sFormat, ARGS &&... args)
 
 ezFormatStringImpl (const char *szFormat, ARGS &&... args)
 
virtual ezStringView GetText (ezStringBuilder &ref_sStorage) const override
 Generates the formatted text. Make sure to only call this function once and only when the formatted string is really needed. More...
 
virtual const char * GetTextCStr (ezStringBuilder &out_sString) const override
 Similar to GetText() but guaranteed to copy the string into the given string builder, and thus guaranteeing that the generated string is zero terminated.
 
- Public Member Functions inherited from ezFormatString
EZ_ALWAYS_INLINE ezFormatString (const char *szString)
 
EZ_ALWAYS_INLINE ezFormatString (ezStringView sString)
 
 ezFormatString (const ezStringBuilder &s)
 
bool IsEmpty () const
 
ezStringView BuildFormattedText (ezStringBuilder &ref_sStorage, ezStringView *pArgs, ezUInt32 uiNumArgs) const
 Helper function to build the formatted text with the given arguments. More...
 

Additional Inherited Members

- Protected Attributes inherited from ezFormatString
ezStringView m_sString
 

Member Function Documentation

◆ GetText()

template<typename... ARGS>
virtual ezStringView ezFormatStringImpl< ARGS >::GetText ( ezStringBuilder ref_sStorage) const
inlineoverridevirtual

Generates the formatted text. Make sure to only call this function once and only when the formatted string is really needed.

Requires an ezStringBuilder as storage, ie. writes the formatted text into it. Additionally it returns a const char* to that string builder data for convenience.

Reimplemented from ezFormatString.


The documentation for this class was generated from the following file: