|
|
@ -47,7 +47,7 @@ namespace compiler { |
|
|
|
namespace ruby { |
|
|
|
namespace ruby { |
|
|
|
|
|
|
|
|
|
|
|
// Forward decls.
|
|
|
|
// Forward decls.
|
|
|
|
std::string IntToString(uint32_t value); |
|
|
|
std::string IntToString(uint32 value); |
|
|
|
std::string StripDotProto(const std::string& proto_file); |
|
|
|
std::string StripDotProto(const std::string& proto_file); |
|
|
|
std::string LabelForField(google::protobuf::FieldDescriptor* field); |
|
|
|
std::string LabelForField(google::protobuf::FieldDescriptor* field); |
|
|
|
std::string TypeName(google::protobuf::FieldDescriptor* field); |
|
|
|
std::string TypeName(google::protobuf::FieldDescriptor* field); |
|
|
@ -64,7 +64,7 @@ void GenerateEnumAssignment( |
|
|
|
const google::protobuf::EnumDescriptor* en, |
|
|
|
const google::protobuf::EnumDescriptor* en, |
|
|
|
google::protobuf::io::Printer* printer); |
|
|
|
google::protobuf::io::Printer* printer); |
|
|
|
|
|
|
|
|
|
|
|
std::string IntToString(uint32_t value) { |
|
|
|
std::string IntToString(uint32 value) { |
|
|
|
std::ostringstream os; |
|
|
|
std::ostringstream os; |
|
|
|
os << value; |
|
|
|
os << value; |
|
|
|
return os.str(); |
|
|
|
return os.str(); |
|
|
|