MCPcopy Create free account
hub / github.com/apache/arrow / UTF8AdvanceCodepoints

Function UTF8AdvanceCodepoints

cpp/src/arrow/util/utf8_internal.h:493–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static inline bool UTF8AdvanceCodepoints(const uint8_t* first, const uint8_t* last,
494 const uint8_t** destination, int64_t n) {
495 return UTF8FindIf(
496 first, last,
497 [&](uint32_t codepoint) {
498 bool done = n == 0;
499 n--;
500 return done;
501 },
502 destination);
503}
504
505static inline bool UTF8AdvanceCodepointsReverse(const uint8_t* first, const uint8_t* last,
506 const uint8_t** destination, int64_t n) {

Callers 4

TransformMethod · 0.85
TransformMethod · 0.85
SliceForwardMethod · 0.85
SliceBackwardMethod · 0.85

Calls 1

UTF8FindIfFunction · 0.85

Tested by

no test coverage detected