修改pods
This commit is contained in:
17
Pods/gRPC-C++/third_party/utf8_range/utf8_range.h
generated
vendored
17
Pods/gRPC-C++/third_party/utf8_range/utf8_range.h
generated
vendored
@@ -1,18 +1,19 @@
|
||||
#ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
|
||||
#define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
|
||||
|
||||
#include <stddef.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
|
||||
// Returns 1 if the sequence of characters is a valid UTF-8 sequence, otherwise
|
||||
// 0.
|
||||
int utf8_range_IsValid(const char* data, size_t len);
|
||||
|
||||
// Returns the length in bytes of the prefix of str that is all
|
||||
// structurally valid UTF-8.
|
||||
size_t utf8_range_ValidPrefix(const char* data, size_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user