| 266 | #endif // ARROW_HAVE_NEON || ARROW_HAVE_SSE4_2 |
| 267 | |
| 268 | static 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 | |
| 276 | static inline bool ValidateAscii(std::string_view str) { |
| 277 | const uint8_t* data = reinterpret_cast<const uint8_t*>(str.data()); |