| 208 | } |
| 209 | |
| 210 | void NameRender::GetCopyright(const char *tool_name, const char *proto_file, |
| 211 | string *result, bool dont_edit, |
| 212 | const char *comment_prefix) { |
| 213 | ostringstream tmp; |
| 214 | |
| 215 | tmp << comment_prefix << endl; |
| 216 | tmp << comment_prefix << " Generated by " << tool_name << " from " << proto_file << endl; |
| 217 | |
| 218 | if (dont_edit) { |
| 219 | tmp << comment_prefix << endl; |
| 220 | tmp << comment_prefix << " Please DO NOT edit unless you know exactly what you are doing.\n"; |
| 221 | } |
| 222 | tmp << comment_prefix << endl; |
| 223 | |
| 224 | *result = tmp.str(); |
| 225 | } |
| 226 | |
| 227 | const char *NameRender::GetServiceClassName(const char *name, char *dest, int size) { |
| 228 | snprintf(dest, size, "%s%c%sService", prefix_, toupper(*name), name + 1); |
no outgoing calls
no test coverage detected