• Home
  • Raw
  • Download

Lines Matching refs:indent

22 write_enum(stringstream& text, const EnumDescriptorProto& enu, const string& indent)  in write_enum()  argument
25 text << indent << "// enum " << enu.name() << endl; in write_enum()
28 text << indent << "const int " in write_enum()
36 text << indent << "const int _ENUM_" << name << "_COUNT = " << N << ";" << endl; in write_enum()
37 text << indent << "const char* _ENUM_" << name << "_NAMES[" << N << "] = {" << endl; in write_enum()
39 … text << indent << INDENT << "\"" << stripPrefix(enu.value(i).name(), prefix) << "\"," << endl; in write_enum()
41 text << indent << "};" << endl; in write_enum()
42 text << indent << "const int _ENUM_" << name << "_VALUES[" << N << "] = {" << endl; in write_enum()
44 text << indent << INDENT << make_constant_name(enu.value(i).name()) << "," << endl; in write_enum()
46 text << indent << "};" << endl; in write_enum()
53 write_field(stringstream& text, const FieldDescriptorProto& field, const string& indent) in write_field() argument
62 text << indent << "// " << optional_comment << repeated_comment << proto_type << ' ' in write_field()
65 text << indent << "const uint64_t " << make_constant_name(field.name()) << " = 0x"; in write_field()
77 write_message(stringstream& text, const DescriptorProto& message, const string& indent) in write_message() argument
80 const string indented = indent + INDENT; in write_message()
82 text << indent << "// message " << message.name() << endl; in write_message()
83 text << indent << "namespace " << message.name() << " {" << endl; in write_message()
118 text << indent << "} //" << message.name() << endl; in write_message()