#include <google/protobuf/util/internal/utility.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/wrappers.pb.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/util/internal/constants.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/port_def.inc>
namespace google {
namespace protobuf {
namespace util {
namespace converter {
bool GetBoolOptionOrDefault(
const RepeatedPtrField<google::protobuf::Option>& options,
StringPiece option_name, bool default_value) { … }
int64_t GetInt64OptionOrDefault(
const RepeatedPtrField<google::protobuf::Option>& options,
StringPiece option_name, int64_t default_value) { … }
double GetDoubleOptionOrDefault(
const RepeatedPtrField<google::protobuf::Option>& options,
StringPiece option_name, double default_value) { … }
std::string GetStringOptionOrDefault(
const RepeatedPtrField<google::protobuf::Option>& options,
StringPiece option_name, StringPiece default_value) { … }
template <typename T>
void ParseFromAny(const std::string& data, T* result) { … }
bool GetBoolFromAny(const google::protobuf::Any& any) { … }
int64_t GetInt64FromAny(const google::protobuf::Any& any) { … }
double GetDoubleFromAny(const google::protobuf::Any& any) { … }
std::string GetStringFromAny(const google::protobuf::Any& any) { … }
const StringPiece GetTypeWithoutUrl(StringPiece type_url) { … }
const std::string GetFullTypeWithUrl(StringPiece simple_type) { … }
const google::protobuf::Option* FindOptionOrNull(
const RepeatedPtrField<google::protobuf::Option>& options,
StringPiece option_name) { … }
const google::protobuf::Field* FindFieldInTypeOrNull(
const google::protobuf::Type* type, StringPiece field_name) { … }
const google::protobuf::Field* FindJsonFieldInTypeOrNull(
const google::protobuf::Type* type, StringPiece json_name) { … }
const google::protobuf::Field* FindFieldInTypeByNumberOrNull(
const google::protobuf::Type* type, int32_t number) { … }
const google::protobuf::EnumValue* FindEnumValueByNameOrNull(
const google::protobuf::Enum* enum_type, StringPiece enum_name) { … }
const google::protobuf::EnumValue* FindEnumValueByNumberOrNull(
const google::protobuf::Enum* enum_type, int32_t value) { … }
const google::protobuf::EnumValue* FindEnumValueByNameWithoutUnderscoreOrNull(
const google::protobuf::Enum* enum_type, StringPiece enum_name) { … }
std::string EnumValueNameToLowerCamelCase(StringPiece input) { … }
std::string ToCamelCase(StringPiece input) { … }
std::string ToSnakeCase(StringPiece input) { … }
std::set<std::string>* well_known_types_ = …;
PROTOBUF_NAMESPACE_ID::internal::once_flag well_known_types_init_;
const char* well_known_types_name_array_[] = …;
void DeleteWellKnownTypes() { … }
void InitWellKnownTypes() { … }
bool IsWellKnownType(const std::string& type_name) { … }
bool IsValidBoolString(StringPiece bool_string) { … }
bool IsMap(const google::protobuf::Field& field,
const google::protobuf::Type& type) { … }
bool IsMessageSetWireFormat(const google::protobuf::Type& type) { … }
std::string DoubleAsString(double value) { … }
std::string FloatAsString(float value) { … }
bool SafeStrToFloat(StringPiece str, float* value) { … }
}
}
}
}