File indexing completed on 2026-09-09 09:30:24
0001
0002
0003
0004
0005
0006
0007 #ifndef THIRD_PARTY_UTF8_RANGE_UTF8_VALIDITY_H_
0008 #define THIRD_PARTY_UTF8_RANGE_UTF8_VALIDITY_H_
0009
0010 #include <cstddef>
0011
0012 #include "absl/strings/string_view.h"
0013 #include "utf8_range.h"
0014
0015 namespace utf8_range {
0016
0017
0018 inline bool IsStructurallyValid(absl::string_view str) {
0019 return utf8_range_IsValid(str.data(), str.size());
0020 }
0021
0022
0023
0024 inline size_t SpanStructurallyValid(absl::string_view str) {
0025 return utf8_range_ValidPrefix(str.data(), str.size());
0026 }
0027
0028 }
0029
0030 #endif