! @param[in] s output stream to serialize to @param[in] ichar indentation character to use @param[in] error_handler_ how to react on decoding errors */
| 15491 | @param[in] error_handler_ how to react on decoding errors |
| 15492 | */ |
| 15493 | serializer(output_adapter_t<char> s, const char ichar, |
| 15494 | error_handler_t error_handler_ = error_handler_t::strict) |
| 15495 | : o(std::move(s)) |
| 15496 | , loc(std::localeconv()) |
| 15497 | , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->thousands_sep))) |
| 15498 | , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits<char>::to_char_type(* (loc->decimal_point))) |
| 15499 | , indent_char(ichar) |
| 15500 | , indent_string(512, indent_char) |
| 15501 | , error_handler(error_handler_) |
| 15502 | {} |
| 15503 | |
| 15504 | // delete because of pointer members |
| 15505 | serializer(const serializer&) = delete; |
nothing calls this directly
no outgoing calls
no test coverage detected