Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1StringByteSink.html below:
ICU 77.1: icu::StringByteSink< StringClass > Class Template Reference
Implementation of ByteSink that writes to a "string". More...
#include <bytestream.h>
StringByteSink (StringClass *dest) Constructs a ByteSink that will append bytes to the dest string. More...
StringByteSink (StringClass *dest, int32_t initialAppendCapacity) Constructs a ByteSink that reserves append capacity and will append bytes to the dest string. More...
virtual void Append (const char *data, int32_t n) override Append "bytes[0,n-1]" to this. More...
ByteSink () Default constructor. More...
virtual ~ByteSink () Virtual destructor. More...
void AppendU8 (const char *bytes, int32_t n) Appends n bytes to this. More...
void AppendU8 (const char8_t *bytes, int32_t n) Appends n bytes to this. More...
virtual char * GetAppendBuffer (int32_t min_capacity, int32_t desired_capacity_hint, char *scratch, int32_t scratch_capacity, int32_t *result_capacity) Returns a writable buffer for appending and writes the buffer's capacity to *result_capacity. More...
virtual void Flush () Flush internal buffers. More...
template<typename StringClass>
class icu::StringByteSink< StringClass >
Implementation of ByteSink that writes to a "string".
The StringClass is usually instantiated with a std::string.
-
Stable:
-
ICU 4.2
Definition at line 267 of file bytestream.h.
◆ StringByteSink() [1/2]
template<typename StringClass >
Constructs a ByteSink that will append bytes to the dest string.
-
Parameters
-
dest pointer to string object to append to
-
Stable:
-
ICU 4.2
Definition at line 274 of file bytestream.h.
◆ StringByteSink() [2/2]
template<typename StringClass >
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
-
Stable:
-
ICU 60
Definition at line 282 of file bytestream.h.
◆ Append()
template<typename StringClass >
Append "bytes[0,n-1]" to this.
-
Parameters
-
data the pointer to the bytes n the number of bytes; must be non-negative
-
Stable:
-
ICU 4.2
Implements icu::ByteSink.
Definition at line 294 of file bytestream.h.
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4