81 simdutf_really_inline simdutf_constexpr23
result() noexcept
82 : error{error_code::SUCCESS}, count{0} {}
84 simdutf_really_inline simdutf_constexpr23
result(error_code err,
86 : error{err}, count{pos} {}
88 simdutf_really_inline simdutf_constexpr23
bool is_ok()
const noexcept {
89 return error == error_code::SUCCESS;
92 simdutf_really_inline simdutf_constexpr23
bool is_err()
const noexcept {
93 return error != error_code::SUCCESS;
101 bool padding_error =
false;
104 simdutf_really_inline simdutf_constexpr23
full_result() noexcept
105 : error{error_code::SUCCESS}, input_count{0}, output_count{0} {}
107 simdutf_really_inline simdutf_constexpr23
full_result(error_code err,
109 size_t pos_out) noexcept
110 : error{err}, input_count{pos_in}, output_count{pos_out} {}
111 simdutf_really_inline simdutf_constexpr23
full_result(
112 error_code err,
size_t pos_in,
size_t pos_out,
bool padding_err) noexcept
113 : error{err}, input_count{pos_in}, output_count{pos_out},
114 padding_error{padding_err} {}
116 simdutf_really_inline simdutf_constexpr23
operator result()
const noexcept {
117 if (error == error_code::SUCCESS) {
118 return result{error, output_count};
120 return result{error, input_count};