@@ -133,14 +133,14 @@ static void GrpcSplitStringToIteratorUsing(const string& full,
133
133
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
134
134
static void GrpcSplitStringUsing (const string& full,
135
135
const char * delim,
136
- vector<string>* result) {
137
- std::back_insert_iterator< vector<string> > it (*result);
136
+ std:: vector<string>* result) {
137
+ std::back_insert_iterator< std:: vector<string> > it (*result);
138
138
GrpcSplitStringToIteratorUsing (full, delim, it);
139
139
}
140
140
141
141
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
142
- static vector<string> GrpcSplit (const string& full, const char * delim) {
143
- vector<string> result;
142
+ static std:: vector<string> GrpcSplit (const string& full, const char * delim) {
143
+ std:: vector<string> result;
144
144
GrpcSplitStringUsing (full, delim, &result);
145
145
return result;
146
146
}
@@ -216,7 +216,7 @@ static string GrpcGetCommentsForDescriptor(const DescriptorType* descriptor) {
216
216
}
217
217
218
218
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
219
- static vector<string> GrpcGetDocLines (const string& comments) {
219
+ static std:: vector<string> GrpcGetDocLines (const string& comments) {
220
220
if (!comments.empty ()) {
221
221
// TODO(kenton): Ideally we should parse the comment text as Markdown and
222
222
// write it back as HTML, but this requires a Markdown parser. For now
@@ -226,24 +226,24 @@ static vector<string> GrpcGetDocLines(const string& comments) {
226
226
// HTML-escape them so that they don't accidentally close the doc comment.
227
227
string escapedComments = GrpcEscapeJavadoc (comments);
228
228
229
- vector<string> lines = GrpcSplit (escapedComments, " \n " );
229
+ std:: vector<string> lines = GrpcSplit (escapedComments, " \n " );
230
230
while (!lines.empty () && lines.back ().empty ()) {
231
231
lines.pop_back ();
232
232
}
233
233
return lines;
234
234
}
235
- return vector<string>();
235
+ return std:: vector<string>();
236
236
}
237
237
238
238
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
239
239
template <typename DescriptorType>
240
- static vector<string> GrpcGetDocLinesForDescriptor (const DescriptorType* descriptor) {
240
+ static std:: vector<string> GrpcGetDocLinesForDescriptor (const DescriptorType* descriptor) {
241
241
return GrpcGetDocLines (GrpcGetCommentsForDescriptor (descriptor));
242
242
}
243
243
244
244
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
245
245
static void GrpcWriteDocCommentBody (Printer* printer,
246
- const vector<string>& lines,
246
+ const std:: vector<string>& lines,
247
247
bool surroundWithPreTag) {
248
248
if (!lines.empty ()) {
249
249
if (surroundWithPreTag) {
@@ -270,7 +270,7 @@ static void GrpcWriteDocCommentBody(Printer* printer,
270
270
// TODO(nmittler): Remove once protobuf includes javadoc methods in distribution.
271
271
static void GrpcWriteDocComment (Printer* printer, const string& comments) {
272
272
printer->Print (" /**\n " );
273
- vector<string> lines = GrpcGetDocLines (comments);
273
+ std:: vector<string> lines = GrpcGetDocLines (comments);
274
274
GrpcWriteDocCommentBody (printer, lines, false );
275
275
printer->Print (" */\n " );
276
276
}
@@ -281,7 +281,7 @@ static void GrpcWriteServiceDocComment(Printer* printer,
281
281
// Deviating from protobuf to avoid extraneous docs
282
282
// (see https://github.com/google/protobuf/issues/1406);
283
283
printer->Print (" /**\n " );
284
- vector<string> lines = GrpcGetDocLinesForDescriptor (service);
284
+ std:: vector<string> lines = GrpcGetDocLinesForDescriptor (service);
285
285
GrpcWriteDocCommentBody (printer, lines, true );
286
286
printer->Print (" */\n " );
287
287
}
@@ -292,14 +292,14 @@ void GrpcWriteMethodDocComment(Printer* printer,
292
292
// Deviating from protobuf to avoid extraneous docs
293
293
// (see https://github.com/google/protobuf/issues/1406);
294
294
printer->Print (" /**\n " );
295
- vector<string> lines = GrpcGetDocLinesForDescriptor (method);
295
+ std:: vector<string> lines = GrpcGetDocLinesForDescriptor (method);
296
296
GrpcWriteDocCommentBody (printer, lines, true );
297
297
printer->Print (" */\n " );
298
298
}
299
299
300
300
static void PrintMethodFields (
301
- const ServiceDescriptor* service, map<string, string>* vars, Printer* p,
302
- ProtoFlavor flavor) {
301
+ const ServiceDescriptor* service, std:: map<string, string>* vars,
302
+ Printer* p, ProtoFlavor flavor) {
303
303
p->Print (" // Static method descriptors that strictly reflect the proto.\n " );
304
304
(*vars)[" service_name" ] = service->name ();
305
305
for (int i = 0 ; i < service->method_count (); ++i) {
@@ -432,12 +432,12 @@ enum CallType {
432
432
};
433
433
434
434
static void PrintBindServiceMethodBody (const ServiceDescriptor* service,
435
- map<string, string>* vars,
435
+ std:: map<string, string>* vars,
436
436
Printer* p,
437
437
bool generate_nano);
438
438
439
439
static void PrintDeprecatedDocComment (const ServiceDescriptor* service,
440
- map<string, string>* vars,
440
+ std:: map<string, string>* vars,
441
441
Printer* p) {
442
442
p->Print (
443
443
*vars,
@@ -470,7 +470,7 @@ static void PrintDeprecatedDocComment(const ServiceDescriptor* service,
470
470
// Prints a client interface or implementation class, or a server interface.
471
471
static void PrintStub (
472
472
const ServiceDescriptor* service,
473
- map<string, string>* vars,
473
+ std:: map<string, string>* vars,
474
474
Printer* p, StubType type, bool generate_nano,
475
475
bool enable_deprecated) {
476
476
const string service_name = service->name ();
@@ -766,12 +766,12 @@ static bool CompareMethodClientStreaming(const MethodDescriptor* method1,
766
766
// Place all method invocations into a single class to reduce memory footprint
767
767
// on Android.
768
768
static void PrintMethodHandlerClass (const ServiceDescriptor* service,
769
- map<string, string>* vars,
769
+ std:: map<string, string>* vars,
770
770
Printer* p,
771
771
bool generate_nano,
772
772
bool enable_deprecated) {
773
773
// Sort method ids based on client_streaming() so switch tables are compact.
774
- vector<const MethodDescriptor*> sorted_methods (service->method_count ());
774
+ std:: vector<const MethodDescriptor*> sorted_methods (service->method_count ());
775
775
for (int i = 0 ; i < service->method_count (); ++i) {
776
776
sorted_methods[i] = service->method (i);
777
777
}
@@ -882,7 +882,7 @@ static void PrintMethodHandlerClass(const ServiceDescriptor* service,
882
882
}
883
883
884
884
static void PrintGetServiceDescriptorMethod (const ServiceDescriptor* service,
885
- map<string, string>* vars,
885
+ std:: map<string, string>* vars,
886
886
Printer* p,
887
887
ProtoFlavor flavor) {
888
888
(*vars)[" service_name" ] = service->name ();
@@ -960,7 +960,7 @@ static void PrintGetServiceDescriptorMethod(const ServiceDescriptor* service,
960
960
}
961
961
962
962
static void PrintBindServiceMethodBody (const ServiceDescriptor* service,
963
- map<string, string>* vars,
963
+ std:: map<string, string>* vars,
964
964
Printer* p,
965
965
bool generate_nano) {
966
966
(*vars)[" service_name" ] = service->name ();
@@ -1017,7 +1017,7 @@ static void PrintBindServiceMethodBody(const ServiceDescriptor* service,
1017
1017
}
1018
1018
1019
1019
static void PrintService (const ServiceDescriptor* service,
1020
- map<string, string>* vars,
1020
+ std:: map<string, string>* vars,
1021
1021
Printer* p,
1022
1022
ProtoFlavor flavor,
1023
1023
bool enable_deprecated) {
@@ -1168,7 +1168,7 @@ void GenerateService(const ServiceDescriptor* service,
1168
1168
bool enable_deprecated) {
1169
1169
// All non-generated classes must be referred by fully qualified names to
1170
1170
// avoid collision with generated classes.
1171
- map<string, string> vars;
1171
+ std:: map<string, string> vars;
1172
1172
vars[" String" ] = " java.lang.String" ;
1173
1173
vars[" Override" ] = " java.lang.Override" ;
1174
1174
vars[" Deprecated" ] = " java.lang.Deprecated" ;
0 commit comments