Go to the documentation of this file.
49 result.reserve(
input.size() * 2);
53 for (std::string::size_type
i = 0;
i <
input.size();
i++) {
59 result.append(
"*");
67 result.append(
"/");
76 result.append(
"@");
80 result.append(
"<");
84 result.append(
">");
88 result.append(
"&");
92 result.append(
"\");
110 if (!comments.empty()) {
119 std::vector<std::string> lines =
Split(comments,
"\n");
120 while (!lines.empty() && lines.back().empty()) {
124 printer->
Print(
" * <pre>\n");
125 for (
int i = 0;
i < lines.size();
i++) {
129 if (!lines[
i].empty() && lines[
i][0] ==
'/') {
130 printer->
Print(
" * $line$\n",
"line", lines[
i]);
132 printer->
Print(
" *$line$\n",
"line", lines[
i]);
141 template <
typename DescriptorType>
153 std::string::size_type pos = result.find_first_of(
'\n');
154 if (pos != std::string::npos) {
159 if (!result.empty() && result[result.size() - 1] ==
'{') {
160 result.append(
" ... }");
167 printer->
Print(
"/**\n");
170 " * Protobuf type {@code $fullname$}\n"
184 printer->
Print(
"/**\n");
186 printer->
Print(
" * <code>$def$</code>\n",
"def",
188 printer->
Print(
" */\n");
192 printer->
Print(
"/**\n");
195 " * Protobuf enum {@code $fullname$}\n"
202 printer->
Print(
"/**\n");
205 " * <code>$def$</code>\n"
212 printer->
Print(
"/**\n");
215 " * Protobuf service {@code $fullname$}\n"
222 printer->
Print(
"/**\n");
225 " * <code>$def$</code>\n"
void Print(const std::map< std::string, std::string > &variables, const char *text)
void WriteEnumDocComment(io::Printer *printer, const EnumDescriptor *enum_)
const Descriptor::ReservedRange value
void WriteEnumValueDocComment(io::Printer *printer, const EnumValueDescriptor *value)
const std::string & full_name() const
void WriteFieldDocComment(io::Printer *printer, const FieldDescriptor *field)
GLsizei const GLchar *const * string
void WriteMessageDocComment(io::Printer *printer, const Descriptor *message)
std::string DebugString() const
static void WriteDocCommentBody(io::Printer *printer, const DescriptorType *descriptor)
static void WriteDocCommentBodyForLocation(io::Printer *printer, const SourceLocation &location)
const FieldDescriptor * field
void WriteServiceDocComment(io::Printer *printer, const ServiceDescriptor *service)
std::string EscapeJavadoc(const std::string &input)
const std::string & full_name() const
std::vector< string > Split(const string &full, const char *delim, bool skip_empty=true)
void WriteMethodDocComment(io::Printer *printer, const MethodDescriptor *method)
static std::string FirstLineOf(const std::string &value)
GLsizei const GLfloat * value
GLenum GLuint GLenum GLsizei const GLchar * message
const Descriptor::ReservedRange const EnumValueDescriptor method
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:54