template <typename WChar, typename Buffer = memory_buffer>

class to_utf8

Defined at line 1289 of file ../../third_party/fmtlib/src/include/fmt/format.h

A converter from UTF-16/UTF-32 (host endian) to UTF-8.

Public Methods

void to_utf8<WChar, Buffer> ()

Defined at line 1294 of file ../../third_party/fmtlib/src/include/fmt/format.h

void to_utf8<WChar, Buffer> (basic_string_view<WChar> s, to_utf8_error_policy policy)

Defined at line 1295 of file ../../third_party/fmtlib/src/include/fmt/format.h

string_view operator basic_string_view ()

Defined at line 1303 of file ../../third_party/fmtlib/src/include/fmt/format.h

size_t size ()

Defined at line 1304 of file ../../third_party/fmtlib/src/include/fmt/format.h

const char * c_str ()

Defined at line 1305 of file ../../third_party/fmtlib/src/include/fmt/format.h

std::string str ()

Defined at line 1306 of file ../../third_party/fmtlib/src/include/fmt/format.h

bool convert (basic_string_view<WChar> s, to_utf8_error_policy policy)

Performs conversion returning a bool instead of throwing exception on

conversion error. This method may still throw in case of memory allocation

error.

Defined at line 1311 of file ../../third_party/fmtlib/src/include/fmt/format.h

bool convert (Buffer & buf, basic_string_view<WChar> s, to_utf8_error_policy policy)

Defined at line 1318 of file ../../third_party/fmtlib/src/include/fmt/format.h