Sha256: 2c965fa98ce06f423d51661c822e9bf3cf6b87e1b9fd0f2f0203f7839e1ab52a

Contents?: true

Size: 540 Bytes

Versions: 319

Compression:

Stored size: 540 Bytes

Contents

#ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
#define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#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"
#endif

#endif  // THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_

Version data entries

319 entries across 319 versions & 3 rubygems

Version Path
google-protobuf-4.29.4-java ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x86_64-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x86_64-darwin ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x86-mingw32 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x86-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x64-mingw32 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-x64-mingw-ucrt ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-arm64-darwin ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.29.4-aarch64-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-java ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x86_64-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x86_64-darwin ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x86-mingw32 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x86-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x64-mingw32 ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-x64-mingw-ucrt ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-arm64-darwin ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
google-protobuf-4.30.1-aarch64-linux ext/google/protobuf_c/third_party/utf8_range/utf8_range.h