create
This commit is contained in:
21
Pods/gRPC-C++/third_party/utf8_range/utf8_range.h
generated
vendored
Normal file
21
Pods/gRPC-C++/third_party/utf8_range/utf8_range.h
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
|
||||
#define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if (defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)
|
||||
int utf8_range2(const unsigned char* data, int len);
|
||||
#else
|
||||
int utf8_naive(const unsigned char* data, int len);
|
||||
static inline int utf8_range2(const unsigned char* data, int len) {
|
||||
return utf8_naive(data, len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
|
||||
Reference in New Issue
Block a user