Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
517 B
22 lines
517 B
2 years ago
|
#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_
|