@@ -41,87 +41,89 @@ namespace java {
41
41
//
42
42
// Returns:
43
43
// The fully-qualified Java class name.
44
- std::string ClassName (const Descriptor* descriptor);
44
+ PROTOC_EXPORT std::string ClassName (const Descriptor* descriptor);
45
45
46
46
// Requires:
47
47
// descriptor != NULL
48
48
//
49
49
// Returns:
50
50
// The fully-qualified Java class name.
51
- std::string ClassName (const EnumDescriptor* descriptor);
51
+ PROTOC_EXPORT std::string ClassName (const EnumDescriptor* descriptor);
52
52
53
53
// Requires:
54
54
// descriptor != NULL
55
55
//
56
56
// Returns:
57
57
// The fully-qualified Java class name.
58
- std::string ClassName (const FileDescriptor* descriptor);
58
+ PROTOC_EXPORT std::string ClassName (const FileDescriptor* descriptor);
59
59
60
60
// Requires:
61
61
// descriptor != NULL
62
62
//
63
63
// Returns:
64
64
// The fully-qualified Java class name.
65
- std::string ClassName (const ServiceDescriptor* descriptor);
65
+ PROTOC_EXPORT std::string ClassName (const ServiceDescriptor* descriptor);
66
66
67
67
// Requires:
68
68
// descriptor != NULL
69
69
//
70
70
// Returns:
71
71
// Java package name.
72
- std::string FileJavaPackage (const FileDescriptor* descriptor,
73
- Options options = {});
72
+ PROTOC_EXPORT std::string FileJavaPackage (const FileDescriptor* descriptor,
73
+ Options options = {});
74
74
75
75
// Requires:
76
76
// descriptor != NULL
77
77
//
78
78
// Returns:
79
79
// Java package directory.
80
- std::string JavaPackageDirectory (const FileDescriptor* file);
80
+ PROTOC_EXPORT std::string JavaPackageDirectory (const FileDescriptor* file);
81
81
82
82
// Requires:
83
83
// descriptor != NULL
84
84
//
85
85
// Returns:
86
86
// The unqualified Java class name.
87
- std::string FileClassName (const FileDescriptor* file);
87
+ PROTOC_EXPORT std::string FileClassName (const FileDescriptor* file);
88
88
89
89
// Requires:
90
90
// descriptor != NULL
91
91
// Returns:
92
92
// Capitalized camel case field name.
93
- std::string CapitalizedFieldName (const FieldDescriptor* field);
93
+ PROTOC_EXPORT std::string CapitalizedFieldName (const FieldDescriptor* field);
94
94
95
95
// Requires:
96
96
// descriptor != NULL
97
97
// Returns:
98
98
// Capitalized camel case oneof name.
99
- std::string CapitalizedOneofName (const OneofDescriptor* oneof);
99
+ PROTOC_EXPORT std::string CapitalizedOneofName (const OneofDescriptor* oneof);
100
100
101
101
// Returns:
102
102
// Converts a name to camel-case. If cap_first_letter is true, capitalize the
103
103
// first letter.
104
- std::string UnderscoresToCamelCase (absl::string_view input,
105
- bool cap_next_letter);
104
+ PROTOC_EXPORT std::string UnderscoresToCamelCase (absl::string_view input,
105
+ bool cap_next_letter);
106
106
// Requires:
107
107
// field != NULL
108
108
// Returns:
109
109
// Converts the field's name to camel-case, e.g. "foo_bar_baz" becomes
110
110
// "fooBarBaz" or "FooBarBaz", respectively.
111
- std::string UnderscoresToCamelCase (const FieldDescriptor* field);
111
+ PROTOC_EXPORT std::string UnderscoresToCamelCase (const FieldDescriptor* field);
112
112
113
113
// Requires:
114
114
// method != NULL
115
115
// Returns:
116
116
// Similar, but for method names. (Typically, this merely has the effect
117
117
// of lower-casing the first letter of the name.)
118
- std::string UnderscoresToCamelCase (const MethodDescriptor* method);
118
+ PROTOC_EXPORT std::string UnderscoresToCamelCase (
119
+ const MethodDescriptor* method);
119
120
120
121
// Requires:
121
122
// field != NULL
122
123
// Returns:
123
124
// Same as UnderscoresToCamelCase, but checks for reserved keywords
124
- std::string UnderscoresToCamelCaseCheckReserved (const FieldDescriptor* field);
125
+ PROTOC_EXPORT std::string UnderscoresToCamelCaseCheckReserved (
126
+ const FieldDescriptor* field);
125
127
126
128
127
129
} // namespace java
0 commit comments