1#ifndef SIMDUTF_LATIN1_TO_UTF32_H
2#define SIMDUTF_LATIN1_TO_UTF32_H
7namespace latin1_to_utf32 {
9template <
typename InputPtr>
10#if SIMDUTF_CPLUSPLUS20
11 requires simdutf::detail::indexes_into_byte_like<InputPtr>
13simdutf_constexpr23
size_t convert(InputPtr data,
size_t len,
14 char32_t *utf32_output) {
15 char32_t *start{utf32_output};
16 for (
size_t i = 0; i < len; i++) {
17 *utf32_output++ = uint8_t(data[i]);
19 return utf32_output - start;
helpers placed in namespace detail are not a part of the public API