template <typename StringClass>

class StringByteSink

Defined at line 267 of file ../../third_party/icu/default/source/common/unicode/bytestream.h

Implementation of ByteSink that writes to a "string".

The StringClass is usually instantiated with a std::string.

ICU 4.2

Public Methods

void StringByteSink<StringClass> (StringClass * dest)

Constructs a ByteSink that will append bytes to the dest string.

Parameters

dest pointer to string object to append to ICU 4.2

Defined at line 274 of file ../../third_party/icu/default/source/common/unicode/bytestream.h

void StringByteSink<StringClass> (StringClass * dest, int32_t initialAppendCapacity)

Constructs a ByteSink that reserves append capacity and will append bytes to the dest string.

Parameters

dest pointer to string object to append to
initialAppendCapacity capacity beyond dest->length() to be reserve()d ICU 60

Defined at line 282 of file ../../third_party/icu/default/source/common/unicode/bytestream.h

void Append (const char * data, int32_t n)

Append "bytes[0,n-1]" to this.

Parameters

data the pointer to the bytes
n the number of bytes; must be non-negative ICU 4.2

Defined at line 294 of file ../../third_party/icu/default/source/common/unicode/bytestream.h