template class CCL::StringWriter

Helper class for appending characters to a string.

#include <cclstring.h>

template <int size = 512>
class StringWriter
{
public:
    // construction

    StringWriter (String& string, bool emptyFirst = true);

    // methods

    StringWriter& append (uchar c);
    StringWriter& append (const wchar_t* s, int charCount = -1);
    StringWriter& flush ();
    static String fromWideChars (const wchar_t* s, int charCount = -1);
};