• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
2 #define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #if (defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)
9 int utf8_range2(const unsigned char* data, int len);
10 #else
11 int utf8_naive(const unsigned char* data, int len);
12 static inline int utf8_range2(const unsigned char* data, int len) {
13   return utf8_naive(data, len);
14 }
15 #endif
16 
17 #ifdef __cplusplus
18 }  // extern "C"
19 #endif
20 
21 #endif  // THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
22