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

Function ValidateAscii

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

Source from the content-addressed store, hash-verified

266#endif // ARROW_HAVE_NEON || ARROW_HAVE_SSE4_2
267
268static inline bool ValidateAscii(const uint8_t* data, int64_t len) {
269#if defined(ARROW_HAVE_NEON) || defined(ARROW_HAVE_SSE4_2)
270 return ValidateAsciiSimd(data, len);
271#else
272 return ValidateAsciiSw(data, len);
273#endif
274}
275
276static inline bool ValidateAscii(std::string_view str) {
277 const uint8_t* data = reinterpret_cast<const uint8_t*>(str.data());

Callers 4

IsValidASCIIFunction · 0.85
IsInvalidASCIIFunction · 0.85
ValidateAsciiNoInlineFunction · 0.85
DecomposeMethod · 0.85

Calls 4

ValidateAsciiSimdFunction · 0.85
ValidateAsciiSwFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 2

IsValidASCIIFunction · 0.68
IsInvalidASCIIFunction · 0.68