MCPcopy Create free account
hub / github.com/craftzdog/react-native-quick-base64 / count_utf8

Function count_utf8

cpp/simdutf.h:8801–8813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8799 size_t length) noexcept;
8800 #if SIMDUTF_SPAN
8801simdutf_really_inline simdutf_warn_unused simdutf_constexpr23 size_t count_utf8(
8802 const detail::input_span_of_byte_like auto &valid_utf8_input) noexcept {
8803 #if SIMDUTF_CPLUSPLUS23
8804 if consteval {
8805 return scalar::utf8::count_code_points(valid_utf8_input.data(),
8806 valid_utf8_input.size());
8807 } else
8808 #endif
8809 {
8810 return count_utf8(reinterpret_cast<const char *>(valid_utf8_input.data()),
8811 valid_utf8_input.size());
8812 }
8813}
8814 #endif // SIMDUTF_SPAN
8815
8816/**

Callers

nothing calls this directly

Calls 3

count_code_pointsFunction · 0.85
dataMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected