Go to the documentation of this file.
42 bool EnumCompareByName(
const EnumEntry&
a,
const EnumEntry&
b) {
43 return StringPiece(
a.name) < StringPiece(
b.name);
49 int GetValue(
const EnumEntry*
enums,
int i,
int target) {
76 std::lower_bound(sorted_indices, sorted_indices +
size, -1, comparator);
78 return it - sorted_indices;
86 for (
int i = 0;
i <
size; ++
i) {
static const upb_enumdef enums[5]
int LookUpEnumName(const EnumEntry *enums, const int *sorted_indices, size_t size, int value)
GLuint const GLchar * name
const Descriptor::ReservedRange value
GLboolean GLboolean GLboolean b
void Construct(Args &&... args)
void OnShutdownDestroyString(const std::string *ptr)
bool InitializeEnumStrings(const EnumEntry *enums, const int *sorted_indices, size_t size, internal::ExplicitlyConstructed< std::string > *enum_strings)
bool LookUpEnumValue(const EnumEntry *enums, size_t size, StringPiece name, int *value)
GLsizei const GLfloat * value
GLboolean GLboolean GLboolean GLboolean a
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:51