MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / utf8_count

Method utf8_count

include/stringzilla/stringzilla.hpp:2336–2336  ·  view source on GitHub ↗

* @brief Count the number of UTF-8 characters (not bytes) in the string. * @return Number of UTF-8 codepoints. */

Source from the content-addressed store, hash-verified

2334 * @return Number of UTF-8 codepoints.
2335 */
2336 size_type utf8_count() const noexcept { return sz_utf8_count(start_, length_); }
2337
2338 /**
2339 * @brief Find the byte offset of the Nth UTF-8 character.

Callers

nothing calls this directly

Calls 1

sz_utf8_countFunction · 0.70

Tested by

no test coverage detected